	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function udd_ctrl_out_received
_udd_ctrl_out_received:                 ## @udd_ctrl_out_received
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_udd_g_ctrlreq@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movq	_udd_ctrl_payload_nb_trans@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	leaq	(%rdi,%rax), %rdx
	movq	%rcx, %rbx
	subq	%rdi, %rbx
	cmpq	%rdx, %rcx
	cmovgeq	%rax, %rbx
	addq	8(%r12), %rdi
	movq	_udd_ctrl_buffer@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdx
	callq	_memcpy
	movq	(%r14), %rax
	addq	%rbx, %rax
	movq	%rax, (%r14)
	movq	_USB_DEVICE_EP_CTRL_SIZE@GOTPCREL(%rip), %r13
	cmpq	%rbx, (%r13)
	jne	LBB0_2
## %bb.1:
	movq	_udd_ctrl_prev_payload_nb_trans@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rcx
	addq	%rax, %rcx
	cmpq	%rcx, 24(%r12)
	jle	LBB0_2
## %bb.5:
	cmpq	%rax, (%r12)
	jne	LBB0_9
## %bb.6:
	movq	16(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.7:
	movq	%rdx, %rbx
	xorl	%eax, %eax
	callq	*%rcx
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movq	(%r14), %rax
	addq	%rax, (%rbx)
	movq	$0, (%r14)
	movq	(%r13), %rbx
LBB0_9:
	movl	(%r15), %edx
	movq	_usb_device@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_usb_device_endpoint_read_buffer_job ## TAILCALL
LBB0_2:
	movq	%rax, (%r12)
	movq	16(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	*%rcx
	testl	%eax, %eax
	je	LBB0_10
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_udd_ctrl_send_zlp_in           ## TAILCALL
LBB0_10:
	movq	_UDD_EPCTRL_STALL_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_udd_ep_control_state@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%edi, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_udd_ep_set_halt                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_udd_g_ctrlreq,32,3             ## @udd_g_ctrlreq
	.comm	_udd_ctrl_payload_nb_trans,8,3  ## @udd_ctrl_payload_nb_trans
	.comm	_udd_ctrl_buffer,4,2            ## @udd_ctrl_buffer
	.comm	_USB_DEVICE_EP_CTRL_SIZE,8,3    ## @USB_DEVICE_EP_CTRL_SIZE
	.comm	_udd_ctrl_prev_payload_nb_trans,8,3 ## @udd_ctrl_prev_payload_nb_trans
	.comm	_UDD_EPCTRL_STALL_REQ,4,2       ## @UDD_EPCTRL_STALL_REQ
	.comm	_udd_ep_control_state,4,2       ## @udd_ep_control_state
	.comm	_usb_device,4,2                 ## @usb_device
	.no_dead_strip	_udd_ctrl_out_received
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function udd_ctrl_out_received
_udd_ctrl_out_received:                 ; @udd_ctrl_out_received
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x22, _udd_g_ctrlreq@GOTPAGE
Lloh1:
	ldr	x22, [x22, _udd_g_ctrlreq@GOTPAGEOFF]
Lloh2:
	adrp	x20, _udd_ctrl_payload_nb_trans@GOTPAGE
Lloh3:
	ldr	x20, [x20, _udd_ctrl_payload_nb_trans@GOTPAGEOFF]
	ldr	x8, [x0]
	ldr	x9, [x20]
	ldp	x10, x11, [x22]
	sub	x12, x10, x9
	add	x13, x9, x8
	cmp	x10, x13
	csel	x19, x12, x8, lt
	add	x0, x11, x9
Lloh4:
	adrp	x21, _udd_ctrl_buffer@GOTPAGE
Lloh5:
	ldr	x21, [x21, _udd_ctrl_buffer@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x2, x19
	bl	_memcpy
	ldr	x8, [x20]
	add	x8, x8, x19
	str	x8, [x20]
Lloh6:
	adrp	x23, _USB_DEVICE_EP_CTRL_SIZE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _USB_DEVICE_EP_CTRL_SIZE@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x9, x19
	b.ne	LBB0_7
; %bb.1:
	ldr	x9, [x22, #24]
Lloh8:
	adrp	x24, _udd_ctrl_prev_payload_nb_trans@GOTPAGE
Lloh9:
	ldr	x24, [x24, _udd_ctrl_prev_payload_nb_trans@GOTPAGEOFF]
	ldr	x10, [x24]
	add	x10, x10, x8
	cmp	x9, x10
	b.le	LBB0_7
; %bb.2:
	ldr	x9, [x22]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.3:
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_12
; %bb.4:
	blr	x8
	cbz	w0, LBB0_10
; %bb.5:
	ldr	x8, [x20]
	ldr	x9, [x24]
	add	x8, x9, x8
	str	x8, [x24]
	str	xzr, [x20]
	ldr	x19, [x23]
LBB0_6:
	ldr	w2, [x21]
Lloh10:
	adrp	x0, _usb_device@GOTPAGE
Lloh11:
	ldr	x0, [x0, _usb_device@GOTPAGEOFF]
	mov	w1, #0
	mov	x3, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_usb_device_endpoint_read_buffer_job
LBB0_7:
	str	x8, [x22]
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_9
; %bb.8:
	blr	x8
	cbz	w0, LBB0_10
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_udd_ctrl_send_zlp_in
LBB0_10:
Lloh12:
	adrp	x8, _UDD_EPCTRL_STALL_REQ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _UDD_EPCTRL_STALL_REQ@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _udd_ep_control_state@GOTPAGE
Lloh16:
	ldr	x9, [x9, _udd_ep_control_state@GOTPAGEOFF]
Lloh17:
	str	w8, [x9]
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_udd_ep_set_halt
LBB0_12:
Lloh18:
	adrp	x8, _UDD_EPCTRL_STALL_REQ@GOTPAGE
Lloh19:
	ldr	x8, [x8, _UDD_EPCTRL_STALL_REQ@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _udd_ep_control_state@GOTPAGE
Lloh22:
	ldr	x9, [x9, _udd_ep_control_state@GOTPAGEOFF]
Lloh23:
	str	w8, [x9]
	mov	w0, #0
	b	LBB0_11
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_udd_g_ctrlreq,32,3             ; @udd_g_ctrlreq
	.comm	_udd_ctrl_payload_nb_trans,8,3  ; @udd_ctrl_payload_nb_trans
	.comm	_udd_ctrl_buffer,4,2            ; @udd_ctrl_buffer
	.comm	_USB_DEVICE_EP_CTRL_SIZE,8,3    ; @USB_DEVICE_EP_CTRL_SIZE
	.comm	_udd_ctrl_prev_payload_nb_trans,8,3 ; @udd_ctrl_prev_payload_nb_trans
	.comm	_UDD_EPCTRL_STALL_REQ,4,2       ; @UDD_EPCTRL_STALL_REQ
	.comm	_udd_ep_control_state,4,2       ; @udd_ep_control_state
	.comm	_usb_device,4,2                 ; @usb_device
	.no_dead_strip	_udd_ctrl_out_received
.subsections_via_symbols
