	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pl330_get_desc
_pl330_get_desc:                        ## @pl330_get_desc
	.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, %r14
	movq	8(%rdi), %r13
	movq	16(%rdi), %rsi
	leaq	8(%rsi), %rdi
	addq	$4, %rsi
	callq	_pluck_desc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	movq	_lock@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_DEFINE_SPINLOCK
	movq	_pool@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_LIST_HEAD
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %r15d
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$1, %ecx
	callq	_add_desc
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	_pool@GOTPCREL(%rip), %rdi
	movq	_lock@GOTPCREL(%rip), %rsi
	callq	_pluck_desc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_pool@GOTPCREL(%rip), %rdi
	callq	_list_empty
	xorl	%r15d, %r15d
	testl	%eax, %eax
	sete	%r15b
LBB0_5:
	movl	%r15d, %edi
	callq	_WARN_ON
LBB0_6:
	movq	%r14, 24(%rbx)
	movq	$0, (%rbx)
	movq	%rbx, %rdi
	callq	_async_tx_ack
	testq	%r13, %r13
	je	LBB0_7
## %bb.8:
	movl	(%r14), %eax
	jmp	LBB0_9
LBB0_7:
	xorl	%eax, %eax
LBB0_9:
	movl	%eax, 16(%rbx)
	movq	16(%r14), %rax
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_dma_async_tx_descriptor_init
LBB0_10:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_lock,4,2                       ## @lock
	.comm	_pool,4,2                       ## @pool
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.no_dead_strip	_pl330_get_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pl330_get_desc
_pl330_get_desc:                        ; @pl330_get_desc
	.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
	mov	x19, x0
	ldp	x22, x8, [x0, #8]
	add	x0, x8, #8
	add	x1, x8, #4
	bl	_pluck_desc
	mov	x20, x0
	cbnz	x0, LBB0_7
; %bb.1:
Lloh0:
	adrp	x20, _lock@GOTPAGE
Lloh1:
	ldr	x20, [x20, _lock@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_DEFINE_SPINLOCK
Lloh2:
	adrp	x21, _pool@GOTPAGE
Lloh3:
	ldr	x21, [x21, _pool@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_LIST_HEAD
Lloh4:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	w3, #1
	bl	_add_desc
	cbz	w0, LBB0_4
; %bb.2:
Lloh7:
	adrp	x0, _pool@GOTPAGE
Lloh8:
	ldr	x0, [x0, _pool@GOTPAGEOFF]
Lloh9:
	adrp	x1, _lock@GOTPAGE
Lloh10:
	ldr	x1, [x1, _lock@GOTPAGEOFF]
	bl	_pluck_desc
	mov	x20, x0
	cbz	x0, LBB0_5
; %bb.3:
Lloh11:
	adrp	x0, _pool@GOTPAGE
Lloh12:
	ldr	x0, [x0, _pool@GOTPAGEOFF]
	bl	_list_empty
	cmp	w0, #0
	cset	w0, eq
	b	LBB0_6
LBB0_4:
	mov	x20, #0
	b	LBB0_11
LBB0_5:
	mov	w0, #1
LBB0_6:
	bl	_WARN_ON
LBB0_7:
	str	x19, [x20, #24]
	str	xzr, [x20]
	mov	x0, x20
	bl	_async_tx_ack
	cbz	x22, LBB0_9
; %bb.8:
	ldr	w8, [x19]
	b	LBB0_10
LBB0_9:
	mov	w8, #0
LBB0_10:
	str	w8, [x20, #16]
	ldr	x8, [x19, #16]
	str	x8, [x20, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_dma_async_tx_descriptor_init
LBB0_11:
	mov	x0, 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
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_lock,4,2                       ; @lock
	.comm	_pool,4,2                       ; @pool
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.no_dead_strip	_pl330_get_desc
.subsections_via_symbols
