	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bfusb_recv_block
_bfusb_recv_block:                      ## @bfusb_recv_block
	.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, %r15d
	movq	%rdx, %r12
	movl	%esi, %r14d
	movq	%rdi, %r13
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	movq	%r12, %rcx
	movl	%r15d, %r8d
	callq	_BT_DBG
	testb	$16, %r14b
	jne	LBB0_1
## %bb.2:
	movq	(%r13), %rbx
	testb	$4, %r14b
	jne	LBB0_3
## %bb.20:
	testq	%rbx, %rbx
	je	LBB0_21
## %bb.25:
	testl	%r15d, %r15d
	jle	LBB0_27
LBB0_26:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_skb_put
	movl	%eax, %edi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_memcpy
LBB0_27:
	xorl	%ebx, %ebx
	testb	$8, %r14b
	je	LBB0_29
## %bb.28:
	movq	(%r13), %rdi
	callq	_hci_recv_frame
	movq	$0, (%r13)
	jmp	LBB0_29
LBB0_1:
	movq	8(%r13), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_BT_ERR
	movq	(%r13), %rdi
	callq	_kfree_skb
	movq	$0, (%r13)
LBB0_22:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_23:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_29:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:
	movq	8(%r13), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_BT_ERR
	movq	(%r13), %rdi
	callq	_kfree_skb
	movq	$0, (%r13)
LBB0_5:
	testl	%r15d, %r15d
	jle	LBB0_6
## %bb.7:
	movb	(%r12), %cl
	incq	%r12
	cmpb	$-128, %cl
	je	LBB0_16
## %bb.8:
	cmpb	$-126, %cl
	je	LBB0_13
## %bb.9:
	xorl	%edi, %edi
	cmpb	$-127, %cl
	jne	LBB0_18
## %bb.10:
	movq	_HCI_EVENT_HDR_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpl	%r15d, %edi
	jl	LBB0_17
## %bb.11:
	movq	8(%r13), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_12
LBB0_21:
	movq	8(%r13), %rax
	movl	(%rax), %esi
	leaq	L_.str.8(%rip), %rdi
	callq	_BT_ERR
	jmp	LBB0_22
LBB0_6:
	movq	8(%r13), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_BT_ERR
	movq	_EPROTO@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_16:
	movq	_HCI_SCO_HDR_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpl	%r15d, %edi
	jge	LBB0_30
LBB0_17:
	addl	(%r12), %edi
	jmp	LBB0_18
LBB0_13:
	movq	_HCI_ACL_HDR_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	cmpl	%r15d, %ebx
	jge	LBB0_15
## %bb.14:
	movl	(%r12), %edi
	movb	%cl, -41(%rbp)                  ## 1-byte Spill
	callq	___le16_to_cpu
	movb	-41(%rbp), %cl                  ## 1-byte Reload
	movl	%eax, %edi
	addl	%ebx, %edi
LBB0_18:
	movb	%cl, -41(%rbp)                  ## 1-byte Spill
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bt_skb_alloc
	testq	%rax, %rax
	je	LBB0_19
## %bb.24:
	movq	%rax, %rbx
	decl	%r15d
	movq	8(%r13), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_bt_cb
	movb	-41(%rbp), %cl                  ## 1-byte Reload
	movb	%cl, (%rax)
	movq	%rbx, (%r13)
	testl	%r15d, %r15d
	jg	LBB0_26
	jmp	LBB0_27
LBB0_19:
	movq	8(%r13), %rax
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rdi
	callq	_BT_ERR
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_30:
	movq	8(%r13), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_12
LBB0_15:
	movq	8(%r13), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdi
LBB0_12:
	callq	_BT_ERR
	movq	_EILSEQ@GOTPCREL(%rip), %rax
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bfusb %p hdr 0x%02x data %p len %d"

L_.str.1:                               ## @.str.1
	.asciz	"%s error in block"

	.comm	_EIO,4,2                        ## @EIO
L_.str.2:                               ## @.str.2
	.asciz	"%s unexpected start block"

L_.str.3:                               ## @.str.3
	.asciz	"%s no packet type found"

	.comm	_EPROTO,4,2                     ## @EPROTO
	.comm	_HCI_EVENT_HDR_SIZE,4,2         ## @HCI_EVENT_HDR_SIZE
L_.str.4:                               ## @.str.4
	.asciz	"%s event block is too short"

	.comm	_EILSEQ,4,2                     ## @EILSEQ
	.comm	_HCI_ACL_HDR_SIZE,4,2           ## @HCI_ACL_HDR_SIZE
L_.str.5:                               ## @.str.5
	.asciz	"%s data block is too short"

	.comm	_HCI_SCO_HDR_SIZE,4,2           ## @HCI_SCO_HDR_SIZE
L_.str.6:                               ## @.str.6
	.asciz	"%s audio block is too short"

	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
L_.str.7:                               ## @.str.7
	.asciz	"%s no memory for the packet"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.8:                               ## @.str.8
	.asciz	"%s unexpected continuation block"

	.no_dead_strip	_bfusb_recv_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bfusb_recv_block
