	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usb_device_endpoint_clear_halt ## -- Begin function usb_device_endpoint_clear_halt
	.p2align	4, 0x90
_usb_device_endpoint_clear_halt:        ## @usb_device_endpoint_clear_halt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_USB_EP_ADDR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%esi, %eax
	movslq	%eax, %rcx
	movq	_USB_EP_DIR_IN@GOTPCREL(%rip), %r8
	movq	(%rdi), %rax
	movq	(%rax), %rax
	leaq	(%rcx,%rcx,2), %rcx
	movl	8(%rax,%rcx,4), %edx
	testl	%esi, (%r8)
	je	LBB0_4
## %bb.1:
	movq	_USB_DEVICE_EPSTATUSSET_STALLRQ1@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	je	LBB0_8
## %bb.2:
	movq	_USB_DEVICE_EPSTATUSCLR_STALLRQ1@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, (%rax,%rcx,4)
	movq	_USB_DEVICE_EPINTFLAG_STALL1@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, 4(%rax,%rcx,4)
	je	LBB0_8
## %bb.3:
	leaq	(%rax,%rcx,4), %rax
	movl	%edx, 4(%rax)
	movq	_USB_DEVICE_EPSTATUSSET_DTGLIN@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_4:
	movq	_USB_DEVICE_EPSTATUSSET_STALLRQ0@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	je	LBB0_8
## %bb.5:
	movq	_USB_DEVICE_EPSTATUSCLR_STALLRQ0@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, (%rax,%rcx,4)
	movq	_USB_DEVICE_EPINTFLAG_STALL0@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, 4(%rax,%rcx,4)
	je	LBB0_8
## %bb.6:
	leaq	(%rax,%rcx,4), %rax
	movl	%edx, 4(%rax)
	movq	_USB_DEVICE_EPSTATUSSET_DTGLOUT@GOTPCREL(%rip), %rcx
LBB0_7:
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
LBB0_8:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_EP_ADDR_MASK,4,2           ## @USB_EP_ADDR_MASK
	.comm	_USB_EP_DIR_IN,4,2              ## @USB_EP_DIR_IN
	.comm	_USB_DEVICE_EPSTATUSSET_STALLRQ1,4,2 ## @USB_DEVICE_EPSTATUSSET_STALLRQ1
	.comm	_USB_DEVICE_EPSTATUSCLR_STALLRQ1,4,2 ## @USB_DEVICE_EPSTATUSCLR_STALLRQ1
	.comm	_USB_DEVICE_EPINTFLAG_STALL1,4,2 ## @USB_DEVICE_EPINTFLAG_STALL1
	.comm	_USB_DEVICE_EPSTATUSSET_DTGLIN,4,2 ## @USB_DEVICE_EPSTATUSSET_DTGLIN
	.comm	_USB_DEVICE_EPSTATUSSET_STALLRQ0,4,2 ## @USB_DEVICE_EPSTATUSSET_STALLRQ0
	.comm	_USB_DEVICE_EPSTATUSCLR_STALLRQ0,4,2 ## @USB_DEVICE_EPSTATUSCLR_STALLRQ0
	.comm	_USB_DEVICE_EPINTFLAG_STALL0,4,2 ## @USB_DEVICE_EPINTFLAG_STALL0
	.comm	_USB_DEVICE_EPSTATUSSET_DTGLOUT,4,2 ## @USB_DEVICE_EPSTATUSSET_DTGLOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usb_device_endpoint_clear_halt ; -- Begin function usb_device_endpoint_clear_halt
	.p2align	2
