	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qede_alloc_mem_txq
_qede_alloc_mem_txq:                    ## @qede_alloc_mem_txq
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rdi), %edi
	movl	%edi, (%rsi)
	movq	24(%rsi), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_6
LBB0_2:
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_6
LBB0_4:
	movq	8(%r14), %rax
	movq	(%rax), %r10
	movl	4(%r14), %edi
	movq	_QED_CHAIN_USE_TO_CONSUME_PRODUCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_QED_CHAIN_MODE_PBL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_QED_CHAIN_CNT_TYPE_U16@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%rbx), %r8d
	leaq	4(%rbx), %rax
	movl	$4, %r9d
	pushq	$0
	pushq	%rax
	callq	*(%r10)
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_qede_free_mem_txq
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_5:
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_QED_CHAIN_USE_TO_CONSUME_PRODUCE,4,2 ## @QED_CHAIN_USE_TO_CONSUME_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	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_qede_alloc_mem_txq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qede_alloc_mem_txq
_qede_alloc_mem_txq:                    ; @qede_alloc_mem_txq
	.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, x1
	mov	x20, x0
	ldr	w0, [x0]
	str	w0, [x1]
	ldr	x21, [x1, #24]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x21, LBB0_2
; %bb.1:
	str	x0, [x19, #16]
	cbnz	x0, LBB0_3
	b	LBB0_4
LBB0_2:
	str	x0, [x19, #8]
	cbz	x0, LBB0_4
LBB0_3:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w0, [x20, #4]
Lloh3:
	adrp	x9, _QED_CHAIN_USE_TO_CONSUME_PRODUCE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _QED_CHAIN_USE_TO_CONSUME_PRODUCE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
Lloh6:
	adrp	x9, _QED_CHAIN_MODE_PBL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _QED_CHAIN_MODE_PBL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x9]
Lloh9:
	adrp	x9, _QED_CHAIN_CNT_TYPE_U16@GOTPAGE
Lloh10:
	ldr	x9, [x9, _QED_CHAIN_CNT_TYPE_U16@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x9]
	mov	x6, x19
	ldr	w4, [x6], #4
	mov	w5, #4
	mov	x7, #0
	blr	x8
	cbz	w0, LBB0_5
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_qede_free_mem_txq
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_QED_CHAIN_USE_TO_CONSUME_PRODUCE,4,2 ; @QED_CHAIN_USE_TO_CONSUME_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	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_qede_alloc_mem_txq
.subsections_via_symbols
