	.file	"extr_halbtcoutsrc.c_halbtc_set_bt_reg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	halbtc_set_bt_reg, @function
halbtc_set_bt_reg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pxor	xmm0, xmm0
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	mov	rdi, rcx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdx
	sub	rsp, 80
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	movaps	XMMWORD PTR [rsp], xmm0
	movaps	XMMWORD PTR 16[rsp], xmm0
	movaps	XMMWORD PTR 32[rsp], xmm0
	movaps	XMMWORD PTR 48[rsp], xmm0
	call	cpu_to_le16@PLT
	mov	rdx, rsp
	mov	ecx, 4
	mov	rdi, rbp
	mov	esi, DWORD PTR BT_OP_WRITE_REG_VALUE[rip]
	mov	r8d, 200
	mov	DWORD PTR 16[rsp], eax
	call	halbtc_send_bt_mp_operation@PLT
	test	eax, eax
	je	.L1
	mov	esi, DWORD PTR BT_OP_WRITE_REG_ADDR[rip]
	lea	rdx, 32[rsp]
	mov	ecx, 4
	mov	rdi, rbp
	mov	r8d, 200
	mov	QWORD PTR 48[rsp], r12
	mov	QWORD PTR 56[rsp], rbx
	call	halbtc_send_bt_mp_operation@PLT
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L7
	add	rsp, 80
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	halbtc_set_bt_reg, .-halbtc_set_bt_reg
	.comm	BT_OP_WRITE_REG_VALUE,4,4
	.comm	BT_OP_WRITE_REG_ADDR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_halbtcoutsrc.c_halbtc_set_bt_reg.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	halbtc_set_bt_reg, %function
halbtc_set_bt_reg:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r0
	mov	r0, r3
	ldr	r3, .L8
	sub	sp, sp, #52
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	mov	r5, r1
	mov	r7, r2
	str	ip, [sp, #12]
	str	ip, [sp, #28]
	str	ip, [sp, #16]
	str	ip, [sp, #20]
	str	ip, [sp, #24]
	str	ip, [sp, #32]
	str	ip, [sp, #36]
	str	ip, [sp, #40]
	bl	cpu_to_le16
	mov	r6, #200
	mov	ip, r0
	ldr	r3, .L8+4
	str	r6, [sp]
	ldr	r1, [r3]
	mov	r0, r4
	mov	r3, #4
	add	r2, sp, #12
	str	ip, [sp, #20]
	bl	halbtc_send_bt_mp_operation
	cmp	r0, #0
	beq	.L1
	ldr	r3, .L8+8
	str	r6, [sp]
	ldr	r1, [r3]
	mov	r0, r4
	mov	r3, #4
	add	r2, sp, #28
	str	r5, [sp, #36]
	str	r7, [sp, #40]
	bl	halbtc_send_bt_mp_operation
.L1:
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	BT_OP_WRITE_REG_VALUE
	.word	BT_OP_WRITE_REG_ADDR
	.size	halbtc_set_bt_reg, .-halbtc_set_bt_reg
	.comm	BT_OP_WRITE_REG_VALUE,4,4
	.comm	BT_OP_WRITE_REG_ADDR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