_usb_device_endpoint_clear_halt:        ; @usb_device_endpoint_clear_halt
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _USB_EP_ADDR_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_EP_ADDR_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w10, w8, w1
Lloh3:
	adrp	x8, _USB_EP_DIR_IN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _USB_EP_DIR_IN@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x8]
	ldr	x8, [x0]
	ldr	x8, [x8]
	sxtw	x9, w10
	mov	w12, #12
	smaddl	x10, w10, w12, x8
	ldr	w10, [x10, #8]
	tst	w11, w1
	b.eq	LBB0_4
; %bb.1:
Lloh6:
	adrp	x11, _USB_DEVICE_EPSTATUSSET_STALLRQ1@GOTPAGE
Lloh7:
	ldr	x11, [x11, _USB_DEVICE_EPSTATUSSET_STALLRQ1@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_8
; %bb.2:
Lloh9:
	adrp	x10, _USB_DEVICE_EPSTATUSCLR_STALLRQ1@GOTPAGE
Lloh10:
	ldr	x10, [x10, _USB_DEVICE_EPSTATUSCLR_STALLRQ1@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	mov	w11, #12
	madd	x8, x9, x11, x8
	str	w10, [x8]
	mov	x9, x8
	ldr	w11, [x9, #4]!
Lloh12:
	adrp	x10, _USB_DEVICE_EPINTFLAG_STALL1@GOTPAGE
Lloh13:
	ldr	x10, [x10, _USB_DEVICE_EPINTFLAG_STALL1@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	tst	w10, w11
	b.eq	LBB0_8
; %bb.3:
	str	w10, [x9]
Lloh15:
	adrp	x9, _USB_DEVICE_EPSTATUSSET_DTGLIN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _USB_DEVICE_EPSTATUSSET_DTGLIN@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh17:
	adrp	x11, _USB_DEVICE_EPSTATUSSET_STALLRQ0@GOTPAGE
Lloh18:
	ldr	x11, [x11, _USB_DEVICE_EPSTATUSSET_STALLRQ0@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_8
; %bb.5:
Lloh20:
	adrp	x10, _USB_DEVICE_EPSTATUSCLR_STALLRQ0@GOTPAGE
Lloh21:
	ldr	x10, [x10, _USB_DEVICE_EPSTATUSCLR_STALLRQ0@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	mov	w11, #12
	madd	x8, x9, x11, x8
	str	w10, [x8]
	mov	x9, x8
	ldr	w11, [x9, #4]!
Lloh23:
	adrp	x10, _USB_DEVICE_EPINTFLAG_STALL0@GOTPAGE
Lloh24:
	ldr	x10, [x10, _USB_DEVICE_EPINTFLAG_STALL0@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	tst	w10, w11
	b.eq	LBB0_8
; %bb.6:
	str	w10, [x9]
Lloh26:
	adrp	x9, _USB_DEVICE_EPSTATUSSET_DTGLOUT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _USB_DEVICE_EPSTATUSSET_DTGLOUT@GOTPAGEOFF]
LBB0_7:
	ldr	w9, [x9]
	str	w9, [x8]
LBB0_8:
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_EP_ADDR_MASK,4,2           ; @USB_EP_ADDR_MASK
	.comm	_USB_EP_DIR_IN,4,2              ; @USB_EP_DIR_IN
	.comm	_USB_DEVICE_EPSTATUSSET_STALLRQ1,4,2 ; @USB_DEVICE_EPSTATUSSET_STALLRQ1
	.comm	_USB_DEVICE_EPSTATUSCLR_STALLRQ1,4,2 ; @USB_DEVICE_EPSTATUSCLR_STALLRQ1
	.comm	_USB_DEVICE_EPINTFLAG_STALL1,4,2 ; @USB_DEVICE_EPINTFLAG_STALL1
	.comm	_USB_DEVICE_EPSTATUSSET_DTGLIN,4,2 ; @USB_DEVICE_EPSTATUSSET_DTGLIN
	.comm	_USB_DEVICE_EPSTATUSSET_STALLRQ0,4,2 ; @USB_DEVICE_EPSTATUSSET_STALLRQ0
	.comm	_USB_DEVICE_EPSTATUSCLR_STALLRQ0,4,2 ; @USB_DEVICE_EPSTATUSCLR_STALLRQ0
	.comm	_USB_DEVICE_EPINTFLAG_STALL0,4,2 ; @USB_DEVICE_EPINTFLAG_STALL0
	.comm	_USB_DEVICE_EPSTATUSSET_DTGLOUT,4,2 ; @USB_DEVICE_EPSTATUSSET_DTGLOUT
.subsections_via_symbols
