	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sync_ep_set_params
_sync_ep_set_params:                    ## @sync_ep_set_params
	.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, %r13
	movq	40(%rdi), %rax
	movl	(%rax), %edi
	movq	_SYNC_URBS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	shll	$2, %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	16(%r13), %rcx
	callq	_usb_buffer_alloc
	movq	%rax, 24(%r13)
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r13), %r14
	movl	%r15d, (%r14,%rbx)
	movq	%r13, 16(%r14,%rbx)
	movl	$1, 4(%r14,%rbx)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edi
	callq	_usb_alloc_urb
	movq	%rax, 8(%r14,%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	%rbx, %r14
	movl	%r12d, %ecx
	andl	$-4, %ecx
	movdqu	16(%r13), %xmm0
	movq	%rcx, %xmm1
	pshufd	$68, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,0,1]
	paddq	%xmm0, %xmm1
	movdqu	%xmm1, 40(%rax)
	movl	$4, (%rax)
	movl	8(%r13), %ecx
	movl	%ecx, 32(%rax)
	movq	_URB_NO_TRANSFER_DMA_MAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_URB_ISO_ASAP@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, 4(%rax)
	movl	$1, 8(%rax)
	movzbl	(%r13), %ecx
	movl	$1, %edx
	shll	%cl, %edx
	movl	%edx, 12(%rax)
	movq	%r14, 24(%rax)
	movq	_snd_complete_urb@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	incq	%r15
	movq	_SYNC_URBS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %r12
	addq	$24, %rbx
	cmpq	%rax, %r15
	jl	LBB0_3
LBB0_5:
	movl	%eax, 4(%r13)
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	jmp	LBB0_7
LBB0_6:
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_release_urbs
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_7:
	subl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SYNC_URBS,4,2                  ## @SYNC_URBS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_URB_ISO_ASAP,4,2               ## @URB_ISO_ASAP
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ## @URB_NO_TRANSFER_DMA_MAP
	.comm	_snd_complete_urb,4,2           ## @snd_complete_urb
	.no_dead_strip	_sync_ep_set_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sync_ep_set_params
_sync_ep_set_params:                    ; @sync_ep_set_params
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x8, [x0, #40]
	ldr	w0, [x8]
Lloh0:
	adrp	x20, _SYNC_URBS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SYNC_URBS@GOTPAGEOFF]
	ldr	w8, [x20]
	lsl	w1, w8, #2
Lloh2:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x21]
	add	x3, x19, #16
	bl	_usb_buffer_alloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_7
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x22, #0
	mov	x23, #0
	mov	x24, #0
	mov	w25, #1
Lloh4:
	adrp	x28, _URB_NO_TRANSFER_DMA_MAP@GOTPAGE
Lloh5:
	ldr	x28, [x28, _URB_NO_TRANSFER_DMA_MAP@GOTPAGEOFF]
Lloh6:
	adrp	x26, _snd_complete_urb@GOTPAGE
Lloh7:
	ldr	x26, [x26, _snd_complete_urb@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	add	x27, x8, x22
	str	x19, [x27, #16]
	stp	w24, w25, [x27]
	ldr	w1, [x21]
	mov	w0, #1
	bl	_usb_alloc_urb
	str	x0, [x27, #8]
	cbz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	and	x8, x23, #0xfffffffc
	ldr	q0, [x19, #16]
	dup.2d	v1, x8
	add.2d	v0, v0, v1
	stur	q0, [x0, #40]
	mov	w8, #4
	str	w8, [x0]
	ldr	w8, [x19, #8]
	str	w8, [x0, #32]
Lloh8:
	adrp	x8, _URB_ISO_ASAP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _URB_ISO_ASAP@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x28]
	orr	w8, w9, w8
	stp	w8, w25, [x0, #4]
	ldr	w8, [x19]
	lsl	w8, w25, w8
	str	x27, [x0, #24]
	ldr	w9, [x26]
	stp	w8, w9, [x0, #12]
	add	x24, x24, #1
	ldrsw	x8, [x20]
	add	x23, x23, #4
	add	x22, x22, #24
	cmp	x24, x8
	b.lt	LBB0_3
LBB0_5:
	mov	w0, #0
	str	w8, [x19, #4]
	b	LBB0_8
LBB0_6:
	mov	x0, x19
	mov	w1, #0
	bl	_release_urbs
LBB0_7:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SYNC_URBS,4,2                  ; @SYNC_URBS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_URB_ISO_ASAP,4,2               ; @URB_ISO_ASAP
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ; @URB_NO_TRANSFER_DMA_MAP
	.comm	_snd_complete_urb,4,2           ; @snd_complete_urb
	.no_dead_strip	_sync_ep_set_params
.subsections_via_symbols
