	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vnic_dev_fw_info               ## -- Begin function vnic_dev_fw_info
	.p2align	4, 0x90
_vnic_dev_fw_info:                      ## @vnic_dev_fw_info
	.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, %r14
	movq	%rdi, %rbx
	xorl	%eax, %eax
	cmpq	$0, 8(%rdi)
	jne	LBB0_6
## %bb.1:
	movl	16(%rbx), %edi
	movl	$4, %esi
	movq	%rbx, %rdx
	callq	_pci_zalloc_consistent
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	(%rbx), %eax
	movl	%eax, -32(%rbp)
	movl	$4, -28(%rbp)
	movq	_CMD_MCPU_FW_INFO@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_vnic_dev_capable
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_CMD_MCPU_FW_INFO_OLD@GOTPCREL(%rip), %r15
LBB0_5:
	movl	(%r15), %esi
	leaq	-32(%rbp), %rdx
	leaq	-28(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$1000, %r8d                     ## imm = 0x3E8
	callq	_vnic_dev_cmd
LBB0_6:
	movq	8(%rbx), %rcx
	movq	%rcx, (%r14)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CMD_MCPU_FW_INFO,4,2           ## @CMD_MCPU_FW_INFO
	.comm	_CMD_MCPU_FW_INFO_OLD,4,2       ## @CMD_MCPU_FW_INFO_OLD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vnic_dev_fw_info               ; -- Begin function vnic_dev_fw_info
	.p2align	2
_vnic_dev_fw_info:                      ; @vnic_dev_fw_info
	.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, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_4
LBB0_2:
	ldr	w0, [x20, #16]
	mov	w21, #4
	mov	w1, #4
	mov	x2, x20
	bl	_pci_zalloc_consistent
	str	x0, [x20, #8]
	cbz	x0, LBB0_6
; %bb.3:
	ldr	w8, [x20]
	stp	w21, w8, [sp, #8]
Lloh0:
	adrp	x21, _CMD_MCPU_FW_INFO@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CMD_MCPU_FW_INFO@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_vnic_dev_capable
Lloh2:
	adrp	x8, _CMD_MCPU_FW_INFO_OLD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CMD_MCPU_FW_INFO_OLD@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x21, eq
	ldr	w1, [x8]
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x20
	mov	w4, #1000
	bl	_vnic_dev_cmd
LBB0_4:
	ldr	x8, [x20, #8]
	str	x8, [x19]
LBB0_5:
	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
LBB0_6:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CMD_MCPU_FW_INFO,4,2           ; @CMD_MCPU_FW_INFO
	.comm	_CMD_MCPU_FW_INFO_OLD,4,2       ; @CMD_MCPU_FW_INFO_OLD
.subsections_via_symbols
