	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vnic_dev_init_prov2            ## -- Begin function vnic_dev_init_prov2
	.p2align	4, 0x90
_vnic_dev_init_prov2:                   ## @vnic_dev_init_prov2
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	%edx, -48(%rbp)
	movl	(%rdi), %edi
	leaq	-44(%rbp), %rdx
	movl	%r13d, %esi
	callq	_pci_alloc_consistent
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	movl	-44(%rbp), %eax
	movl	%eax, -52(%rbp)
	movq	_CMD_INIT_PROV_INFO2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movl	$1000, %r8d                     ## imm = 0x3E8
	callq	_vnic_dev_cmd
	movl	%eax, %ebx
	movl	(%r14), %edi
	movl	-44(%rbp), %ecx
	movl	%r13d, %esi
	movq	%r15, %rdx
	callq	_pci_free_consistent
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CMD_INIT_PROV_INFO2,4,2        ## @CMD_INIT_PROV_INFO2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vnic_dev_init_prov2            ; -- Begin function vnic_dev_init_prov2
	.p2align	2
_vnic_dev_init_prov2:                   ; @vnic_dev_init_prov2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x22, x1
	mov	x20, x0
	str	w2, [sp, #8]
	ldr	w0, [x0]
	add	x2, sp, #4
	mov	x1, x19
	bl	_pci_alloc_consistent
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	mov	x1, x22
	mov	x2, x19
	bl	_memcpy
	ldr	w8, [sp, #4]
	str	w8, [sp, #12]
Lloh0:
	adrp	x8, _CMD_INIT_PROV_INFO2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_INIT_PROV_INFO2@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x20
	mov	w4, #1000
	bl	_vnic_dev_cmd
	mov	x22, x0
	ldr	w0, [x20]
	ldr	w3, [sp, #4]
	mov	x1, x19
	mov	x2, x21
	bl	_pci_free_consistent
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_3:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CMD_INIT_PROV_INFO2,4,2        ; @CMD_INIT_PROV_INFO2
.subsections_via_symbols
