	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usb_dmac_alloc_chan_resources
_usb_dmac_alloc_chan_resources:         ## @usb_dmac_alloc_chan_resources
	.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, -48(%rbp)                 ## 8-byte Spill
	callq	_to_usb_dmac_chan
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	_USB_DMAC_INITIAL_NR_DESC@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jge	LBB0_4
## %bb.1:
	movq	_USB_DMAC_INITIAL_NR_SG@GOTPCREL(%rip), %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movl	(%r14), %edx
	movq	%r15, %rdi
	callq	_usb_dmac_desc_alloc
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rax
	incq	%rax
	movq	%rax, (%r15)
	cmpq	(%r12), %rax
	jl	LBB0_2
LBB0_4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pm_runtime_get_sync            ## TAILCALL
LBB0_5:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_usb_dmac_desc_free
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_DMAC_INITIAL_NR_DESC,8,3   ## @USB_DMAC_INITIAL_NR_DESC
	.comm	_USB_DMAC_INITIAL_NR_SG,4,2     ## @USB_DMAC_INITIAL_NR_SG
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_usb_dmac_alloc_chan_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usb_dmac_alloc_chan_resources
_usb_dmac_alloc_chan_resources:         ; @usb_dmac_alloc_chan_resources
	.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	x19, x0
	bl	_to_usb_dmac_chan
	ldr	x8, [x0]
Lloh0:
	adrp	x22, _USB_DMAC_INITIAL_NR_DESC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _USB_DMAC_INITIAL_NR_DESC@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ge	LBB0_4
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x23, _USB_DMAC_INITIAL_NR_SG@GOTPAGE
Lloh3:
	ldr	x23, [x23, _USB_DMAC_INITIAL_NR_SG@GOTPAGEOFF]
Lloh4:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	ldr	w2, [x24]
	mov	x0, x20
	bl	_usb_dmac_desc_alloc
	tbnz	w0, #31, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
	ldr	x9, [x22]
	cmp	x8, x9
	b.lt	LBB0_2
LBB0_4:
	ldr	x8, [x19]
	ldr	w0, [x8]
	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	_pm_runtime_get_sync
LBB0_5:
	mov	x21, x0
	mov	x0, x20
	bl	_usb_dmac_desc_free
	mov	x0, x21
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_DMAC_INITIAL_NR_DESC,8,3   ; @USB_DMAC_INITIAL_NR_DESC
	.comm	_USB_DMAC_INITIAL_NR_SG,4,2     ; @USB_DMAC_INITIAL_NR_SG
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_usb_dmac_alloc_chan_resources
.subsections_via_symbols
