	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfcmrvl_submit_bulk_urb
_nfcmrvl_submit_bulk_urb:               ## @nfcmrvl_submit_bulk_urb
	.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
	cmpq	$0, 16(%rdi)
	je	LBB0_9
## %bb.1:
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	_NFCMRVL_NCI_MAX_EVENT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	%rax, %r14
	movl	%r13d, %edi
	movl	%r15d, %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	%rax, %rbx
	movq	(%r12), %rdi
	movq	16(%r12), %rax
	movl	(%rax), %esi
	callq	_usb_rcvbulkpipe
	movq	(%r12), %rsi
	movq	_nfcmrvl_bulk_complete@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%r12, (%rsp)
	movq	%r14, %rdi
	movl	%eax, %edx
	movq	%rbx, %rcx
	movl	%r13d, %r8d
	callq	_usb_fill_bulk_urb
	movq	_URB_FREE_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	movq	(%r12), %rdi
	callq	_usb_mark_last_busy
	leaq	8(%r12), %rsi
	movq	%r14, %rdi
	callq	_usb_anchor_urb
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_usb_submit_urb
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movq	_EPERM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_7
## %bb.5:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_7
## %bb.6:
	movq	(%r12), %rdi
	movl	%ebx, %ecx
	negl	%ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_nfc_err
LBB0_7:
	movq	%r14, %rdi
	callq	_usb_unanchor_urb
LBB0_8:
	movq	%r14, %rdi
	callq	_usb_free_urb
	jmp	LBB0_14
LBB0_9:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movq	%r14, %rdi
	callq	_usb_free_urb
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NFCMRVL_NCI_MAX_EVENT_SIZE,4,2 ## @NFCMRVL_NCI_MAX_EVENT_SIZE
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_nfcmrvl_bulk_complete,4,2      ## @nfcmrvl_bulk_complete
	.comm	_URB_FREE_BUFFER,4,2            ## @URB_FREE_BUFFER
	.comm	_EPERM,4,2                      ## @EPERM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"urb %p submission failed (%d)\n"

	.no_dead_strip	_nfcmrvl_submit_bulk_urb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfcmrvl_submit_bulk_urb
_nfcmrvl_submit_bulk_urb:               ; @nfcmrvl_submit_bulk_urb
	.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
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_9
; %bb.1:
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _NFCMRVL_NCI_MAX_EVENT_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFCMRVL_NCI_MAX_EVENT_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	mov	w0, #0
	bl	_usb_alloc_urb
	cbz	x0, LBB0_11
; %bb.2:
	mov	x19, x0
	mov	x0, x22
	mov	x1, x21
	bl	_kmalloc
	cbz	x0, LBB0_10
; %bb.3:
	mov	x23, x0
	ldr	x0, [x20]
	ldr	x8, [x20, #16]
	ldr	w1, [x8]
	bl	_usb_rcvbulkpipe
	mov	x2, x0
	ldr	x1, [x20]
Lloh3:
	adrp	x8, _nfcmrvl_bulk_complete@GOTPAGE
Lloh4:
	ldr	x8, [x8, _nfcmrvl_bulk_complete@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x8]
	mov	x0, x19
	mov	x3, x23
	mov	x4, x22
	mov	x6, x20
	bl	_usb_fill_bulk_urb
Lloh6:
	adrp	x8, _URB_FREE_BUFFER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _URB_FREE_BUFFER@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	x0, [x20]
	bl	_usb_mark_last_busy
	add	x1, x20, #8
	mov	x0, x19
	bl	_usb_anchor_urb
	mov	x0, x19
	mov	x1, x21
	bl	_usb_submit_urb
	mov	x21, x0
	cbz	w0, LBB0_8
; %bb.4:
Lloh9:
	adrp	x8, _EPERM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmn	w21, w8
	b.eq	LBB0_7
; %bb.5:
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmn	w21, w8
	b.eq	LBB0_7
; %bb.6:
	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_7:
	mov	x0, x19
	bl	_usb_unanchor_urb
LBB0_8:
	mov	x0, x19
	bl	_usb_free_urb
	b	LBB0_13
LBB0_9:
Lloh17:
	adrp	x8, _ENODEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
	mov	x0, x19
	bl	_usb_free_urb
LBB0_11:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_13:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_NFCMRVL_NCI_MAX_EVENT_SIZE,4,2 ; @NFCMRVL_NCI_MAX_EVENT_SIZE
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_nfcmrvl_bulk_complete,4,2      ; @nfcmrvl_bulk_complete
	.comm	_URB_FREE_BUFFER,4,2            ; @URB_FREE_BUFFER
	.comm	_EPERM,4,2                      ; @EPERM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"urb %p submission failed (%d)\n"

	.no_dead_strip	_nfcmrvl_submit_bulk_urb
.subsections_via_symbols
