	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bpa10x_recv
_bpa10x_recv:                           ## @bpa10x_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
	movl	%ecx, %r13d
	movq	%rdx, %r12
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	movl	(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %edx
	movq	%r12, %rcx
	movl	%r13d, %r8d
	callq	_BT_DBG
	cmpl	$2, %r14d
	jb	LBB0_3
LBB0_1:
	movq	_EILSEQ@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_25
LBB0_3:
	addl	%r13d, 4(%r15)
	xorl	%eax, %eax
	testl	%r13d, %r13d
	je	LBB0_25
## %bb.4:
	movl	%r13d, %esi
	movl	%r14d, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_5 Depth=1
	movslq	%ebx, %rax
	addq	%rax, %r12
	movl	%r13d, %esi
	subl	%ebx, %esi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_24
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %r14
	testq	%r14, %r14
	je	LBB0_6
## %bb.20:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r14), %r15
	movl	4(%r15), %r13d
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r12), %edx
	incq	%r12
	leal	-128(%rdx), %eax
	cmpl	$3, %eax
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	ja	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_HCI_VENDOR_HDR_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%esi, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_15
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_HCI_SCO_HDR_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_HCI_EVENT_HDR_SIZE@GOTPCREL(%rip), %rax
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rax), %r13d
	cmpl	%r13d, %esi
	jle	LBB0_1
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%esi, %ebx
	addl	(%r12), %r13d
	jmp	LBB0_15
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_HCI_ACL_HDR_SIZE@GOTPCREL(%rip), %rax
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rax), %r14d
	cmpl	%r14d, %esi
	jle	LBB0_1
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%esi, %ebx
	movl	(%r12), %edi
	callq	___le16_to_cpu
	movl	%eax, %r13d
	addl	%r14d, %r13d
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_bt_skb_alloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r14
	movl	%ebx, %esi
	decl	%esi
	movq	%r15, 8(%rax)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, (%rax,%rcx,8)
	movq	(%r14), %r15
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, (%r15)
	movl	%r13d, 4(%r15)
LBB0_21:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%r13d, %edi
	movl	%esi, %r13d
	callq	_min
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_skb_put
	movl	%eax, %edi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	subl	%ebx, 4(%r15)
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	$0, (%rax,%rcx,8)
	movl	(%r15), %r15d
	movq	%r14, %rdi
	callq	_bt_cb
	movl	%r15d, (%rax)
	movq	%r14, %rdi
	callq	_hci_recv_frame
	jmp	LBB0_23
LBB0_24:
	xorl	%eax, %eax
LBB0_25:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_BT_ERR
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_18
	.long	L0_0_set_17
	.long	L0_0_set_9
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s queue %d buffer %p count %d"

	.comm	_EILSEQ,4,2                     ## @EILSEQ
	.comm	_HCI_EVENT_HDR_SIZE,4,2         ## @HCI_EVENT_HDR_SIZE
	.comm	_HCI_ACL_HDR_SIZE,4,2           ## @HCI_ACL_HDR_SIZE
	.comm	_HCI_SCO_HDR_SIZE,4,2           ## @HCI_SCO_HDR_SIZE
	.comm	_HCI_VENDOR_HDR_SIZE,4,2        ## @HCI_VENDOR_HDR_SIZE
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
L_.str.1:                               ## @.str.1
	.asciz	"%s no memory for packet"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_bpa10x_recv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bpa10x_recv
_bpa10x_recv:                           ; @bpa10x_recv
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x24, [x0, #8]
	ldr	w1, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x22
	mov	x3, x20
	mov	x4, x19
	bl	_BT_DBG
	cmp	w22, #2
	b.lo	LBB0_3
LBB0_1:
Lloh2:
	adrp	x8, _EILSEQ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EILSEQ@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_24
LBB0_3:
	ldr	w8, [x21, #4]
	add	w8, w8, w19
	str	w8, [x21, #4]
	cbz	w19, LBB0_23
; %bb.4:
	mov	w25, w22
Lloh4:
	adrp	x26, _GFP_ATOMIC@GOTPAGE
Lloh5:
	ldr	x26, [x26, _GFP_ATOMIC@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x20, w23, sxtw
	subs	w19, w19, w23
	b.eq	LBB0_23
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	x22, [x8, x25, lsl #3]
	cbz	x22, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x28, [x22]
	ldr	w23, [x28, #4]
	b	LBB0_21
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w27, [x20], #1
	sub	w8, w27, #128
	cmp	w8, #3
	b.hi	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh6:
	adrp	x11, lJTI0_0@PAGE
Lloh7:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x9, LBB0_10
	ldrb	w10, [x11, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh8:
	adrp	x8, _HCI_VENDOR_HDR_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HCI_VENDOR_HDR_SIZE@GOTPAGEOFF]
	b	LBB0_17
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w23, #0
	b	LBB0_19
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh10:
	adrp	x8, _HCI_SCO_HDR_SIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HCI_SCO_HDR_SIZE@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh12:
	adrp	x8, _HCI_EVENT_HDR_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HCI_EVENT_HDR_SIZE@GOTPAGEOFF]
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x8]
	cmp	w19, w8
	b.le	LBB0_1
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x20]
	add	w23, w9, w8
	b	LBB0_19
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh14:
	adrp	x8, _HCI_ACL_HDR_SIZE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HCI_ACL_HDR_SIZE@GOTPAGEOFF]
LBB0_17:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w22, [x8]
	cmp	w19, w22
	b.le	LBB0_1
; %bb.18:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x20]
	bl	___le16_to_cpu
	add	w23, w0, w22
LBB0_19:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x26]
	mov	x0, x23
	bl	_bt_skb_alloc
	cbz	x0, LBB0_25
; %bb.20:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, x0
	sub	w19, w19, #1
	str	x21, [x0, #8]
	ldr	x8, [x24]
	str	x0, [x8, x25, lsl #3]
	ldr	x28, [x0]
	stp	w27, w23, [x28]
LBB0_21:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	mov	x1, x19
	bl	_min
	mov	x23, x0
	mov	x0, x22
	mov	x1, x23
	bl	_skb_put
	mov	x1, x20
	mov	x2, x23
	bl	_memcpy
	ldr	w8, [x28, #4]
	subs	w8, w8, w23
	str	w8, [x28, #4]
	b.ne	LBB0_5
; %bb.22:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x24]
	str	xzr, [x8, x25, lsl #3]
	ldr	w27, [x28]
	mov	x0, x22
	bl	_bt_cb
	str	w27, [x0]
	mov	x0, x22
	bl	_hci_recv_frame
	b	LBB0_5
LBB0_23:
	mov	w0, #0
LBB0_24:
	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_25:
	ldr	w1, [x21]
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BT_ERR
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_12-LBB0_10)>>2
	.byte	(LBB0_13-LBB0_10)>>2
	.byte	(LBB0_16-LBB0_10)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s queue %d buffer %p count %d"

	.comm	_EILSEQ,4,2                     ; @EILSEQ
	.comm	_HCI_EVENT_HDR_SIZE,4,2         ; @HCI_EVENT_HDR_SIZE
	.comm	_HCI_ACL_HDR_SIZE,4,2           ; @HCI_ACL_HDR_SIZE
	.comm	_HCI_SCO_HDR_SIZE,4,2           ; @HCI_SCO_HDR_SIZE
	.comm	_HCI_VENDOR_HDR_SIZE,4,2        ; @HCI_VENDOR_HDR_SIZE
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
l_.str.1:                               ; @.str.1
	.asciz	"%s no memory for packet"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_bpa10x_recv
.subsections_via_symbols
