	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iavf_allocate_virt_mem_d       ## -- Begin function iavf_allocate_virt_mem_d
	.p2align	4, 0x90
_iavf_allocate_virt_mem_d:              ## @iavf_allocate_virt_mem_d
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movl	%edx, 8(%rsi)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%edx, %edi
	callq	_kzalloc
	movq	%rax, %rcx
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_5
## %bb.3:
	movq	_IAVF_ERR_NO_MEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movq	_IAVF_ERR_PARAM@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IAVF_ERR_PARAM,4,2             ## @IAVF_ERR_PARAM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_IAVF_ERR_NO_MEMORY,4,2         ## @IAVF_ERR_NO_MEMORY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iavf_allocate_virt_mem_d       ; -- Begin function iavf_allocate_virt_mem_d
	.p2align	2
_iavf_allocate_virt_mem_d:              ; @iavf_allocate_virt_mem_d
	.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
	cbz	x1, LBB0_2
; %bb.1:
	mov	x19, x1
	str	w2, [x1, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x2
	bl	_kzalloc
	str	x0, [x19]
Lloh3:
	adrp	x8, _IAVF_ERR_NO_MEMORY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IAVF_ERR_NO_MEMORY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w0, w8, wzr, eq
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _IAVF_ERR_PARAM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IAVF_ERR_PARAM@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IAVF_ERR_PARAM,4,2             ; @IAVF_ERR_PARAM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_IAVF_ERR_NO_MEMORY,4,2         ; @IAVF_ERR_NO_MEMORY
.subsections_via_symbols
