	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm10k_handle_reset
_fm10k_handle_reset:                    ## @fm10k_handle_reset
	.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
	movq	56(%rdi), %r14
	leaq	16(%rdi), %r12
	movq	___FM10K_RESETTING@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	(%r15), %esi
	callq	_test_bit
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	xorl	%eax, %eax
	callq	_rtnl_lock
	movq	8(%r15), %rdi
	callq	_pci_set_master
	movq	%r12, %rdi
	callq	*40(%r15)
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	movq	8(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	movq	%r12, %rdi
	callq	*48(%r15)
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	movq	8(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_5:
	movq	%r15, %rdi
	callq	_fm10k_init_queueing_scheme
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	movq	8(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
LBB0_2:
	movl	%ebx, %edx
	callq	_dev_err
LBB0_20:
	movq	%r14, %rdi
	callq	_netif_device_detach
	xorl	%eax, %eax
	callq	_rtnl_unlock
LBB0_21:
	movl	(%r13), %edi
	movl	(%r15), %esi
	callq	_clear_bit
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r15, %rdi
	callq	_fm10k_mbx_request_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.8:
	movq	%r15, %rdi
	callq	_fm10k_hw_ready
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_9
LBB0_18:
	movq	%r15, %rdi
	callq	_fm10k_mbx_free_irq
LBB0_19:
	movq	%r15, %rdi
	callq	_fm10k_clear_queueing_scheme
	jmp	LBB0_20
LBB0_9:
	movq	(%r12), %rax
	movq	_fm10k_mac_vf@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.10:
	movl	32(%r15), %edi
	callq	_is_valid_ether_addr
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	32(%r15), %esi
	movl	36(%r15), %edi
	callq	_ether_addr_copy
	movl	12(%r14), %edi
	movl	32(%r15), %esi
	callq	_ether_addr_copy
	movl	8(%r14), %edi
	movl	32(%r15), %esi
	callq	_ether_addr_copy
	movq	_NET_ADDR_RANDOM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 4(%r14)
LBB0_12:
	cmpq	$0, 24(%r15)
	movq	_NETIF_F_HW_VLAN_CTAG_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	je	LBB0_14
## %bb.13:
	notl	%eax
	andl	%eax, (%r14)
	jmp	LBB0_15
LBB0_14:
	orl	%eax, (%r14)
LBB0_15:
	movq	%r14, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	%r14, %rdi
	callq	_fm10k_open
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
LBB0_17:
	movq	8(%r15), %rdi
	callq	_fm10k_iov_resume
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movq	%r15, %rdi
	callq	_fm10k_resume_macvlan_task
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	___FM10K_RESETTING,4,2          ## @__FM10K_RESETTING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reset_hw failed: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"init_hw failed: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"init_queueing_scheme failed: %d\n"

	.comm	_fm10k_mac_vf,8,3               ## @fm10k_mac_vf
	.comm	_NET_ADDR_RANDOM,4,2            ## @NET_ADDR_RANDOM
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ## @NETIF_F_HW_VLAN_CTAG_RX
	.no_dead_strip	_fm10k_handle_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fm10k_handle_reset
_fm10k_handle_reset:                    ; @fm10k_handle_reset
	.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	x19, x0
	ldr	x20, [x0, #56]
	add	x22, x0, #16
Lloh0:
	adrp	x23, ___FM10K_RESETTING@GOTPAGE
Lloh1:
	ldr	x23, [x23, ___FM10K_RESETTING@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	w1, [x19]
	bl	_test_bit
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	bl	_rtnl_lock
	ldr	x0, [x19, #8]
	bl	_pci_set_master
	ldr	x8, [x19, #40]
	mov	x0, x22
	blr	x8
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	x0, [x19, #8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:
	ldr	x8, [x19, #48]
	mov	x0, x22
	blr	x8
	cbz	w0, LBB0_4
; %bb.3:
	mov	x21, x0
	ldr	x0, [x19, #8]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_fm10k_init_queueing_scheme
	cbz	w0, LBB0_9
; %bb.5:
	mov	x21, x0
	ldr	x0, [x19, #8]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	mov	x2, x21
	bl	_dev_err
LBB0_7:
	mov	x0, x20
	bl	_netif_device_detach
	bl	_rtnl_unlock
LBB0_8:
	ldr	w0, [x23]
	ldr	w1, [x19]
	bl	_clear_bit
	mov	x0, x21
	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_9:
	mov	x0, x19
	bl	_fm10k_mbx_request_irq
	mov	x21, x0
	cbnz	w0, LBB0_12
; %bb.10:
	mov	x0, x19
	bl	_fm10k_hw_ready
	mov	x21, x0
	cbz	w0, LBB0_13
LBB0_11:
	mov	x0, x19
	bl	_fm10k_mbx_free_irq
LBB0_12:
	mov	x0, x19
	bl	_fm10k_clear_queueing_scheme
	b	LBB0_7
LBB0_13:
	ldr	x8, [x22]
Lloh8:
	adrp	x9, _fm10k_mac_vf@GOTPAGE
Lloh9:
	ldr	x9, [x9, _fm10k_mac_vf@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.14:
	ldr	w0, [x19, #32]
	bl	_is_valid_ether_addr
	cbz	x0, LBB0_16
; %bb.15:
	ldp	w1, w0, [x19, #32]
	bl	_ether_addr_copy
	ldr	w0, [x20, #12]
	ldr	w1, [x19, #32]
	bl	_ether_addr_copy
	ldr	w0, [x20, #8]
	ldr	w1, [x19, #32]
	bl	_ether_addr_copy
Lloh11:
	adrp	x8, _NET_ADDR_RANDOM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NET_ADDR_RANDOM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	bic	w8, w9, w8
	str	w8, [x20, #4]
LBB0_16:
	ldr	x9, [x19, #24]
Lloh14:
	adrp	x8, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cbz	x9, LBB0_18
; %bb.17:
	ldr	w9, [x20]
	bic	w8, w9, w8
	b	LBB0_19
LBB0_18:
	ldr	w9, [x20]
	orr	w8, w9, w8
LBB0_19:
	str	w8, [x20]
LBB0_20:
	mov	x0, x20
	bl	_netif_running
	cbz	x0, LBB0_22
; %bb.21:
	mov	x0, x20
	bl	_fm10k_open
	mov	x21, x0
	cbnz	w0, LBB0_11
LBB0_22:
	ldr	x0, [x19, #8]
	bl	_fm10k_iov_resume
	bl	_rtnl_unlock
	mov	x0, x19
	bl	_fm10k_resume_macvlan_task
	mov	w21, #0
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	___FM10K_RESETTING,4,2          ; @__FM10K_RESETTING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reset_hw failed: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"init_hw failed: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"init_queueing_scheme failed: %d\n"

	.comm	_fm10k_mac_vf,8,3               ; @fm10k_mac_vf
	.comm	_NET_ADDR_RANDOM,4,2            ; @NET_ADDR_RANDOM
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ; @NETIF_F_HW_VLAN_CTAG_RX
	.no_dead_strip	_fm10k_handle_reset
.subsections_via_symbols
