	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsusb_submit_urb
_smsusb_submit_urb:                     ## @smsusb_submit_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	cmpq	$0, 8(%rsi)
	jne	LBB0_3
## %bb.1:
	movl	12(%r14), %edi
	callq	_smscore_getbuffer
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movl	4(%r14), %esi
	movl	8(%r14), %r15d
	movl	%r15d, %edi
	callq	_usb_rcvbulkpipe
	movq	8(%rbx), %rcx
	movl	(%rcx), %ecx
	movl	(%r14), %r8d
	movq	_smsusb_onresponse@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	%rbx, (%rsp)
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_usb_fill_bulk_urb
	movq	_URB_FREE_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_usb_submit_urb                 ## TAILCALL
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"smscore_getbuffer(...) returned NULL\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_smsusb_onresponse,4,2          ## @smsusb_onresponse
	.comm	_URB_FREE_BUFFER,4,2            ## @URB_FREE_BUFFER
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.no_dead_strip	_smsusb_submit_urb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsusb_submit_urb
_smsusb_submit_urb:                     ; @smsusb_submit_urb
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1, #8]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x20, #12]
	bl	_smscore_getbuffer
	str	x0, [x19, #8]
	cbz	x0, LBB0_3
LBB0_2:
	ldp	w1, w21, [x20, #4]
	mov	x0, x21
	bl	_usb_rcvbulkpipe
	mov	x2, x0
	ldr	x8, [x19, #8]
	ldr	w3, [x8]
	ldr	w4, [x20]
Lloh0:
	adrp	x8, _smsusb_onresponse@GOTPAGE
Lloh1:
	ldr	x8, [x8, _smsusb_onresponse@GOTPAGEOFF]
Lloh2:
	ldr	w5, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	x6, x19
	bl	_usb_fill_bulk_urb
Lloh3:
	adrp	x8, _URB_FREE_BUFFER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _URB_FREE_BUFFER@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh6:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_usb_submit_urb
LBB0_3:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"smscore_getbuffer(...) returned NULL\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_smsusb_onresponse,4,2          ; @smsusb_onresponse
	.comm	_URB_FREE_BUFFER,4,2            ; @URB_FREE_BUFFER
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.no_dead_strip	_smsusb_submit_urb
.subsections_via_symbols
