	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_chain_alloc_next_ptr
_qed_chain_alloc_next_ptr:              ## @qed_chain_alloc_next_ptr
	.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	%rsi, %r13
	movl	$0, -44(%rbp)
	cmpq	$0, (%rsi)
	jle	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_qed_chain_init_next_ptr_elem
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movq	%rbx, %r14
	cmpq	(%r13), %r12
	jge	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	movq	_QED_CHAIN_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %rdx
	callq	_dma_alloc_coherent
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	movl	-44(%rbp), %ecx
	movq	%r13, %rdi
	testq	%r12, %r12
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rsi
	movl	%ecx, %edx
	callq	_qed_chain_init_mem
	movq	%r13, %rdi
	callq	_qed_chain_reset
	jmp	LBB0_8
LBB0_1:
	xorl	%ebx, %ebx
LBB0_9:
	movq	8(%r13), %rdx
	movl	16(%r13), %ecx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_qed_chain_init_next_ptr_elem
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QED_CHAIN_PAGE_SIZE,4,2        ## @QED_CHAIN_PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_qed_chain_alloc_next_ptr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_chain_alloc_next_ptr
_qed_chain_alloc_next_ptr:              ; @qed_chain_alloc_next_ptr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x1
	str	wzr, [sp, #12]
	ldr	x8, [x1]
	cmp	x8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x20, x0
	mov	x23, #0
	mov	x22, #0
Lloh0:
	adrp	x24, _QED_CHAIN_PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _QED_CHAIN_PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x22
	mov	x2, x21
	bl	_qed_chain_init_next_ptr_elem
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	ldr	x8, [x19]
	mov	x22, x21
	cmp	x23, x8
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	ldr	w1, [x24]
	ldr	w3, [x25]
	add	x2, sp, #12
	bl	_dma_alloc_coherent
	cbz	x0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x0
	ldr	w3, [sp, #12]
	mov	x0, x19
	cbnz	x23, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x21
	mov	x2, x3
	bl	_qed_chain_init_mem
	mov	x0, x19
	bl	_qed_chain_reset
	b	LBB0_3
LBB0_7:
	mov	x21, #0
LBB0_8:
	ldr	x2, [x19, #8]
	ldr	w3, [x19, #16]
	mov	x0, x19
	mov	x1, x21
	bl	_qed_chain_init_next_ptr_elem
	mov	w0, #0
	b	LBB0_10
LBB0_9:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_QED_CHAIN_PAGE_SIZE,4,2        ; @QED_CHAIN_PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_qed_chain_alloc_next_ptr
.subsections_via_symbols
