	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hci_recv                       ## -- Begin function hci_recv
	.p2align	4, 0x90
_hci_recv:                              ## @hci_recv
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%edi, %r12d
	xorl	%edi, %edi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	testq	%rsi, %rsi
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	cmpl	$5, (%rbx)
	setae	%dil
	callq	_assert
	leal	1(%r12), %r13d
	leaq	-44(%rbp), %rbx
	leaq	-80(%rbp), %r14
	movq	_EINTR@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_FD_ZERO
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_FD_SET
	movq	_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	$0, -80(%rbp)
	movl	%r13d, %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	callq	_select
	testl	%eax, %eax
	jg	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	jns	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%r15), %rax
	je	LBB0_1
	jmp	LBB0_8
LBB0_5:
	leaq	-44(%rbp), %rsi
	movl	%r12d, %edi
	callq	_FD_ISSET
	movl	%eax, %edi
	callq	_assert
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edx
	movl	%r12d, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_recv
	testl	%eax, %eax
	movq	_ERROR@GOTPCREL(%rip), %rcx
	js	LBB0_9
## %bb.6:
	movl	%eax, (%rbx)
	movq	_OK@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_7:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_8:
	movq	_ERROR@GOTPCREL(%rip), %rcx
LBB0_9:
	movl	(%rcx), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_timeout,4,2                    ## @timeout
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_ETIMEDOUT,8,3                  ## @ETIMEDOUT
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_OK,4,2                         ## @OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hci_recv                       ; -- Begin function hci_recv
	.p2align	2
_hci_recv:                              ; @hci_recv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	cmp	x1, #0
	cset	w0, ne
	bl	_assert
	cmp	x19, #0
	cset	w0, ne
	bl	_assert
	ldr	w8, [x19]
	cmp	w8, #4
	cset	w0, hi
	bl	_assert
	add	w22, w21, #1
Lloh0:
	adrp	x25, _timeout@GOTPAGE
Lloh1:
	ldr	x25, [x25, _timeout@GOTPAGEOFF]
Lloh2:
	adrp	x24, _errno@GOTPAGE
Lloh3:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
Lloh4:
	adrp	x26, _EINTR@GOTPAGE
Lloh5:
	ldr	x26, [x26, _EINTR@GOTPAGEOFF]
Lloh6:
	adrp	x23, _ERROR@GOTPAGE
Lloh7:
	ldr	x23, [x23, _ERROR@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	bl	_FD_ZERO
	add	x1, sp, #12
	mov	x0, x21
	bl	_FD_SET
	ldr	w8, [x25]
	str	w8, [sp, #24]
	str	xzr, [sp, #16]
	add	x1, sp, #12
	add	x4, sp, #16
	mov	x0, x22
	mov	x2, #0
	mov	x3, #0
	bl	_select
	cmp	w0, #0
	b.gt	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	tbz	w0, #31, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x24]
	ldr	x9, [x26]
	cmp	x8, x9
	b.eq	LBB0_1
	b	LBB0_8
LBB0_4:
	add	x1, sp, #12
	mov	x0, x21
	bl	_FD_ISSET
	bl	_assert
	ldr	w2, [x19]
	mov	x0, x21
	mov	x1, x20
	mov	w3, #0
	bl	_recv
	tbnz	w0, #31, LBB0_7
; %bb.5:
	str	w0, [x19]
Lloh8:
	adrp	x23, _OK@GOTPAGE
Lloh9:
	ldr	x23, [x23, _OK@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh10:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [x24]
LBB0_7:
Lloh13:
	adrp	x23, _ERROR@GOTPAGE
Lloh14:
	ldr	x23, [x23, _ERROR@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x23]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_timeout,4,2                    ; @timeout
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_ETIMEDOUT,8,3                  ; @ETIMEDOUT
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_OK,4,2                         ; @OK
.subsections_via_symbols
