	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hci_write_connection_accept_timeout
_hci_write_connection_accept_timeout:   ## @hci_write_connection_accept_timeout
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	cmpl	$1, %esi
	jne	LBB0_4
## %bb.1:
	movl	%edi, %ebx
	movq	(%rdx), %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-12(%rbp), %rdx
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.2:
	movl	-12(%rbp), %edi
	testl	%edi, %edi
	jle	LBB0_4
## %bb.3:
	cmpl	$46401, %edi                    ## imm = 0xB541
	jge	LBB0_4
## %bb.5:
	callq	_htole16
	movl	%eax, -24(%rbp)
	movl	$4, -12(%rbp)
	movq	_NG_HCI_OGF_HC_BASEBAND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_NG_HCI_OCF_WRITE_CON_ACCEPT_TIMO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_NG_HCI_OPCODE
	leaq	-24(%rbp), %rdx
	leaq	-16(%rbp), %r8
	leaq	-12(%rbp), %r9
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$4, %ecx
	callq	_hci_request
	movq	_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.6:
	movl	-16(%rbp), %edi
	testl	%edi, %edi
	je	LBB0_8
## %bb.7:
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_hci_status2str
	movl	-16(%rbp), %ecx
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	callq	_fprintf
	movq	_FAILED@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_4:
	movq	_USAGE@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
LBB0_10:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_8:
	movq	_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

	.comm	_USAGE,4,2                      ## @USAGE
	.comm	_NG_HCI_OGF_HC_BASEBAND,4,2     ## @NG_HCI_OGF_HC_BASEBAND
	.comm	_NG_HCI_OCF_WRITE_CON_ACCEPT_TIMO,4,2 ## @NG_HCI_OCF_WRITE_CON_ACCEPT_TIMO
	.comm	_ERROR,8,3                      ## @ERROR
	.comm	_stdout,4,2                     ## @stdout
L_.str.1:                               ## @.str.1
	.asciz	"Status: %s [%#02x]\n"

	.comm	_FAILED,4,2                     ## @FAILED
	.comm	_OK,4,2                         ## @OK
	.no_dead_strip	_hci_write_connection_accept_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hci_write_connection_accept_timeout
_hci_write_connection_accept_timeout:   ; @hci_write_connection_accept_timeout
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cmp	w1, #1
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x0, [x2]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_sscanf
	mov	x8, x0
	ldr	w0, [sp, #12]
	cmp	w8, #1
	ccmp	w0, #1, #8, eq
	mov	w8, #46401
	ccmp	w0, w8, #0, ge
	b.lt	LBB0_5
LBB0_2:
Lloh2:
	adrp	x8, _USAGE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _USAGE@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
LBB0_4:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
	bl	_htole16
	str	w0, [sp, #24]
	mov	w8, #4
	str	w8, [sp, #12]
Lloh4:
	adrp	x8, _NG_HCI_OGF_HC_BASEBAND@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NG_HCI_OGF_HC_BASEBAND@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x8, _NG_HCI_OCF_WRITE_CON_ACCEPT_TIMO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NG_HCI_OCF_WRITE_CON_ACCEPT_TIMO@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_NG_HCI_OPCODE
	mov	x1, x0
	add	x2, sp, #24
	add	x4, sp, #16
	add	x5, sp, #12
	mov	x0, x19
	mov	w3, #4
	bl	_hci_request
Lloh10:
	adrp	x8, _ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.6:
	ldr	w0, [sp, #16]
	cbz	w0, LBB0_8
; %bb.7:
Lloh13:
	adrp	x8, _stdout@GOTPAGE
Lloh14:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh15:
	ldr	w19, [x8]
	bl	_hci_status2str
	mov	x2, x0
	ldr	w3, [sp, #16]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_fprintf
Lloh18:
	adrp	x8, _FAILED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FAILED@GOTPAGEOFF]
	b	LBB0_3
LBB0_8:
Lloh20:
	adrp	x8, _OK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _OK@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

	.comm	_USAGE,4,2                      ; @USAGE
	.comm	_NG_HCI_OGF_HC_BASEBAND,4,2     ; @NG_HCI_OGF_HC_BASEBAND
	.comm	_NG_HCI_OCF_WRITE_CON_ACCEPT_TIMO,4,2 ; @NG_HCI_OCF_WRITE_CON_ACCEPT_TIMO
	.comm	_ERROR,8,3                      ; @ERROR
	.comm	_stdout,4,2                     ; @stdout
l_.str.1:                               ; @.str.1
	.asciz	"Status: %s [%#02x]\n"

	.comm	_FAILED,4,2                     ; @FAILED
	.comm	_OK,4,2                         ; @OK
	.no_dead_strip	_hci_write_connection_accept_timeout
.subsections_via_symbols
