	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfcmrvl_usb_nci_send
_nfcmrvl_usb_nci_send:                  ## @nfcmrvl_usb_nci_send
	.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
	movq	(%rdi), %rbx
	cmpq	$0, 24(%rbx)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r12
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	(%rbx), %rdi
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	callq	_usb_sndbulkpipe
	movq	(%rbx), %rsi
	movl	(%r12), %r8d
	movl	4(%r12), %ecx
	movq	_nfcmrvl_tx_complete@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	%r12, (%rsp)
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_usb_fill_bulk_urb
	movq	%rbx, %rdi
	callq	_nfcmrvl_inc_tx
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	leaq	16(%rbx), %rsi
	movq	%r14, %rdi
	callq	_usb_anchor_urb
	addq	$12, %rbx
	movq	%rbx, %rdi
	callq	_schedule_work
LBB0_12:
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_14
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_14
LBB0_6:
	leaq	8(%rbx), %rsi
	movq	%r14, %rdi
	callq	_usb_anchor_urb
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_usb_submit_urb
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:
	movl	%eax, %r15d
	movq	_EPERM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r15d, %eax
	je	LBB0_10
## %bb.8:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r15d, %eax
	je	LBB0_10
## %bb.9:
	movq	(%rbx), %rdi
	movl	%r15d, %ecx
	negl	%ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_nfc_err
LBB0_10:
	movl	(%r14), %edi
	callq	_kfree
	movq	%r14, %rdi
	callq	_usb_unanchor_urb
LBB0_13:
	movq	%r14, %rdi
	callq	_usb_free_urb
LBB0_14:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	(%rbx), %rdi
	callq	_usb_mark_last_busy
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_nfcmrvl_tx_complete,4,2        ## @nfcmrvl_tx_complete
	.comm	_EPERM,4,2                      ## @EPERM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"urb %p submission failed (%d)\n"

	.no_dead_strip	_nfcmrvl_usb_nci_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfcmrvl_usb_nci_send
_nfcmrvl_usb_nci_send:                  ; @nfcmrvl_usb_nci_send
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x20, [x0]
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x21, x1
Lloh0:
	adrp	x22, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #0
	bl	_usb_alloc_urb
	cbz	x0, LBB0_5
; %bb.2:
	mov	x19, x0
	ldr	x0, [x20]
	ldr	x8, [x20, #24]
	ldr	w1, [x8]
	bl	_usb_sndbulkpipe
	mov	x2, x0
	ldr	x1, [x20]
	ldp	w4, w3, [x21]
Lloh2:
	adrp	x8, _nfcmrvl_tx_complete@GOTPAGE
Lloh3:
	ldr	x8, [x8, _nfcmrvl_tx_complete@GOTPAGEOFF]
Lloh4:
	ldr	w5, [x8]
	mov	x0, x19
	mov	x6, x21
	bl	_usb_fill_bulk_urb
	mov	x0, x20
	bl	_nfcmrvl_inc_tx
	cbz	w0, LBB0_7
; %bb.3:
	add	x1, x20, #16
	mov	x0, x19
	bl	_usb_anchor_urb
	add	x0, x20, #12
	bl	_schedule_work
	mov	w21, #0
	b	LBB0_13
LBB0_4:
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_14
LBB0_7:
	add	x1, x20, #8
	mov	x0, x19
	bl	_usb_anchor_urb
	ldr	w1, [x22]
	mov	x0, x19
	bl	_usb_submit_urb
	mov	x21, x0
	cbz	w0, LBB0_12
; %bb.8:
Lloh9:
	adrp	x8, _EPERM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmn	w21, w8
	b.eq	LBB0_11
; %bb.9:
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmn	w21, w8
	b.eq	LBB0_11
; %bb.10:
	ldr	x0, [x20]
	neg	w3, w21
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_nfc_err
LBB0_11:
	ldr	w0, [x19]
	bl	_kfree
	mov	x0, x19
	bl	_usb_unanchor_urb
	b	LBB0_13
LBB0_12:
	ldr	x0, [x20]
	bl	_usb_mark_last_busy
LBB0_13:
	mov	x0, x19
	bl	_usb_free_urb
LBB0_14:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_nfcmrvl_tx_complete,4,2        ; @nfcmrvl_tx_complete
	.comm	_EPERM,4,2                      ; @EPERM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"urb %p submission failed (%d)\n"

	.no_dead_strip	_nfcmrvl_usb_nci_send
.subsections_via_symbols
