	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfcmrvl_bulk_complete
_nfcmrvl_bulk_complete:                 ## @nfcmrvl_bulk_complete
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r12
	movq	(%r12), %rdi
	movl	(%rbx), %r8d
	movl	8(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_dev_dbg
	movq	_NFCMRVL_NCI_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%r12), %r14
	movq	%r14, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_13
## %bb.1:
	cmpl	$0, 8(%rbx)
	jne	LBB0_7
## %bb.2:
	movq	16(%r12), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_nci_skb_alloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	%rax, %rdi
	callq	_skb_put_data
	movq	16(%r12), %rdi
	movq	%r15, %rsi
	callq	_nfcmrvl_nci_recv_frame
	testq	%rax, %rax
	jns	LBB0_7
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	movq	(%r12), %rdi
	xorl	%eax, %eax
	callq	_nfc_err
LBB0_7:
	movq	_NFCMRVL_USB_BULK_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_13
## %bb.8:
	leaq	8(%r12), %rsi
	movq	%rbx, %rdi
	callq	_usb_anchor_urb
	movq	(%r12), %rdi
	callq	_usb_mark_last_busy
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_usb_submit_urb
	testl	%eax, %eax
	je	LBB0_13
## %bb.9:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_12
## %bb.10:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_12
## %bb.11:
	movq	(%r12), %rdi
	negl	%eax
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_nfc_err
LBB0_12:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_usb_unanchor_urb               ## TAILCALL
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"urb %p status %d count %d\n"

	.comm	_NFCMRVL_NCI_RUNNING,4,2        ## @NFCMRVL_NCI_RUNNING
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
L_.str.1:                               ## @.str.1
	.asciz	"failed to alloc mem\n"

L_.str.2:                               ## @.str.2
	.asciz	"corrupted Rx packet\n"

	.comm	_NFCMRVL_USB_BULK_RUNNING,4,2   ## @NFCMRVL_USB_BULK_RUNNING
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.3:                               ## @.str.3
	.asciz	"urb %p failed to resubmit (%d)\n"

	.no_dead_strip	_nfcmrvl_bulk_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfcmrvl_bulk_complete
_nfcmrvl_bulk_complete:                 ; @nfcmrvl_bulk_complete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	ldr	x22, [x0, #16]
	mov	x20, x22
	ldr	x0, [x20], #12
	ldr	w3, [x19, #8]
	ldr	w4, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_dbg
Lloh2:
	adrp	x8, _NFCMRVL_NCI_RUNNING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NFCMRVL_NCI_RUNNING@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	w0, LBB0_13
; %bb.1:
	ldr	w8, [x19, #8]
Lloh5:
	adrp	x23, _GFP_ATOMIC@GOTPAGE
Lloh6:
	ldr	x23, [x23, _GFP_ATOMIC@GOTPAGEOFF]
	cbnz	w8, LBB0_7
; %bb.2:
	ldr	x8, [x22, #16]
	ldr	w0, [x8]
	ldr	w1, [x19]
	ldr	w2, [x23]
	bl	_nci_skb_alloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, x0
	ldp	w2, w1, [x19]
	bl	_skb_put_data
	ldr	x0, [x22, #16]
	mov	x1, x21
	bl	_nfcmrvl_nci_recv_frame
	tbz	x0, #63, LBB0_7
; %bb.4:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	ldr	x0, [x22]
	bl	_nfc_err
LBB0_7:
Lloh11:
	adrp	x8, _NFCMRVL_USB_BULK_RUNNING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NFCMRVL_USB_BULK_RUNNING@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	w0, LBB0_13
; %bb.8:
	add	x1, x22, #8
	mov	x0, x19
	bl	_usb_anchor_urb
	ldr	x0, [x22]
	bl	_usb_mark_last_busy
	ldr	w1, [x23]
	mov	x0, x19
	bl	_usb_submit_urb
	cbz	w0, LBB0_13
; %bb.9:
Lloh14:
	adrp	x8, _EPERM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_12
; %bb.10:
Lloh17:
	adrp	x8, _ENODEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_12
; %bb.11:
	ldr	x8, [x22]
	neg	w9, w0
	stp	x19, x9, [sp]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x8
	bl	_nfc_err
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_usb_unanchor_urb
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"urb %p status %d count %d\n"

	.comm	_NFCMRVL_NCI_RUNNING,4,2        ; @NFCMRVL_NCI_RUNNING
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
l_.str.1:                               ; @.str.1
	.asciz	"failed to alloc mem\n"

l_.str.2:                               ; @.str.2
	.asciz	"corrupted Rx packet\n"

	.comm	_NFCMRVL_USB_BULK_RUNNING,4,2   ; @NFCMRVL_USB_BULK_RUNNING
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.3:                               ; @.str.3
	.asciz	"urb %p failed to resubmit (%d)\n"

	.no_dead_strip	_nfcmrvl_bulk_complete
.subsections_via_symbols
