	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ub_submit_clear_stall
_ub_submit_clear_stall:                 ## @ub_submit_clear_stall
	.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
	movl	%edx, %r15d
	movq	%rdi, %rbx
	movl	%edx, %edi
	callq	_usb_pipeendpoint
	movl	%eax, %r14d
	movl	%r15d, %edi
	callq	_usb_pipein
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_2:
	orl	%r14d, %r15d
	leaq	24(%rbx), %r14
	movq	_USB_RECIP_ENDPOINT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movq	_USB_REQ_CLEAR_FEATURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_USB_ENDPOINT_HALT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 40(%rbx)
	movl	%r15d, %edi
	callq	_cpu_to_le16
	movq	%rax, 32(%rbx)
	xorl	%edi, %edi
	callq	_cpu_to_le16
	movq	%rax, 24(%rbx)
	movl	8(%rbx), %edi
	callq	_UB_INIT_COMPLETION
	leaq	12(%rbx), %r15
	movl	16(%rbx), %edx
	movl	20(%rbx), %esi
	movq	_ub_urb_complete@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r15, %rdi
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rbx
	pushq	%rax
	callq	_usb_fill_control_urb
	addq	$16, %rsp
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_usb_submit_urb
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_ub_complete
	jmp	LBB0_5
LBB0_4:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_UB_CTRL_TIMEOUT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	(%rax), %rcx
	movq	%rcx, (%rbx)
	movq	%rbx, %rdi
	callq	_add_timer
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
	.comm	_USB_RECIP_ENDPOINT,4,2         ## @USB_RECIP_ENDPOINT
	.comm	_USB_REQ_CLEAR_FEATURE,4,2      ## @USB_REQ_CLEAR_FEATURE
	.comm	_USB_ENDPOINT_HALT,4,2          ## @USB_ENDPOINT_HALT
	.comm	_ub_urb_complete,4,2            ## @ub_urb_complete
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_UB_CTRL_TIMEOUT,8,3            ## @UB_CTRL_TIMEOUT
	.no_dead_strip	_ub_submit_clear_stall
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ub_submit_clear_stall
_ub_submit_clear_stall:                 ; @ub_submit_clear_stall
	.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	x20, x2
	mov	x19, x0
	mov	x0, x2
	bl	_usb_pipeendpoint
	mov	x21, x0
	mov	x0, x20
	bl	_usb_pipein
Lloh0:
	adrp	x8, _USB_DIR_IN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_DIR_IN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w20, w8, w21
Lloh3:
	adrp	x8, _USB_RECIP_ENDPOINT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _USB_RECIP_ENDPOINT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _USB_REQ_CLEAR_FEATURE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _USB_REQ_CLEAR_FEATURE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #48]
Lloh9:
	adrp	x8, _USB_ENDPOINT_HALT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _USB_ENDPOINT_HALT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x19, #40]
	mov	x0, x20
	bl	_cpu_to_le16
	str	x0, [x19, #32]
	mov	w0, #0
	bl	_cpu_to_le16
	mov	x21, x19
	str	x0, [x21, #24]!
	mov	x20, x19
	ldr	w0, [x20, #8]!
	bl	_UB_INIT_COMPLETION
	add	x22, x19, #12
	ldp	w2, w1, [x19, #16]
Lloh12:
	adrp	x8, _ub_urb_complete@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ub_urb_complete@GOTPAGEOFF]
Lloh14:
	ldr	w6, [x8]
	mov	x0, x22
	mov	x3, x21
	mov	x4, #0
	mov	w5, #0
	mov	x7, x19
	bl	_usb_fill_control_urb
Lloh15:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_usb_submit_urb
	mov	x21, x0
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_ub_complete
	b	LBB0_3
LBB0_2:
Lloh18:
	adrp	x8, _jiffies@GOTPAGE
Lloh19:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
Lloh21:
	adrp	x9, _UB_CTRL_TIMEOUT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _UB_CTRL_TIMEOUT@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x8, x9, x8
	str	x8, [x19]
	mov	x0, x19
	bl	_add_timer
LBB0_3:
	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 AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
	.comm	_USB_RECIP_ENDPOINT,4,2         ; @USB_RECIP_ENDPOINT
	.comm	_USB_REQ_CLEAR_FEATURE,4,2      ; @USB_REQ_CLEAR_FEATURE
	.comm	_USB_ENDPOINT_HALT,4,2          ; @USB_ENDPOINT_HALT
	.comm	_ub_urb_complete,4,2            ; @ub_urb_complete
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_UB_CTRL_TIMEOUT,8,3            ; @UB_CTRL_TIMEOUT
	.no_dead_strip	_ub_submit_clear_stall
.subsections_via_symbols
