	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function t4_fw_halt
_t4_fw_halt:                            ## @t4_fw_halt
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_PCIE_FW_MASTER_M@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	%esi, (%rax)
	jae	LBB0_1
LBB0_3:
	movq	_CIM_BOOT_CFG_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_UPCRST_F@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%ecx, %edx
	callq	_t4_set_reg_field
	movq	_PCIE_FW_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PCIE_FW_HALT_F@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%ecx, %edx
	callq	_t4_set_reg_field
	jmp	LBB0_4
LBB0_1:
	movl	%edx, %r14d
	movl	%esi, %r12d
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rdi
	movq	-40(%rbp), %rsi
	callq	_INIT_CMD
	movq	_PIORST_F@GOTPCREL(%rip), %rax
	movq	_PIORSTMODE_F@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_cpu_to_be32
	movq	%rax, -40(%rbp)
	movq	_FW_RESET_CMD_HALT_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be32
	movq	%rax, -48(%rbp)
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%rbx, %rdx
	movl	$16, %ecx
	xorl	%r8d, %r8d
	callq	_t4_wr_mbox
	movl	%eax, %ebx
	testl	%r14d, %r14d
	jne	LBB0_3
## %bb.2:
	testl	%ebx, %ebx
	je	LBB0_3
LBB0_4:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCIE_FW_MASTER_M,4,2           ## @PCIE_FW_MASTER_M
	.comm	_RESET,4,2                      ## @RESET
	.comm	_WRITE,4,2                      ## @WRITE
	.comm	_PIORST_F,4,2                   ## @PIORST_F
	.comm	_PIORSTMODE_F,4,2               ## @PIORSTMODE_F
	.comm	_FW_RESET_CMD_HALT_F,4,2        ## @FW_RESET_CMD_HALT_F
	.comm	_CIM_BOOT_CFG_A,4,2             ## @CIM_BOOT_CFG_A
	.comm	_UPCRST_F,4,2                   ## @UPCRST_F
	.comm	_PCIE_FW_A,4,2                  ## @PCIE_FW_A
	.comm	_PCIE_FW_HALT_F,4,2             ## @PCIE_FW_HALT_F
	.no_dead_strip	_t4_fw_halt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function t4_fw_halt
_t4_fw_halt:                            ; @t4_fw_halt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _PCIE_FW_MASTER_M@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCIE_FW_MASTER_M@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.hs	LBB0_3
; %bb.1:
	mov	w21, #0
LBB0_2:
Lloh3:
	adrp	x8, _CIM_BOOT_CFG_A@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CIM_BOOT_CFG_A@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _UPCRST_F@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UPCRST_F@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x2
	bl	_t4_set_reg_field
Lloh9:
	adrp	x8, _PCIE_FW_A@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCIE_FW_A@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _PCIE_FW_HALT_F@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PCIE_FW_HALT_F@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x2
	bl	_t4_set_reg_field
	b	LBB0_5
LBB0_3:
	mov	x20, x2
	mov	x21, x1
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh15:
	adrp	x8, _RESET@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RESET@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x8, _WRITE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WRITE@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	ldp	x0, x1, [sp]
	bl	_INIT_CMD
Lloh21:
	adrp	x8, _PIORST_F@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PIORST_F@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _PIORSTMODE_F@GOTPAGE
Lloh25:
	ldr	x9, [x9, _PIORSTMODE_F@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_cpu_to_be32
	str	x0, [sp, #8]
Lloh27:
	adrp	x8, _FW_RESET_CMD_HALT_F@GOTPAGE
Lloh28:
	ldr	x8, [x8, _FW_RESET_CMD_HALT_F@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_cpu_to_be32
	str	x0, [sp]
	mov	x2, sp
	mov	x0, x19
	mov	x1, x21
	mov	w3, #16
	mov	x4, #0
	bl	_t4_wr_mbox
	mov	x21, x0
	cbnz	w20, LBB0_2
; %bb.4:
	cbz	w21, LBB0_2
LBB0_5:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PCIE_FW_MASTER_M,4,2           ; @PCIE_FW_MASTER_M
	.comm	_RESET,4,2                      ; @RESET
	.comm	_WRITE,4,2                      ; @WRITE
	.comm	_PIORST_F,4,2                   ; @PIORST_F
	.comm	_PIORSTMODE_F,4,2               ; @PIORSTMODE_F
	.comm	_FW_RESET_CMD_HALT_F,4,2        ; @FW_RESET_CMD_HALT_F
	.comm	_CIM_BOOT_CFG_A,4,2             ; @CIM_BOOT_CFG_A
	.comm	_UPCRST_F,4,2                   ; @UPCRST_F
	.comm	_PCIE_FW_A,4,2                  ; @PCIE_FW_A
	.comm	_PCIE_FW_HALT_F,4,2             ; @PCIE_FW_HALT_F
	.no_dead_strip	_t4_fw_halt
.subsections_via_symbols
