	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function udd_ep_trans_in_next
_udd_ep_trans_in_next:                  ## @udd_ep_trans_in_next
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %r14d
	movl	%r14d, %edi
	callq	_udd_ep_get_job
	movq	%rax, %rdi
	movq	_USB_EP_ADDR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	%r14d, %esi
	movl	(%rdi), %r9d
	movl	8(%rdi), %ecx
	movslq	4(%rbx), %rax
	movslq	4(%rdi), %r8
	addq	%rax, %r8
	movl	%r8d, 4(%rdi)
	subl	%r8d, %ecx
	jne	LBB0_1
## %bb.8:
	cmpl	$0, 12(%rdi)
	je	LBB0_10
## %bb.9:
	movl	$0, 12(%rdi)
	movslq	%r8d, %rdx
	shlq	$2, %rdx
	addq	32(%rdi), %rdx
	movq	_usb_device@GOTPCREL(%rip), %rdi
	xorl	%ecx, %ecx
	jmp	LBB0_7
LBB0_1:
	movq	_UDD_ENDPOINT_MAX_TRANS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	cmpl	%ecx, %ebx
	jge	LBB0_3
## %bb.2:
	movl	%ebx, %eax
	cltd
	idivl	%r9d
	subl	%edx, %ebx
	movl	%ebx, %ecx
LBB0_3:
	cmpl	$0, 12(%rdi)
	je	LBB0_4
## %bb.5:
	movl	%ecx, %eax
	cltd
	idivl	%r9d
	xorl	%eax, %eax
	testl	%edx, %edx
	sete	%al
	jmp	LBB0_6
LBB0_10:
	movl	$0, 16(%rdi)
	movq	24(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	_UDD_EP_TRANSFER_OK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movslq	%r8d, %rsi
	movl	%r14d, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_4:
	xorl	%eax, %eax
LBB0_6:
	movl	%eax, 12(%rdi)
	shlq	$2, %r8
	addq	32(%rdi), %r8
	movq	_usb_device@GOTPCREL(%rip), %rdi
	movq	%r8, %rdx
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_usb_device_endpoint_write_buffer_job ## TAILCALL
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_EP_ADDR_MASK,4,2           ## @USB_EP_ADDR_MASK
	.comm	_UDD_ENDPOINT_MAX_TRANS,4,2     ## @UDD_ENDPOINT_MAX_TRANS
	.comm	_usb_device,4,2                 ## @usb_device
	.comm	_UDD_EP_TRANSFER_OK,4,2         ## @UDD_EP_TRANSFER_OK
	.no_dead_strip	_udd_ep_trans_in_next
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function udd_ep_trans_in_next
_udd_ep_trans_in_next:                  ; @udd_ep_trans_in_next
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	ldr	w19, [x0]
	mov	x0, x19
	bl	_udd_ep_get_job
Lloh0:
	adrp	x8, _USB_EP_ADDR_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_EP_ADDR_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w1, w8, w19
	ldrsw	x8, [x20, #4]
	ldp	w9, w10, [x0]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	ldr	w11, [x0, #8]
	add	x8, x10, x8
	subs	w3, w11, w8
	str	w8, [x0, #4]
	b.ne	LBB0_3
; %bb.1:
	ldr	w9, [x0, #12]
	cbz	w9, LBB0_7
; %bb.2:
	str	wzr, [x0, #12]
	ldr	x9, [x0, #32]
	add	x2, x9, w8, sxtw #2
Lloh3:
	adrp	x0, _usb_device@GOTPAGE
Lloh4:
	ldr	x0, [x0, _usb_device@GOTPAGEOFF]
	mov	w3, #0
	b	LBB0_11
LBB0_3:
Lloh5:
	adrp	x10, _UDD_ENDPOINT_MAX_TRANS@GOTPAGE
Lloh6:
	ldr	x10, [x10, _UDD_ENDPOINT_MAX_TRANS@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	cmp	w10, w3
	b.ge	LBB0_5
; %bb.4:
	sdiv	w10, w10, w9
	mul	w3, w10, w9
LBB0_5:
	ldr	w10, [x0, #12]
	cbz	w10, LBB0_9
; %bb.6:
	sdiv	w10, w3, w9
	msub	w9, w10, w9, w3
	cmp	w9, #0
	cset	w9, eq
	b	LBB0_10
LBB0_7:
	str	wzr, [x0, #16]
	ldr	x3, [x0, #24]
	cbz	x3, LBB0_12
; %bb.8:
Lloh8:
	adrp	x9, _UDD_EP_TRANSFER_OK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _UDD_EP_TRANSFER_OK@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x9]
	mov	x1, x8
	mov	x2, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x3
LBB0_9:
	mov	w9, #0
LBB0_10:
	str	w9, [x0, #12]
	ldr	x9, [x0, #32]
	add	x2, x9, w8, sxtw #2
Lloh11:
	adrp	x0, _usb_device@GOTPAGE
Lloh12:
	ldr	x0, [x0, _usb_device@GOTPAGEOFF]
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_usb_device_endpoint_write_buffer_job
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_EP_ADDR_MASK,4,2           ; @USB_EP_ADDR_MASK
	.comm	_UDD_ENDPOINT_MAX_TRANS,4,2     ; @UDD_ENDPOINT_MAX_TRANS
	.comm	_usb_device,4,2                 ; @usb_device
	.comm	_UDD_EP_TRANSFER_OK,4,2         ; @UDD_EP_TRANSFER_OK
	.no_dead_strip	_udd_ep_trans_in_next
.subsections_via_symbols
