	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iavf_startup
_iavf_startup:                          ## @iavf_startup
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	48(%rdi), %r14
	leaq	16(%rdi), %r15
	movq	___IAVF_STARTUP@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_WARN_ON
	movq	_IAVF_FLAG_PF_COMMS_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_IAVF_FLAG_RESET_PENDING@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	notl	%eax
	andl	%eax, 8(%rbx)
	movq	%r15, %rdi
	callq	_iavf_set_mac_type
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_dev_err
	jmp	LBB0_10
LBB0_3:
	movq	%r15, %rdi
	callq	_iavf_check_reset_complete
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_info
LBB0_10:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_IAVF_AQ_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%rbx)
	movq	%rax, 32(%rbx)
	movq	_IAVF_MAX_AQ_BUF_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	%rax, 16(%rbx)
	movq	%r15, %rdi
	callq	_iavf_init_adminq
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
LBB0_7:
	movq	%rbx, %rdi
	callq	_iavf_send_api_ver
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movq	%r15, %rdi
	callq	_iavf_shutdown_adminq
	jmp	LBB0_10
LBB0_9:
	movq	___IAVF_INIT_VERSION_CHECK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	xorl	%r12d, %r12d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	___IAVF_STARTUP,8,3             ## @__IAVF_STARTUP
	.comm	_IAVF_FLAG_PF_COMMS_FAILED,4,2  ## @IAVF_FLAG_PF_COMMS_FAILED
	.comm	_IAVF_FLAG_RESET_PENDING,4,2    ## @IAVF_FLAG_RESET_PENDING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set MAC type (%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Device is still in reset (%d), retrying\n"

	.comm	_IAVF_AQ_LEN,8,3                ## @IAVF_AQ_LEN
	.comm	_IAVF_MAX_AQ_BUF_SIZE,8,3       ## @IAVF_MAX_AQ_BUF_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"Failed to init Admin Queue (%d)\n"

L_.str.3:                               ## @.str.3
	.asciz	"Unable to send to PF (%d)\n"

	.comm	___IAVF_INIT_VERSION_CHECK,8,3  ## @__IAVF_INIT_VERSION_CHECK
	.no_dead_strip	_iavf_startup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iavf_startup
_iavf_startup:                          ; @iavf_startup
	.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	x22, x0
	ldr	x19, [x0, #48]
	add	x20, x0, #16
	ldr	x8, [x0]
Lloh0:
	adrp	x9, ___IAVF_STARTUP@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___IAVF_STARTUP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_WARN_ON
Lloh3:
	adrp	x8, _IAVF_FLAG_PF_COMMS_FAILED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IAVF_FLAG_PF_COMMS_FAILED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x22, #8]
Lloh6:
	adrp	x10, _IAVF_FLAG_RESET_PENDING@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IAVF_FLAG_RESET_PENDING@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w8, w8, w10
	bic	w8, w9, w8
	str	w8, [x22, #8]
	mov	x0, x20
	bl	_iavf_set_mac_type
	cbz	w0, LBB0_3
; %bb.1:
	mov	x21, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
	b	LBB0_5
LBB0_3:
	mov	x0, x20
	bl	_iavf_check_reset_complete
	cbz	w0, LBB0_6
; %bb.4:
	mov	x21, x0
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_info
LBB0_5:
	mov	x0, x21
	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
LBB0_6:
Lloh13:
	adrp	x8, _IAVF_AQ_LEN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IAVF_AQ_LEN@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	stp	x8, x8, [x22, #32]
Lloh16:
	adrp	x8, _IAVF_MAX_AQ_BUF_SIZE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IAVF_MAX_AQ_BUF_SIZE@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	stp	x8, x8, [x22, #16]
	mov	x0, x20
	bl	_iavf_init_adminq
	cbz	w0, LBB0_8
; %bb.7:
	mov	x21, x0
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_8:
	mov	x0, x22
	bl	_iavf_send_api_ver
	mov	x21, x0
	cbz	w0, LBB0_10
; %bb.9:
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
	mov	x0, x20
	bl	_iavf_shutdown_adminq
	b	LBB0_5
LBB0_10:
Lloh23:
	adrp	x8, ___IAVF_INIT_VERSION_CHECK@GOTPAGE
Lloh24:
	ldr	x8, [x8, ___IAVF_INIT_VERSION_CHECK@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	str	x8, [x22]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	___IAVF_STARTUP,8,3             ; @__IAVF_STARTUP
	.comm	_IAVF_FLAG_PF_COMMS_FAILED,4,2  ; @IAVF_FLAG_PF_COMMS_FAILED
	.comm	_IAVF_FLAG_RESET_PENDING,4,2    ; @IAVF_FLAG_RESET_PENDING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set MAC type (%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Device is still in reset (%d), retrying\n"

	.comm	_IAVF_AQ_LEN,8,3                ; @IAVF_AQ_LEN
	.comm	_IAVF_MAX_AQ_BUF_SIZE,8,3       ; @IAVF_MAX_AQ_BUF_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"Failed to init Admin Queue (%d)\n"

l_.str.3:                               ; @.str.3
	.asciz	"Unable to send to PF (%d)\n"

	.comm	___IAVF_INIT_VERSION_CHECK,8,3  ; @__IAVF_INIT_VERSION_CHECK
	.no_dead_strip	_iavf_startup
.subsections_via_symbols
