	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __hci_request
___hci_request:                         ## @__hci_request
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	_wait@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DECLARE_WAITQUEUE
	movl	8(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_BT_DBG
	movq	_HCI_REQ_PEND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	leaq	12(%rbx), %r12
	movq	%r12, %rdi
	movq	_wait@GOTPCREL(%rip), %rsi
	callq	_add_wait_queue
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	*%r13
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_schedule_timeout
	movq	%r12, %rdi
	movq	_wait@GOTPCREL(%rip), %rsi
	callq	_remove_wait_queue
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_signal_pending
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINTR@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_8
LBB0_2:
	movl	(%rbx), %eax
	cmpl	$129, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$128, %eax
	jne	LBB0_6
## %bb.4:
	movl	4(%rbx), %edi
	callq	_bt_err
	movl	%eax, %r14d
	jmp	LBB0_7
LBB0_5:
	movl	4(%rbx), %r14d
	jmp	LBB0_7
LBB0_6:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_7:
	negl	%r14d
	movq	$0, (%rbx)
	movl	8(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_BT_DBG
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wait,4,2                       ## @wait
	.comm	_current,4,2                    ## @current
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s start"

	.comm	_HCI_REQ_PEND,4,2               ## @HCI_REQ_PEND
	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
L_.str.1:                               ## @.str.1
	.asciz	"%s end: err %d"

	.no_dead_strip	___hci_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __hci_request
___hci_request:                         ; @__hci_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _wait@GOTPAGE
Lloh1:
	ldr	x23, [x23, _wait@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh2:
	adrp	x25, _current@GOTPAGE
Lloh3:
	ldr	x25, [x25, _current@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_DECLARE_WAITQUEUE
	ldr	w1, [x19, #8]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BT_DBG
Lloh6:
	adrp	x8, _HCI_REQ_PEND@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HCI_REQ_PEND@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19]
	add	x24, x19, #12
	mov	x0, x24
	mov	x1, x23
	bl	_add_wait_queue
Lloh9:
	adrp	x8, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_set_current_state
	mov	x0, x19
	mov	x1, x21
	blr	x22
	mov	x0, x20
	bl	_schedule_timeout
	mov	x0, x24
	mov	x1, x23
	bl	_remove_wait_queue
	ldr	w0, [x25]
	bl	_signal_pending
	cbz	x0, LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _EINTR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_8
LBB0_2:
	ldr	w8, [x19]
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.3:
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.4:
	ldr	w0, [x19, #4]
	bl	_bt_err
	b	LBB0_7
LBB0_5:
	ldr	w0, [x19, #4]
	b	LBB0_7
LBB0_6:
Lloh15:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
LBB0_7:
	neg	w20, w0
	str	xzr, [x19]
	ldr	w1, [x19, #8]
	str	x20, [sp]
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BT_DBG
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_wait,4,2                       ; @wait
	.comm	_current,4,2                    ; @current
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s start"

	.comm	_HCI_REQ_PEND,4,2               ; @HCI_REQ_PEND
	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
l_.str.1:                               ; @.str.1
	.asciz	"%s end: err %d"

	.no_dead_strip	___hci_request
.subsections_via_symbols
