	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function udd_ctrl_in_sent
_udd_ctrl_in_sent:                      ## @udd_ctrl_in_sent
	.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	_udd_g_ctrlreq@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	_udd_ctrl_payload_nb_trans@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	subq	%rdx, %rax
	je	LBB0_1
LBB0_8:
	movq	_USB_DEVICE_EP_CTRL_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	cmpq	%rbx, %rax
	setl	_udd_ctrl_in_sent.b_shortpacket(%rip)
	cmovlq	%rax, %rbx
	addq	8(%r15), %rdx
	movq	_usb_device@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	callq	_usb_device_endpoint_write_buffer_job
	addq	%rbx, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_udd_ctrl_prev_payload_nb_trans@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	addq	%rdx, %rcx
	movq	%rcx, (%rax)
	cmpq	%rcx, 24(%r15)
	je	LBB0_9
## %bb.2:
	testb	$1, _udd_ctrl_in_sent.b_shortpacket(%rip)
	jne	LBB0_9
## %bb.3:
	movq	16(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.5:
	xorl	%eax, %eax
	callq	*%rcx
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	$0, (%r14)
	movq	(%r15), %rax
	xorl	%edx, %edx
	jmp	LBB0_8
LBB0_9:
	movq	_UDD_EPCTRL_HANDSHAKE_WAIT_OUT_ZLP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_udd_ep_control_state@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_udd_ctrl_buffer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_usb_device@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_usb_device_endpoint_setup_buffer_job ## TAILCALL
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_6:
	movq	(%r14), %rdx
	xorl	%eax, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_udd_ctrl_in_sent.b_shortpacket,1,2 ## @udd_ctrl_in_sent.b_shortpacket
	.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_prev_payload_nb_trans,8,3 ## @udd_ctrl_prev_payload_nb_trans
	.comm	_UDD_EPCTRL_HANDSHAKE_WAIT_OUT_ZLP,4,2 ## @UDD_EPCTRL_HANDSHAKE_WAIT_OUT_ZLP
	.comm	_udd_ep_control_state,4,2       ## @udd_ep_control_state
	.comm	_usb_device,4,2                 ## @usb_device
	.comm	_udd_ctrl_buffer,4,2            ## @udd_ctrl_buffer
	.comm	_USB_DEVICE_EP_CTRL_SIZE,8,3    ## @USB_DEVICE_EP_CTRL_SIZE
	.no_dead_strip	_udd_ctrl_in_sent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function udd_ctrl_in_sent
_udd_ctrl_in_sent:                      ; @udd_ctrl_in_sent
	.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
Lloh0:
	adrp	x21, _udd_g_ctrlreq@GOTPAGE
Lloh1:
	ldr	x21, [x21, _udd_g_ctrlreq@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh2:
	adrp	x20, _udd_ctrl_payload_nb_trans@GOTPAGE
Lloh3:
	ldr	x20, [x20, _udd_ctrl_payload_nb_trans@GOTPAGEOFF]
	ldr	x8, [x20]
	adrp	x22, _udd_ctrl_in_sent.b_shortpacket@PAGE
	subs	x9, x9, x8
	b.eq	LBB0_2
LBB0_1:
Lloh4:
	adrp	x10, _USB_DEVICE_EP_CTRL_SIZE@GOTPAGE
Lloh5:
	ldr	x10, [x10, _USB_DEVICE_EP_CTRL_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x10]
	cmp	x9, x10
	csel	x19, x9, x10, lt
	cset	w9, lt
	strb	w9, [x22, _udd_ctrl_in_sent.b_shortpacket@PAGEOFF]
	ldr	x9, [x21, #8]
	add	x2, x8, x9
Lloh7:
	adrp	x0, _usb_device@GOTPAGE
Lloh8:
	ldr	x0, [x0, _usb_device@GOTPAGEOFF]
	mov	w1, #0
	mov	x3, x19
	bl	_usb_device_endpoint_write_buffer_job
	ldr	x8, [x20]
	add	x8, x8, x19
	str	x8, [x20]
	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
LBB0_2:
Lloh9:
	adrp	x9, _udd_ctrl_prev_payload_nb_trans@GOTPAGE
Lloh10:
	ldr	x9, [x9, _udd_ctrl_prev_payload_nb_trans@GOTPAGEOFF]
	ldr	x10, [x9]
	ldr	x11, [x21, #24]
	add	x10, x10, x8
	cmp	x11, x10
	str	x10, [x9]
	ldrb	w9, [x22, _udd_ctrl_in_sent.b_shortpacket@PAGEOFF]
	ccmp	w9, #0, #0, ne
	b.eq	LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _UDD_EPCTRL_HANDSHAKE_WAIT_OUT_ZLP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _UDD_EPCTRL_HANDSHAKE_WAIT_OUT_ZLP@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _udd_ep_control_state@GOTPAGE
Lloh15:
	ldr	x9, [x9, _udd_ep_control_state@GOTPAGEOFF]
Lloh16:
	adrp	x10, _udd_ctrl_buffer@GOTPAGE
Lloh17:
	ldr	x10, [x10, _udd_ctrl_buffer@GOTPAGEOFF]
Lloh18:
	str	w8, [x9]
Lloh19:
	ldr	w1, [x10]
Lloh20:
	adrp	x0, _usb_device@GOTPAGE
Lloh21:
	ldr	x0, [x0, _usb_device@GOTPAGEOFF]
	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_setup_buffer_job
LBB0_4:
	ldr	x9, [x21, #16]
	cbz	x9, LBB0_1
; %bb.5:
	blr	x9
	cbz	w0, LBB0_7
; %bb.6:
	mov	x8, #0
	str	xzr, [x20]
	ldr	x9, [x21]
	b	LBB0_1
LBB0_7:
	mov	x9, #0
	ldr	x8, [x20]
	b	LBB0_1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_udd_ctrl_in_sent.b_shortpacket,1,2 ; @udd_ctrl_in_sent.b_shortpacket
	.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_prev_payload_nb_trans,8,3 ; @udd_ctrl_prev_payload_nb_trans
	.comm	_UDD_EPCTRL_HANDSHAKE_WAIT_OUT_ZLP,4,2 ; @UDD_EPCTRL_HANDSHAKE_WAIT_OUT_ZLP
	.comm	_udd_ep_control_state,4,2       ; @udd_ep_control_state
	.comm	_usb_device,4,2                 ; @usb_device
	.comm	_udd_ctrl_buffer,4,2            ; @udd_ctrl_buffer
	.comm	_USB_DEVICE_EP_CTRL_SIZE,8,3    ; @USB_DEVICE_EP_CTRL_SIZE
	.no_dead_strip	_udd_ctrl_in_sent
.subsections_via_symbols