_bfusb_recv_block:                      ; @bfusb_recv_block
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	mov	x3, x22
	mov	x4, x21
	bl	_BT_DBG
	tbnz	w20, #4, LBB0_7
; %bb.1:
	ldr	x23, [x19]
	tbnz	w20, #2, LBB0_11
; %bb.2:
	cbz	x23, LBB0_20
; %bb.3:
	cmp	w21, #1
	b.lt	LBB0_5
LBB0_4:
	mov	x0, x23
	mov	x1, x21
	bl	_skb_put
	mov	x1, x22
	mov	x2, x21
	bl	_memcpy
LBB0_5:
	tbnz	w20, #3, LBB0_19
; %bb.6:
	mov	w0, #0
	b	LBB0_10
LBB0_7:
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BT_ERR
	ldr	x0, [x19]
	bl	_kfree_skb
	str	xzr, [x19]
LBB0_8:
Lloh4:
	adrp	x8, _EIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	cbz	x23, LBB0_13
; %bb.12:
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_BT_ERR
	ldr	x0, [x19]
	bl	_kfree_skb
	str	xzr, [x19]
LBB0_13:
	cmp	w21, #0
	b.le	LBB0_21
; %bb.14:
	ldrb	w24, [x22], #1
	cmp	w24, #128
	b.eq	LBB0_22
; %bb.15:
	cmp	w24, #130
	b.eq	LBB0_24
; %bb.16:
	cmp	w24, #129
	b.ne	LBB0_26
; %bb.17:
Lloh8:
	adrp	x8, _HCI_EVENT_HDR_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HCI_EVENT_HDR_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w21
	b.lt	LBB0_23
; %bb.18:
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_32
LBB0_19:
	ldr	x0, [x19]
	bl	_hci_recv_frame
	mov	w0, #0
	str	xzr, [x19]
	b	LBB0_10
LBB0_20:
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
Lloh13:
	adrp	x0, l_.str.8@PAGE
Lloh14:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_BT_ERR
	b	LBB0_8
LBB0_21:
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_BT_ERR
Lloh17:
	adrp	x8, _EPROTO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
	b	LBB0_9
LBB0_22:
Lloh19:
	adrp	x8, _HCI_SCO_HDR_SIZE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HCI_SCO_HDR_SIZE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ge	LBB0_30
LBB0_23:
	ldr	w9, [x22]
	add	w0, w9, w8
	b	LBB0_27
LBB0_24:
Lloh22:
	adrp	x8, _HCI_ACL_HDR_SIZE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _HCI_ACL_HDR_SIZE@GOTPAGEOFF]
Lloh24:
	ldr	w23, [x8]
	cmp	w23, w21
	b.ge	LBB0_31
; %bb.25:
	ldr	w0, [x22]
	bl	___le16_to_cpu
	add	w0, w0, w23
	b	LBB0_27
LBB0_26:
	mov	w0, #0
LBB0_27:
Lloh25:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh26:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	bl	_bt_skb_alloc
	cbz	x0, LBB0_29
; %bb.28:
	mov	x23, x0
	sub	w21, w21, #1
	ldr	x8, [x19, #8]
	str	x8, [x0]
	bl	_bt_cb
	strb	w24, [x0]
	str	x23, [x19]
	cmp	w21, #1
	b.ge	LBB0_4
	b	LBB0_5
LBB0_29:
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
Lloh28:
	adrp	x0, l_.str.7@PAGE
Lloh29:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_BT_ERR
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
LBB0_30:
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
Lloh32:
	adrp	x0, l_.str.6@PAGE
Lloh33:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_32
LBB0_31:
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
Lloh34:
	adrp	x0, l_.str.5@PAGE
Lloh35:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_32:
	bl	_BT_ERR
Lloh36:
	adrp	x8, _EILSEQ@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EILSEQ@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bfusb %p hdr 0x%02x data %p len %d"

l_.str.1:                               ; @.str.1
	.asciz	"%s error in block"

	.comm	_EIO,4,2                        ; @EIO
l_.str.2:                               ; @.str.2
	.asciz	"%s unexpected start block"

l_.str.3:                               ; @.str.3
	.asciz	"%s no packet type found"

	.comm	_EPROTO,4,2                     ; @EPROTO
	.comm	_HCI_EVENT_HDR_SIZE,4,2         ; @HCI_EVENT_HDR_SIZE
l_.str.4:                               ; @.str.4
	.asciz	"%s event block is too short"

	.comm	_EILSEQ,4,2                     ; @EILSEQ
	.comm	_HCI_ACL_HDR_SIZE,4,2           ; @HCI_ACL_HDR_SIZE
l_.str.5:                               ; @.str.5
	.asciz	"%s data block is too short"

	.comm	_HCI_SCO_HDR_SIZE,4,2           ; @HCI_SCO_HDR_SIZE
l_.str.6:                               ; @.str.6
	.asciz	"%s audio block is too short"

	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
l_.str.7:                               ; @.str.7
	.asciz	"%s no memory for the packet"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.8:                               ; @.str.8
	.asciz	"%s unexpected continuation block"

	.no_dead_strip	_bfusb_recv_block
.subsections_via_symbols
