	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bt_devreq                      ## -- Begin function bt_devreq
	.p2align	4, 0x90
_bt_devreq:                             ## @bt_devreq
	.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
	subq	$1320, %rsp                     ## imm = 0x528
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testl	%edi, %edi
	js	LBB0_23
## %bb.1:
	movq	%rsi, %r13
	testq	%rsi, %rsi
	je	LBB0_23
## %bb.2:
	movq	%rdx, %r15
	testq	%rdx, %rdx
	js	LBB0_23
## %bb.3:
	movl	%edi, %r14d
	cmpq	$0, (%r13)
	je	LBB0_22
## %bb.4:
	jle	LBB0_6
## %bb.5:
	cmpq	$0, 16(%r13)
	je	LBB0_23
LBB0_6:
	leaq	-1336(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_NG_HCI_EVENT_PKT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_bt_devfilter_pkt_set
	movq	%rbx, %rdi
	movl	$129, %esi
	callq	_bt_devfilter_evt_set
	movq	%rbx, %rdi
	movl	$128, %esi
	callq	_bt_devfilter_evt_set
	movl	8(%r13), %esi
	testl	%esi, %esi
	je	LBB0_8
## %bb.7:
	leaq	-1336(%rbp), %rdi
	callq	_bt_devfilter_evt_set
LBB0_8:
	leaq	-1336(%rbp), %rsi
	leaq	-1344(%rbp), %rdx
	movl	%r14d, %edi
	callq	_bt_devfilter
	movl	$-1, %ebx
	testq	%rax, %rax
	js	LBB0_25
## %bb.9:
	movl	32(%r13), %edx
	movl	24(%r13), %esi
	movl	28(%r13), %ecx
	movl	%r14d, %edi
	callq	_bt_devsend
	movq	_errno@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	js	LBB0_30
## %bb.10:
	movl	24(%r13), %edi
	callq	_htole16
	movl	%eax, -1348(%rbp)               ## 4-byte Spill
	xorl	%edi, %edi
	callq	_time
	movq	%rax, %rbx
	addq	%r15, %rbx
	leaq	-1328(%rbp), %r15
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_13 Depth=1
	cmpl	8(%r13), %ecx
	je	LBB0_32
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=1
	testq	%r12, %r12
	jle	LBB0_29
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	callq	_time
	movq	%rbx, %r12
	subq	%rax, %r12
	testq	%r12, %r12
	movl	$0, %ecx
	cmovgq	%r12, %rcx
	movl	%r14d, %edi
	movq	%r15, %rsi
	movl	$1280, %edx                     ## imm = 0x500
	callq	_bt_devrecv
	testq	%rax, %rax
	js	LBB0_27
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-1328(%rbp), %rcx
	movq	_NG_HCI_EVENT_PKT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_28
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	-1320(%rbp), %ecx
	cmpl	$128, %ecx
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$129, %ecx
	jne	LBB0_11
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	-1348(%rbp), %ecx               ## 4-byte Reload
	cmpl	%ecx, -1288(%rbp)
	jne	LBB0_12
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	-1348(%rbp), %ecx               ## 4-byte Reload
	cmpl	%ecx, -1288(%rbp)
	jne	LBB0_12
## %bb.19:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$128, 8(%r13)
	je	LBB0_32
## %bb.20:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$0, -1292(%rbp)
	je	LBB0_12
LBB0_28:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_30
LBB0_22:
	cmpq	$0, 16(%r13)
	je	LBB0_6
LBB0_23:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_24:
	movl	$-1, %ebx
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_38
## %bb.26:
	movl	%ebx, %eax
	addq	$1320, %rsp                     ## imm = 0x528
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	movq	_errno@GOTPCREL(%rip), %rcx
	jmp	LBB0_30
LBB0_29:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
LBB0_30:
	movl	(%rcx), %r15d
	xorl	%ebx, %ebx
	leaq	-1344(%rbp), %rsi
	movl	%r14d, %edi
	xorl	%edx, %edx
	callq	_bt_devfilter
	testl	%r15d, %r15d
	je	LBB0_25
## %bb.31:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%r15d, (%rax)
	jmp	LBB0_24
LBB0_32:
	addq	$-24, %rax
	cmpq	%rax, (%r13)
	jl	LBB0_37
## %bb.33:
	movq	%rax, (%r13)
	movq	16(%r13), %rdi
	leaq	-1304(%rbp), %rsi
	jmp	LBB0_36
LBB0_34:
	addq	$-48, %rax
	cmpq	%rax, (%r13)
	jl	LBB0_37
## %bb.35:
	movq	%rax, (%r13)
	movq	16(%r13), %rdi
	leaq	-1280(%rbp), %rsi
LBB0_36:
	movq	%rax, %rdx
	callq	_memcpy
LBB0_37:
	xorl	%ebx, %ebx
	leaq	-1344(%rbp), %rsi
	movl	%r14d, %edi
	xorl	%edx, %edx
	callq	_bt_devfilter
	jmp	LBB0_25
LBB0_38:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_NG_HCI_EVENT_PKT,8,3           ## @NG_HCI_EVENT_PKT
	.comm	_EIO,4,2                        ## @EIO
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bt_devreq                      ; -- Begin function bt_devreq
	.p2align	2
_bt_devreq:                             ; @bt_devreq
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #1312
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	tbnz	w0, #31, LBB0_23
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_23
; %bb.2:
	mov	x21, x2
	tbnz	x2, #63, LBB0_23
; %bb.3:
	mov	x19, x0
	ldr	x8, [x20]
	cbz	x8, LBB0_22
; %bb.4:
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.5:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_23
LBB0_6:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh3:
	adrp	x24, _NG_HCI_EVENT_PKT@GOTPAGE
Lloh4:
	ldr	x24, [x24, _NG_HCI_EVENT_PKT@GOTPAGEOFF]
	ldr	x1, [x24]
	mov	x0, sp
	bl	_bt_devfilter_pkt_set
	mov	x0, sp
	mov	w1, #129
	bl	_bt_devfilter_evt_set
	mov	x0, sp
	mov	w1, #128
	bl	_bt_devfilter_evt_set
	ldr	w1, [x20, #8]
	cbz	w1, LBB0_8
; %bb.7:
	mov	x0, sp
	bl	_bt_devfilter_evt_set
LBB0_8:
	mov	x1, sp
	add	x2, sp, #8
	mov	x0, x19
	bl	_bt_devfilter
	tbnz	x0, #63, LBB0_24
; %bb.9:
	ldp	w3, w2, [x20, #28]
	ldr	w1, [x20, #24]
	mov	x0, x19
	bl	_bt_devsend
Lloh5:
	adrp	x25, _errno@GOTPAGE
Lloh6:
	ldr	x25, [x25, _errno@GOTPAGEOFF]
	tbnz	x0, #63, LBB0_27
; %bb.10:
	add	x8, sp, #16
	add	x22, x8, #24
	ldr	w0, [x20, #24]
	bl	_htole16
	mov	x23, x0
	mov	x0, #0
	bl	_time
	add	x27, x0, x21
Lloh7:
	adrp	x21, _errno@GOTPAGE
Lloh8:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
Lloh9:
	adrp	x26, _EIO@GOTPAGE
Lloh10:
	ldr	x26, [x26, _EIO@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w9, [x20, #8]
	cmp	w8, w9
	b.eq	LBB0_32
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	cmp	x28, #1
	b.lt	LBB0_28
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, #0
	bl	_time
	sub	x28, x27, x0
	cmp	x28, #0
	csel	x3, x28, xzr, gt
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #1280
	bl	_bt_devrecv
	tbnz	x0, #63, LBB0_29
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [sp, #16]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [sp, #24]
	cmp	w8, #128
	b.eq	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	cmp	w8, #129
	b.ne	LBB0_11
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [sp, #56]
	cmp	w8, w23
	b.ne	LBB0_12
	b	LBB0_34
LBB0_18:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [sp, #56]
	cmp	w8, w23
	b.ne	LBB0_12
; %bb.19:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x20, #8]
	cmp	w8, #128
	b.eq	LBB0_32
; %bb.20:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [sp, #52]
	cbz	w8, LBB0_12
LBB0_21:
	mov	x21, x26
	b	LBB0_29
LBB0_22:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_6
LBB0_23:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _errno@GOTPAGE
Lloh15:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh16:
	str	w8, [x9]
LBB0_24:
	mov	w0, #-1
LBB0_25:
	ldur	x8, [x29, #-96]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_38
; %bb.26:
	add	sp, sp, #1312
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_27:
	mov	x21, x25
	b	LBB0_29
LBB0_28:
Lloh20:
	adrp	x21, _ETIMEDOUT@GOTPAGE
Lloh21:
	ldr	x21, [x21, _ETIMEDOUT@GOTPAGEOFF]
LBB0_29:
	ldr	w20, [x21]
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, #0
	bl	_bt_devfilter
	cbz	w20, LBB0_31
; %bb.30:
	str	w20, [x25]
	b	LBB0_24
LBB0_31:
	mov	w0, #0
	b	LBB0_25
LBB0_32:
	sub	x2, x0, #24
	ldr	x8, [x20]
	cmp	x8, x2
	b.lt	LBB0_37
; %bb.33:
	str	x2, [x20]
	ldr	x0, [x20, #16]
	mov	x1, x22
	b	LBB0_36
LBB0_34:
	sub	x2, x0, #48
	ldr	x8, [x20]
	cmp	x8, x2
	b.lt	LBB0_37
; %bb.35:
	str	x2, [x20]
	ldr	x0, [x20, #16]
	add	x8, sp, #16
	add	x1, x8, #48
LBB0_36:
	bl	_memcpy
LBB0_37:
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, #0
	bl	_bt_devfilter
	mov	w0, #0
	b	LBB0_25
LBB0_38:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_NG_HCI_EVENT_PKT,8,3           ; @NG_HCI_EVENT_PKT
	.comm	_EIO,4,2                        ; @EIO
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
.subsections_via_symbols
