	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function udd_ep_trans_out_next
_udd_ep_trans_out_next:                 ## @udd_ep_trans_out_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movl	(%rdi), %ebx
	movl	%ebx, %edi
	callq	_udd_ep_get_job
	movq	%rax, %r12
	movq	_USB_EP_ADDR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	andl	%ebx, %r14d
	movslq	%r14d, %rsi
	movq	(%r12), %rcx
	movq	8(%r13), %r15
	cmpl	$0, 8(%r12)
	je	LBB0_5
## %bb.1:
	movq	16(%r12), %rdi
	movq	24(%r12), %rax
	shlq	$2, %rdi
	movq	_udd_ep_out_cache_buffer@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	-8(%rdx,%rsi,8), %rsi
	movq	%rax, %rdx
	orq	%rcx, %rdx
	addq	48(%r12), %rdi
	shrq	$32, %rdx
	je	LBB0_2
## %bb.3:
	cqto
	movq	%rcx, %rbx
	idivq	%rcx
	jmp	LBB0_4
LBB0_2:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	movq	%rcx, %rbx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_4:
	callq	_memcpy
	movq	%rbx, %rcx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
LBB0_5:
	movq	16(%r12), %rax
	addq	%r15, %rax
	movq	24(%r12), %rbx
	cmpq	%rbx, %rax
	movq	%rbx, %r8
	cmovbq	%rax, %r8
	movq	%r8, 16(%r12)
	cmpq	16(%r13), %r15
	jne	LBB0_14
## %bb.6:
	cmpq	%rax, %rbx
	jbe	LBB0_14
## %bb.7:
	subq	%r8, %rbx
	movq	_UDD_ENDPOINT_MAX_TRANS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rbx, %rax
	cmovlq	%rax, %rbx
	movq	%rbx, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_8
## %bb.9:
	movq	%rbx, %rax
	cqto
	idivq	%rcx
	jmp	LBB0_10
LBB0_14:
	movl	$0, 32(%r12)
	movq	40(%r12), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	movq	_UDD_EP_TRANSFER_OK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%r8, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_10:
	subq	%rdx, %rbx
	cmpq	%rcx, %rbx
	jge	LBB0_12
## %bb.11:
	movl	$1, 8(%r12)
	movq	_udd_ep_out_cache_buffer@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-8(%rax,%rsi,8), %rdx
	movq	_usb_device@GOTPCREL(%rip), %rdi
	movl	%r14d, %esi
	jmp	LBB0_13
LBB0_12:
	shlq	$2, %r8
	addq	48(%r12), %r8
	movq	_usb_device@GOTPCREL(%rip), %rdi
	movl	%r14d, %esi
	movq	%r8, %rdx
	movq	%rbx, %rcx
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_usb_device_endpoint_read_buffer_job ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_EP_ADDR_MASK,4,2           ## @USB_EP_ADDR_MASK
	.comm	_udd_ep_out_cache_buffer,8,3    ## @udd_ep_out_cache_buffer
	.comm	_UDD_ENDPOINT_MAX_TRANS,8,3     ## @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_out_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_out_next
_udd_ep_trans_out_next:                 ; @udd_ep_trans_out_next
	.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
	mov	x23, x0
	ldr	w22, [x0]
	mov	x0, x22
	bl	_udd_ep_get_job
	mov	x20, x0
Lloh0:
	adrp	x8, _USB_EP_ADDR_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_EP_ADDR_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w19, w8, w22
	ldr	x21, [x0]
	ldr	x24, [x23, #8]
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_2
; %bb.1:
	sxtw	x8, w19
	ldr	x9, [x20, #48]
Lloh3:
	adrp	x10, _udd_ep_out_cache_buffer@GOTPAGE
Lloh4:
	ldr	x10, [x10, _udd_ep_out_cache_buffer@GOTPAGEOFF]
	ldp	x11, x12, [x20, #16]
	add	x0, x9, x11, lsl #2
Lloh5:
	ldr	x9, [x10]
	add	x8, x9, x8, lsl #3
	ldur	x1, [x8, #-8]
	sdiv	x8, x12, x21
	msub	x2, x8, x21, x12
	bl	_memcpy
LBB0_2:
	ldp	x9, x8, [x20, #16]
	add	x9, x9, x24
	cmp	x9, x8
	csel	x1, x9, x8, lo
	str	x1, [x20, #16]
	ldr	x10, [x23, #16]
	cmp	x24, x10
	ccmp	x8, x9, #0, eq
	b.hi	LBB0_5
; %bb.3:
	str	wzr, [x20, #32]
	ldr	x3, [x20, #40]
	cbz	x3, LBB0_9
; %bb.4:
Lloh6:
	adrp	x8, _UDD_EP_TRANSFER_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UDD_EP_TRANSFER_OK@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x2, x22
	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
	br	x3
LBB0_5:
Lloh9:
	adrp	x9, _UDD_ENDPOINT_MAX_TRANS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _UDD_ENDPOINT_MAX_TRANS@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	sub	x8, x8, x1
	cmp	x9, x8
	csel	x8, x9, x8, lt
	sdiv	x8, x8, x21
	mul	x3, x8, x21
	cmp	x3, x21
	b.ge	LBB0_7
; %bb.6:
	mov	w8, #1
	str	w8, [x20, #8]
Lloh12:
	adrp	x8, _udd_ep_out_cache_buffer@GOTPAGE
Lloh13:
	ldr	x8, [x8, _udd_ep_out_cache_buffer@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	add	x8, x8, w19, sxtw #3
	ldur	x2, [x8, #-8]
Lloh15:
	adrp	x0, _usb_device@GOTPAGE
Lloh16:
	ldr	x0, [x0, _usb_device@GOTPAGEOFF]
	mov	x1, x19
	mov	x3, x21
	b	LBB0_8
LBB0_7:
	ldr	x8, [x20, #48]
	add	x2, x8, x1, lsl #2
Lloh17:
	adrp	x0, _usb_device@GOTPAGE
Lloh18:
	ldr	x0, [x0, _usb_device@GOTPAGEOFF]
	mov	x1, x19
LBB0_8:
	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_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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_EP_ADDR_MASK,4,2           ; @USB_EP_ADDR_MASK
	.comm	_udd_ep_out_cache_buffer,8,3    ; @udd_ep_out_cache_buffer
	.comm	_UDD_ENDPOINT_MAX_TRANS,8,3     ; @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_out_next
.subsections_via_symbols
