	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_aer_reset          ## -- Begin function qlcnic_83xx_aer_reset
	.p2align	4, 0x90
_qlcnic_83xx_aer_reset:                 ## @qlcnic_83xx_aer_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	movq	_QLC_83XX_IDC_DEV_NEED_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	callq	_qlcnic_83xx_idc_find_reset_owner_id
	cmpq	%rax, (%rbx)
	movq	%rbx, %rax
	jne	LBB0_3
## %bb.1:
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_qlcnic_83xx_restart_hw
	testl	%eax, %eax
	js	LBB0_4
## %bb.2:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_qlcnic_83xx_idc_clear_registers
	movq	%r14, %rax
LBB0_3:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*8(%rax)                        ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLC_83XX_IDC_DEV_NEED_RESET,4,2 ## @QLC_83XX_IDC_DEV_NEED_RESET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_aer_reset          ; -- Begin function qlcnic_83xx_aer_reset
	.p2align	2
_qlcnic_83xx_aer_reset:                 ; @qlcnic_83xx_aer_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	x19, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _QLC_83XX_IDC_DEV_NEED_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLC_83XX_IDC_DEV_NEED_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	bl	_qlcnic_83xx_idc_find_reset_owner_id
	ldr	x8, [x20]
	cmp	x8, x0
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_qlcnic_83xx_restart_hw
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	bl	_qlcnic_83xx_idc_clear_registers
LBB0_3:
	ldr	x1, [x20, #8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x1
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_QLC_83XX_IDC_DEV_NEED_RESET,4,2 ; @QLC_83XX_IDC_DEV_NEED_RESET
.subsections_via_symbols
