	.file	"extr_host_controller_baseband.c_hci_write_link_supervision_timeout.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"Status: %s [%#02x]\n"
	.text
	.p2align 4
	.type	hci_write_link_supervision_timeout, @function
hci_write_link_supervision_timeout:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 48
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR USAGE[rip]
	cmp	esi, 2
	je	.L15
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L16
	add	rsp, 48
	.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
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	rbx, rdx
	mov	ebp, edi
	lea	r12, 12[rsp]
	mov	rdi, QWORD PTR [rbx]
	mov	rdx, r12
	lea	rsi, .LC0[rip]
	call	sscanf@PLT
	cmp	eax, 1
	je	.L17
.L6:
	mov	eax, DWORD PTR USAGE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	movsx	rdi, DWORD PTR 12[rsp]
	lea	eax, -1[rdi]
	cmp	eax, 3838
	ja	.L6
	mov	QWORD PTR 24[rsp], rdi
	call	htole16@PLT
	mov	rdi, QWORD PTR 8[rbx]
	mov	rdx, r12
	lea	rsi, .LC0[rip]
	mov	QWORD PTR 24[rsp], rax
	call	sscanf@PLT
	cmp	eax, 1
	jne	.L6
	mov	edi, DWORD PTR 12[rsp]
	cmp	edi, 65535
	ja	.L6
	and	edi, 4095
	mov	QWORD PTR 16[rsp], rdi
	call	htole16@PLT
	mov	esi, DWORD PTR NG_HCI_OCF_WRITE_LINK_SUPERVISION_TIMO[rip]
	mov	edi, DWORD PTR NG_HCI_OGF_HC_BASEBAND[rip]
	mov	DWORD PTR 12[rsp], 4
	mov	QWORD PTR 16[rsp], rax
	call	NG_HCI_OPCODE@PLT
	lea	rdx, 16[rsp]
	mov	r9, r12
	mov	edi, ebp
	mov	esi, eax
	lea	r8, 8[rsp]
	mov	ecx, 16
	call	hci_request@PLT
	cmp	rax, QWORD PTR ERROR[rip]
	je	.L1
	mov	r12d, DWORD PTR 8[rsp]
	mov	eax, DWORD PTR OK[rip]
	test	r12d, r12d
	je	.L1
	mov	edi, r12d
	call	hci_status2str@PLT
	mov	edi, DWORD PTR stdout[rip]
	mov	ecx, r12d
	lea	rsi, .LC1[rip]
	mov	rdx, rax
	call	fprintf@PLT
	mov	eax, DWORD PTR FAILED[rip]
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	hci_write_link_supervision_timeout, .-hci_write_link_supervision_timeout
	.comm	stdout,4,4
	.comm	USAGE,4,4
	.comm	OK,4,4
	.comm	NG_HCI_OGF_HC_BASEBAND,4,4
	.comm	NG_HCI_OCF_WRITE_LINK_SUPERVISION_TIMO,4,4
	.comm	FAILED,4,4
	.comm	ERROR,8,8
	.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_host_controller_baseband.c_hci_write_link_supervision_timeout.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"Status: %s [%#02x]\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hci_write_link_supervision_timeout, %function
hci_write_link_supervision_timeout:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L17
	sub	sp, sp, #36
	cmp	r1, #2
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	beq	.L14
.L2:
	ldr	r3, .L17+4
	ldr	r0, [r3]
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, pc}
.L14:
	mov	r4, r2
	mov	r5, r0
	ldr	r1, .L17+8
	ldr	r0, [r4]
	add	r2, sp, #16
	bl	sscanf
	cmp	r0, #1
	bne	.L2
	ldr	r0, [sp, #16]
	ldr	r3, .L17+12
	sub	r2, r0, #1
	cmp	r2, r3
	bhi	.L2
	str	r0, [sp, #24]
	bl	htole16
	mov	r3, r0
	ldr	r1, .L17+8
	ldr	r0, [r4, #4]
	add	r2, sp, #16
	str	r3, [sp, #24]
	bl	sscanf
	cmp	r0, #1
	bne	.L2
	ldr	r3, [sp, #16]
	cmp	r3, #65536
	bcs	.L2
	lsl	r0, r3, #20
	lsr	r0, r0, #20
	str	r0, [sp, #20]
	bl	htole16
	mov	r3, #4
	mov	r2, r0
	ldr	r1, .L17+16
	ldr	r0, .L17+20
	ldr	r1, [r1]
	ldr	r0, [r0]
	str	r2, [sp, #20]
	str	r3, [sp, #16]
	bl	NG_HCI_OPCODE
	add	r3, sp, #12
	add	r2, sp, #16
	mov	r1, r0
	str	r2, [sp, #4]
	str	r3, [sp]
	add	r2, sp, #20
	mov	r3, #8
	mov	r0, r5
	bl	hci_request
	mov	r3, r0
	ldr	r2, .L17+24
	ldr	r0, [r2]
	cmp	r3, r0
	beq	.L1
	ldr	r0, [sp, #12]
	cmp	r0, #0
	ldreq	r3, .L17+28
	ldreq	r0, [r3]
	beq	.L1
.L16:
	ldr	r3, .L17+32
	ldr	r4, [r3]
	bl	hci_status2str
	ldr	r3, [sp, #12]
	mov	r2, r0
	ldr	r1, .L17+36
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L17+40
	ldr	r0, [r3]
	b	.L1
.L15:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC2
	.word	USAGE
	.word	.LC0
	.word	3838
	.word	NG_HCI_OCF_WRITE_LINK_SUPERVISION_TIMO
	.word	NG_HCI_OGF_HC_BASEBAND
	.word	ERROR
	.word	OK
	.word	stdout
	.word	.LC1
	.word	FAILED
	.size	hci_write_link_supervision_timeout, .-hci_write_link_supervision_timeout
	.comm	stdout,4,4
	.comm	USAGE,4,4
	.comm	OK,4,4
	.comm	NG_HCI_OGF_HC_BASEBAND,4,4
	.comm	NG_HCI_OCF_WRITE_LINK_SUPERVISION_TIMO,4,4
	.comm	FAILED,4,4
	.comm	ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
