	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_eq_alloc                   ## -- Begin function qed_eq_alloc
	.p2align	4, 0x90
_qed_eq_alloc:                          ## @qed_eq_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$12, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movl	8(%r14), %edi
	movq	_QED_CHAIN_USE_TO_PRODUCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_QED_CHAIN_MODE_PBL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_QED_CHAIN_CNT_TYPE_U16@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	8(%rbx), %rax
	movl	%r15d, %r8d
	movl	$4, %r9d
	pushq	$0
	pushq	%rax
	callq	_qed_chain_alloc
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_2:
	movq	_qed_eq_completion@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rcx
	addq	$4, %rcx
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movq	%rbx, %r8
	callq	_qed_int_register_cb
	movq	%rbx, (%r14)
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_QED_CHAIN_USE_TO_PRODUCE,4,2   ## @QED_CHAIN_USE_TO_PRODUCE
	.comm	_QED_CHAIN_MODE_PBL,4,2         ## @QED_CHAIN_MODE_PBL
	.comm	_QED_CHAIN_CNT_TYPE_U16,4,2     ## @QED_CHAIN_CNT_TYPE_U16
	.comm	_qed_eq_completion,4,2          ## @qed_eq_completion
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_eq_alloc                   ; -- Begin function qed_eq_alloc
	.p2align	2
_qed_eq_alloc:                          ; @qed_eq_alloc
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #12
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x8, _QED_CHAIN_USE_TO_PRODUCE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QED_CHAIN_USE_TO_PRODUCE@GOTPAGEOFF]
Lloh5:
	adrp	x9, _QED_CHAIN_MODE_PBL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _QED_CHAIN_MODE_PBL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	ldr	w2, [x9]
Lloh9:
	adrp	x8, _QED_CHAIN_CNT_TYPE_U16@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QED_CHAIN_CNT_TYPE_U16@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	add	x6, x20, #8
	mov	x4, x21
	mov	w5, #4
	mov	x7, #0
	bl	_qed_chain_alloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_kfree
LBB0_3:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
Lloh15:
	adrp	x8, _qed_eq_completion@GOTPAGE
Lloh16:
	ldr	x8, [x8, _qed_eq_completion@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x3, x20, #4
	mov	x0, x19
	mov	x2, x20
	mov	x4, x20
	bl	_qed_int_register_cb
	mov	w0, #0
	str	x20, [x19]
LBB0_5:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_QED_CHAIN_USE_TO_PRODUCE,4,2   ; @QED_CHAIN_USE_TO_PRODUCE
	.comm	_QED_CHAIN_MODE_PBL,4,2         ; @QED_CHAIN_MODE_PBL
	.comm	_QED_CHAIN_CNT_TYPE_U16,4,2     ; @QED_CHAIN_CNT_TYPE_U16
	.comm	_qed_eq_completion,4,2          ; @qed_eq_completion
.subsections_via_symbols
