	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_dmae_info_alloc            ## -- Begin function qed_dmae_info_alloc
	.p2align	4, 0x90
_qed_dmae_info_alloc:                   ## @qed_dmae_info_alloc
	.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
	leaq	48(%rdi), %rdx
	movq	56(%rdi), %rax
	movq	(%rax), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movl	$4, %esi
	callq	_dma_alloc_coherent
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	leaq	16(%rbx), %rdx
	movq	56(%rbx), %rax
	movq	(%rax), %rdi
	movl	(%r14), %ecx
	movl	$4, %esi
	callq	_dma_alloc_coherent
	movq	%rax, 40(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	12(%rbx), %rdx
	movq	56(%rbx), %rax
	movq	(%rax), %rdi
	movq	_DMAE_MAX_RW_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$2, %esi
	movl	(%r14), %ecx
	callq	_dma_alloc_coherent
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %eax
	movl	%eax, 8(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	callq	_qed_dmae_info_free
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_DMAE_MAX_RW_SIZE,4,2           ## @DMAE_MAX_RW_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_dmae_info_alloc            ; -- Begin function qed_dmae_info_alloc
	.p2align	2
_qed_dmae_info_alloc:                   ; @qed_dmae_info_alloc
	.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	x19, x0
	add	x2, x0, #48
	ldr	x8, [x0, #56]
	ldr	x0, [x8]
Lloh0:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x20]
	mov	w1, #4
	bl	_dma_alloc_coherent
	str	x0, [x19, #24]
	cbz	x0, LBB0_4
; %bb.1:
	add	x2, x19, #16
	ldr	x8, [x19, #56]
	ldr	x0, [x8]
	ldr	w3, [x20]
	mov	w1, #4
	bl	_dma_alloc_coherent
	str	x0, [x19, #40]
	cbz	x0, LBB0_4
; %bb.2:
	add	x2, x19, #12
	ldr	x8, [x19, #56]
	ldr	x0, [x8]
Lloh2:
	adrp	x8, _DMAE_MAX_RW_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DMAE_MAX_RW_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	lsl	w1, w8, #2
	ldr	w3, [x20]
	bl	_dma_alloc_coherent
	str	x0, [x19, #32]
	cbz	x0, LBB0_4
; %bb.3:
	mov	w0, #0
	ldr	w8, [x19]
	str	w8, [x19, #8]
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_qed_dmae_info_free
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_DMAE_MAX_RW_SIZE,4,2           ; @DMAE_MAX_RW_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
