	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hw_atl_a0_hw_reset
_hw_atl_a0_hw_reset:                    ## @hw_atl_a0_hw_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	$1, %esi
	callq	_hw_atl_glb_glb_reg_res_dis_set
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_hw_atl_pci_pci_reg_res_dis_set
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_hw_atl_rx_rx_reg_res_dis_set
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_hw_atl_tx_tx_reg_res_dis_set
	xorl	%eax, %eax
	callq	_HW_ATL_FLUSH
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_hw_atl_glb_soft_res_set
	movq	_hw_atl_glb_soft_res_get@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	movl	$1000, %r8d                     ## imm = 0x3E8
	movl	$10000, %r9d                    ## imm = 0x2710
	callq	_readx_poll_timeout_atomic
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_hw_atl_itr_irq_reg_res_dis_set
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_hw_atl_itr_res_irq_set
	movq	_hw_atl_itr_res_irq_get@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	movl	$1000, %r8d                     ## imm = 0x3E8
	movl	$10000, %r9d                    ## imm = 0x2710
	callq	_readx_poll_timeout_atomic
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	(%rbx), %rax
	movq	_MPI_RESET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_aq_hw_err_from_flags           ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hw_atl_glb_soft_res_get,4,2    ## @hw_atl_glb_soft_res_get
	.comm	_hw_atl_itr_res_irq_get,4,2     ## @hw_atl_itr_res_irq_get
	.comm	_MPI_RESET,4,2                  ## @MPI_RESET
	.no_dead_strip	_hw_atl_a0_hw_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hw_atl_a0_hw_reset
_hw_atl_a0_hw_reset:                    ; @hw_atl_a0_hw_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
	mov	w1, #1
	bl	_hw_atl_glb_glb_reg_res_dis_set
	mov	x0, x19
	mov	w1, #0
	bl	_hw_atl_pci_pci_reg_res_dis_set
	mov	x0, x19
	mov	w1, #0
	bl	_hw_atl_rx_rx_reg_res_dis_set
	mov	x0, x19
	mov	w1, #0
	bl	_hw_atl_tx_tx_reg_res_dis_set
	bl	_HW_ATL_FLUSH
	mov	x0, x19
	mov	w1, #1
	bl	_hw_atl_glb_soft_res_set
Lloh0:
	adrp	x8, _hw_atl_glb_soft_res_get@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hw_atl_glb_soft_res_get@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	mov	w3, #0
	mov	w4, #1000
	mov	w5, #10000
	bl	_readx_poll_timeout_atomic
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	bl	_hw_atl_itr_irq_reg_res_dis_set
	mov	x0, x19
	mov	w1, #1
	bl	_hw_atl_itr_res_irq_set
Lloh3:
	adrp	x8, _hw_atl_itr_res_irq_get@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hw_atl_itr_res_irq_get@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x19
	mov	w3, #0
	mov	w4, #1000
	mov	w5, #10000
	bl	_readx_poll_timeout_atomic
	tbnz	w0, #31, LBB0_3
; %bb.2:
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _MPI_RESET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MPI_RESET@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_aq_hw_err_from_flags
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_hw_atl_glb_soft_res_get,4,2    ; @hw_atl_glb_soft_res_get
	.comm	_hw_atl_itr_res_irq_get,4,2     ; @hw_atl_itr_res_irq_get
	.comm	_MPI_RESET,4,2                  ; @MPI_RESET
	.no_dead_strip	_hw_atl_a0_hw_reset
.subsections_via_symbols
