	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _usb_ep0_on_setup
__usb_ep0_on_setup:                     ## @_usb_ep0_on_setup
	.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	_UDD_EPCTRL_SETUP@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	_udd_ep_control_state@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	je	LBB0_4
## %bb.1:
	movq	_udd_g_ctrlreq@GOTPCREL(%rip), %rcx
	movq	8(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	*%rcx
	movq	(%r15), %rax
LBB0_3:
	movq	%rax, (%r14)
LBB0_4:
	cmpl	$8, (%rbx)
	jne	LBB0_9
## %bb.5:
	xorl	%eax, %eax
	callq	_udd_ctrl_fetch_ram
	xorl	%eax, %eax
	callq	_udc_process_setup
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	xorl	%eax, %eax
	callq	_Udd_setup_is_in
	testq	%rax, %rax
	je	LBB0_7
## %bb.10:
	movq	_udd_ctrl_prev_payload_nb_trans@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_udd_ctrl_payload_nb_trans@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_UDD_EPCTRL_DATA_IN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	_udd_ctrl_buffer@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_USB_DEVICE_EP_CTRL_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_usb_device@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_usb_device_endpoint_read_buffer_job
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_udd_ctrl_in_sent               ## TAILCALL
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_udd_ctrl_stall_data            ## TAILCALL
LBB0_7:
	movq	_udd_g_ctrlreq@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.8:
	movq	_udd_ctrl_prev_payload_nb_trans@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_udd_ctrl_payload_nb_trans@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_UDD_EPCTRL_DATA_OUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	_udd_ctrl_buffer@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_USB_DEVICE_EP_CTRL_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_usb_device@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_usb_device_endpoint_read_buffer_job ## TAILCALL
LBB0_11:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_udd_ctrl_send_zlp_in           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UDD_EPCTRL_SETUP,8,3           ## @UDD_EPCTRL_SETUP
	.comm	_udd_ep_control_state,8,3       ## @udd_ep_control_state
	.comm	_udd_g_ctrlreq,16,3             ## @udd_g_ctrlreq
	.comm	_udd_ctrl_prev_payload_nb_trans,8,3 ## @udd_ctrl_prev_payload_nb_trans
	.comm	_udd_ctrl_payload_nb_trans,8,3  ## @udd_ctrl_payload_nb_trans
	.comm	_UDD_EPCTRL_DATA_IN,8,3         ## @UDD_EPCTRL_DATA_IN
	.comm	_usb_device,4,2                 ## @usb_device
	.comm	_udd_ctrl_buffer,4,2            ## @udd_ctrl_buffer
	.comm	_USB_DEVICE_EP_CTRL_SIZE,4,2    ## @USB_DEVICE_EP_CTRL_SIZE
	.comm	_UDD_EPCTRL_DATA_OUT,8,3        ## @UDD_EPCTRL_DATA_OUT
	.no_dead_strip	__usb_ep0_on_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _usb_ep0_on_setup
__usb_ep0_on_setup:                     ; @_usb_ep0_on_setup
	.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
Lloh0:
	adrp	x21, _UDD_EPCTRL_SETUP@GOTPAGE
Lloh1:
	ldr	x21, [x21, _UDD_EPCTRL_SETUP@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh2:
	adrp	x20, _udd_ep_control_state@GOTPAGE
Lloh3:
	ldr	x20, [x20, _udd_ep_control_state@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.1:
Lloh4:
	adrp	x9, _udd_g_ctrlreq@GOTPAGE
Lloh5:
	ldr	x9, [x9, _udd_g_ctrlreq@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_3
; %bb.2:
	blr	x9
	ldr	x8, [x21]
LBB0_3:
	str	x8, [x20]
LBB0_4:
	ldr	w8, [x19]
	cmp	w8, #8
	b.ne	LBB0_8
; %bb.5:
	bl	_udd_ctrl_fetch_ram
	bl	_udc_process_setup
	cbz	w0, LBB0_8
; %bb.6:
	bl	_Udd_setup_is_in
	cbz	x0, LBB0_9
; %bb.7:
Lloh7:
	adrp	x8, _udd_ctrl_prev_payload_nb_trans@GOTPAGE
Lloh8:
	ldr	x8, [x8, _udd_ctrl_prev_payload_nb_trans@GOTPAGEOFF]
Lloh9:
	adrp	x9, _udd_ctrl_payload_nb_trans@GOTPAGE
Lloh10:
	ldr	x9, [x9, _udd_ctrl_payload_nb_trans@GOTPAGEOFF]
Lloh11:
	str	xzr, [x8]
Lloh12:
	str	xzr, [x9]
Lloh13:
	adrp	x8, _UDD_EPCTRL_DATA_IN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _UDD_EPCTRL_DATA_IN@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	str	x8, [x20]
Lloh16:
	adrp	x8, _udd_ctrl_buffer@GOTPAGE
Lloh17:
	ldr	x8, [x8, _udd_ctrl_buffer@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x8, _USB_DEVICE_EP_CTRL_SIZE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _USB_DEVICE_EP_CTRL_SIZE@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
Lloh22:
	adrp	x0, _usb_device@GOTPAGE
Lloh23:
	ldr	x0, [x0, _usb_device@GOTPAGEOFF]
	mov	w1, #0
	bl	_usb_device_endpoint_read_buffer_job
	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	_udd_ctrl_in_sent
LBB0_8:
	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	_udd_ctrl_stall_data
LBB0_9:
Lloh24:
	adrp	x8, _udd_g_ctrlreq@GOTPAGE
Lloh25:
	ldr	x8, [x8, _udd_g_ctrlreq@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.10:
Lloh27:
	adrp	x8, _udd_ctrl_prev_payload_nb_trans@GOTPAGE
Lloh28:
	ldr	x8, [x8, _udd_ctrl_prev_payload_nb_trans@GOTPAGEOFF]
Lloh29:
	adrp	x9, _udd_ctrl_payload_nb_trans@GOTPAGE
Lloh30:
	ldr	x9, [x9, _udd_ctrl_payload_nb_trans@GOTPAGEOFF]
Lloh31:
	str	xzr, [x8]
Lloh32:
	str	xzr, [x9]
Lloh33:
	adrp	x8, _UDD_EPCTRL_DATA_OUT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _UDD_EPCTRL_DATA_OUT@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	str	x8, [x20]
Lloh36:
	adrp	x8, _udd_ctrl_buffer@GOTPAGE
Lloh37:
	ldr	x8, [x8, _udd_ctrl_buffer@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
Lloh39:
	adrp	x8, _USB_DEVICE_EP_CTRL_SIZE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _USB_DEVICE_EP_CTRL_SIZE@GOTPAGEOFF]
Lloh41:
	ldr	w3, [x8]
Lloh42:
	adrp	x0, _usb_device@GOTPAGE
Lloh43:
	ldr	x0, [x0, _usb_device@GOTPAGEOFF]
	mov	w1, #0
	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_device_endpoint_read_buffer_job
LBB0_11:
	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	_udd_ctrl_send_zlp_in
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh12
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh11
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotStr	Lloh29, Lloh30, Lloh32
	.loh AdrpLdrGotStr	Lloh27, Lloh28, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_UDD_EPCTRL_SETUP,8,3           ; @UDD_EPCTRL_SETUP
	.comm	_udd_ep_control_state,8,3       ; @udd_ep_control_state
	.comm	_udd_g_ctrlreq,16,3             ; @udd_g_ctrlreq
	.comm	_udd_ctrl_prev_payload_nb_trans,8,3 ; @udd_ctrl_prev_payload_nb_trans
	.comm	_udd_ctrl_payload_nb_trans,8,3  ; @udd_ctrl_payload_nb_trans
	.comm	_UDD_EPCTRL_DATA_IN,8,3         ; @UDD_EPCTRL_DATA_IN
	.comm	_usb_device,4,2                 ; @usb_device
	.comm	_udd_ctrl_buffer,4,2            ; @udd_ctrl_buffer
	.comm	_USB_DEVICE_EP_CTRL_SIZE,4,2    ; @USB_DEVICE_EP_CTRL_SIZE
	.comm	_UDD_EPCTRL_DATA_OUT,8,3        ; @UDD_EPCTRL_DATA_OUT
	.no_dead_strip	__usb_ep0_on_setup
.subsections_via_symbols
