	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resubmit_urb
_resubmit_urb:                          ## @resubmit_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_FRAMES_PER_DESC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%esi, %esi
	jle	LBB0_2
## %bb.1:
	movq	24(%rbx), %rdi
	shlq	$3, %rsi
	callq	___bzero
LBB0_2:
	movl	(%r14), %eax
	movl	%eax, 16(%rbx)
	movq	$0, 8(%rbx)
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_usb_submit_urb
	movl	%eax, %r14d
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	callq	_DEBUG
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_err                            ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FRAMES_PER_DESC,4,2            ## @FRAMES_PER_DESC
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"submitting urb of length %d"

L_.str.1:                               ## @.str.1
	.asciz	"usb_submit_urb error (%d)"

	.no_dead_strip	_resubmit_urb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resubmit_urb
_resubmit_urb:                          ; @resubmit_urb
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _FRAMES_PER_DESC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FRAMES_PER_DESC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.1:
	ldr	x0, [x19, #24]
	lsl	x1, x8, #3
	bl	_bzero
LBB0_2:
	ldr	w8, [x20]
	str	w8, [x19, #16]
	str	xzr, [x19, #8]
Lloh3:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_usb_submit_urb
	mov	x20, x0
	ldr	w2, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	bl	_DEBUG
	cbz	w20, LBB0_4
; %bb.3:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_err
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_FRAMES_PER_DESC,4,2            ; @FRAMES_PER_DESC
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"submitting urb of length %d"

l_.str.1:                               ; @.str.1
	.asciz	"usb_submit_urb error (%d)"

	.no_dead_strip	_resubmit_urb
.subsections_via_symbols
