	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iavf_open
_iavf_open:                             ## @iavf_open
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_IAVF_FLAG_PF_COMMS_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_1
## %bb.15:
	movq	32(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_14
LBB0_1:
	leaq	16(%r14), %rbx
	movq	___IAVF_IN_CRITICAL_TASK@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$500, %edi                      ## imm = 0x1F4
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_usleep_range
	jmp	LBB0_3
LBB0_4:
	movq	8(%r14), %rax
	movq	___IAVF_DOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.6:
	movq	%r14, %rdi
	callq	_iavf_setup_all_tx_resources
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.7:
	movq	%r14, %rdi
	callq	_iavf_setup_all_rx_resources
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_iavf_request_traffic_irqs
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_iavf_down
	movq	%r14, %rdi
	callq	_iavf_free_traffic_irqs
LBB0_11:
	movq	%r14, %rdi
	callq	_iavf_free_all_rx_resources
LBB0_12:
	movq	%r14, %rdi
	callq	_iavf_free_all_tx_resources
	jmp	LBB0_13
LBB0_5:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_13:
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
LBB0_14:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r14, %r15
	addq	$20, %r15
	movq	%r15, %rdi
	callq	_spin_lock_bh
	movl	24(%r14), %esi
	movq	%r14, %rdi
	callq	_iavf_add_filter
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	movq	%r14, %rdi
	callq	_iavf_configure
	movq	%r14, %rdi
	callq	_iavf_up_complete
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_iavf_irq_enable
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	xorl	%r12d, %r12d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_IAVF_FLAG_PF_COMMS_FAILED,4,2  ## @IAVF_FLAG_PF_COMMS_FAILED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to open device due to PF driver failure.\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	___IAVF_IN_CRITICAL_TASK,4,2    ## @__IAVF_IN_CRITICAL_TASK
	.comm	___IAVF_DOWN,8,3                ## @__IAVF_DOWN
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_iavf_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iavf_open
_iavf_open:                             ; @iavf_open
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _IAVF_FLAG_PF_COMMS_FAILED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IAVF_FLAG_PF_COMMS_FAILED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x0, [x20, #32]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_14
LBB0_2:
	add	x19, x20, #16
Lloh8:
	adrp	x23, ___IAVF_IN_CRITICAL_TASK@GOTPAGE
Lloh9:
	ldr	x23, [x23, ___IAVF_IN_CRITICAL_TASK@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	mov	x1, x19
	bl	_test_and_set_bit
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #500
	mov	w1, #1000
	bl	_usleep_range
	b	LBB0_3
LBB0_5:
	ldr	x8, [x20, #8]
Lloh10:
	adrp	x9, ___IAVF_DOWN@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___IAVF_DOWN@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.6:
	mov	x0, x20
	bl	_iavf_setup_all_tx_resources
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.7:
	mov	x0, x20
	bl	_iavf_setup_all_rx_resources
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.8:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_iavf_request_traffic_irqs
	mov	x22, x0
	cbz	w0, LBB0_15
; %bb.9:
	mov	x0, x20
	bl	_iavf_down
	mov	x0, x20
	bl	_iavf_free_traffic_irqs
LBB0_10:
	mov	x0, x20
	bl	_iavf_free_all_rx_resources
LBB0_11:
	mov	x0, x20
	bl	_iavf_free_all_tx_resources
	b	LBB0_13
LBB0_12:
Lloh13:
	adrp	x8, _EBUSY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_13:
	ldr	w0, [x23]
	mov	x1, x19
	bl	_clear_bit
LBB0_14:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_15:
	add	x21, x20, #20
	mov	x0, x21
	bl	_spin_lock_bh
	ldr	w1, [x20, #24]
	mov	x0, x20
	bl	_iavf_add_filter
	mov	x0, x21
	bl	_spin_unlock_bh
	mov	x0, x20
	bl	_iavf_configure
	mov	x0, x20
	bl	_iavf_up_complete
	mov	x0, x20
	mov	w1, #1
	bl	_iavf_irq_enable
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_IAVF_FLAG_PF_COMMS_FAILED,4,2  ; @IAVF_FLAG_PF_COMMS_FAILED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to open device due to PF driver failure.\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	___IAVF_IN_CRITICAL_TASK,4,2    ; @__IAVF_IN_CRITICAL_TASK
	.comm	___IAVF_DOWN,8,3                ; @__IAVF_DOWN
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_iavf_open
.subsections_via_symbols
