	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adf_slot_reset
_adf_slot_reset:                        ## @adf_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
	callq	_adf_devmgr_pci_to_accel_dev
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_ADF_DEV_RESET_SYNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_adf_dev_aer_schedule_reset
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	_PCI_ERS_RESULT_RECOVERED@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
LBB0_4:
	movq	_PCI_ERS_RESULT_DISCONNECT@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"QAT: Can't find acceleration device\n"

	.comm	_PCI_ERS_RESULT_DISCONNECT,4,2  ## @PCI_ERS_RESULT_DISCONNECT
	.comm	_ADF_DEV_RESET_SYNC,4,2         ## @ADF_DEV_RESET_SYNC
	.comm	_PCI_ERS_RESULT_RECOVERED,4,2   ## @PCI_ERS_RESULT_RECOVERED
	.no_dead_strip	_adf_slot_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adf_slot_reset
_adf_slot_reset:                        ; @adf_slot_reset
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_adf_devmgr_pci_to_accel_dev
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ADF_DEV_RESET_SYNC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADF_DEV_RESET_SYNC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_adf_dev_aer_schedule_reset
Lloh3:
	adrp	x8, _PCI_ERS_RESULT_DISCONNECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_ERS_RESULT_DISCONNECT@GOTPAGEOFF]
Lloh5:
	adrp	x9, _PCI_ERS_RESULT_RECOVERED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PCI_ERS_RESULT_RECOVERED@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh9:
	adrp	x8, _PCI_ERS_RESULT_DISCONNECT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCI_ERS_RESULT_DISCONNECT@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"QAT: Can't find acceleration device\n"

	.comm	_PCI_ERS_RESULT_DISCONNECT,4,2  ; @PCI_ERS_RESULT_DISCONNECT
	.comm	_ADF_DEV_RESET_SYNC,4,2         ; @ADF_DEV_RESET_SYNC
	.comm	_PCI_ERS_RESULT_RECOVERED,4,2   ; @PCI_ERS_RESULT_RECOVERED
	.no_dead_strip	_adf_slot_reset
.subsections_via_symbols
