	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_83xx_io_slot_reset
_qlcnic_83xx_io_slot_reset:             ## @qlcnic_83xx_io_slot_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_pci_get_drvdata
	movq	%rax, %r14
	movq	_pci_channel_io_normal@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_pci_enable_device
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	_PCI_D0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_pci_set_power_state
	movq	%rbx, %rdi
	callq	_pci_set_master
	movq	%rbx, %rdi
	callq	_pci_restore_state
	movq	%r14, %rdi
	callq	_qlcnic_83xx_aer_reset
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	movq	___QLCNIC_AER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	movq	___QLCNIC_RESETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	movq	_PCI_ERS_RESULT_DISCONNECT@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	_PCI_ERS_RESULT_RECOVERED@GOTPCREL(%rip), %rax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_pci_channel_io_normal,4,2      ## @pci_channel_io_normal
	.comm	_PCI_D0,4,2                     ## @PCI_D0
	.comm	_PCI_ERS_RESULT_RECOVERED,4,2   ## @PCI_ERS_RESULT_RECOVERED
	.comm	___QLCNIC_AER,4,2               ## @__QLCNIC_AER
	.comm	___QLCNIC_RESETTING,4,2         ## @__QLCNIC_RESETTING
	.comm	_PCI_ERS_RESULT_DISCONNECT,4,2  ## @PCI_ERS_RESULT_DISCONNECT
	.no_dead_strip	_qlcnic_83xx_io_slot_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_83xx_io_slot_reset
_qlcnic_83xx_io_slot_reset:             ; @qlcnic_83xx_io_slot_reset
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_pci_get_drvdata
	mov	x19, x0
Lloh0:
	adrp	x8, _pci_channel_io_normal@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pci_channel_io_normal@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20]
	mov	x0, x20
	bl	_pci_enable_device
	cbnz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _PCI_D0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_D0@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pci_set_power_state
	mov	x0, x20
	bl	_pci_set_master
	mov	x0, x20
	bl	_pci_restore_state
	mov	x0, x19
	bl	_qlcnic_83xx_aer_reset
	cbz	w0, LBB0_4
LBB0_2:
Lloh6:
	adrp	x8, ___QLCNIC_AER@GOTPAGE
Lloh7:
	ldr	x8, [x8, ___QLCNIC_AER@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_clear_bit
Lloh9:
	adrp	x8, ___QLCNIC_RESETTING@GOTPAGE
Lloh10:
	ldr	x8, [x8, ___QLCNIC_RESETTING@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_clear_bit
Lloh12:
	adrp	x8, _PCI_ERS_RESULT_DISCONNECT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PCI_ERS_RESULT_DISCONNECT@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh14:
	adrp	x8, _PCI_ERS_RESULT_RECOVERED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PCI_ERS_RESULT_RECOVERED@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_pci_channel_io_normal,4,2      ; @pci_channel_io_normal
	.comm	_PCI_D0,4,2                     ; @PCI_D0
	.comm	_PCI_ERS_RESULT_RECOVERED,4,2   ; @PCI_ERS_RESULT_RECOVERED
	.comm	___QLCNIC_AER,4,2               ; @__QLCNIC_AER
	.comm	___QLCNIC_RESETTING,4,2         ; @__QLCNIC_RESETTING
	.comm	_PCI_ERS_RESULT_DISCONNECT,4,2  ; @PCI_ERS_RESULT_DISCONNECT
	.no_dead_strip	_qlcnic_83xx_io_slot_reset
.subsections_via_symbols
