	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hw_atl_utils_fw_rpc_wait       ## -- Begin function hw_atl_utils_fw_rpc_wait
	.p2align	4, 0x90
_hw_atl_utils_fw_rpc_wait:              ## @hw_atl_utils_fw_rpc_wait
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	_HW_ATL_RPC_CONTROL_ADR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_aq_hw_read_reg
	movq	_hw_atl_utils_rpc_state_get@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	movl	$1000, %r8d                     ## imm = 0x3E8
	movl	$100000, %r9d                   ## imm = 0x186A0
	callq	_readx_poll_timeout_atomic
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	addq	$8, %rbx
	movq	%rbx, (%r14)
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_ATL_RPC_CONTROL_ADR,4,2     ## @HW_ATL_RPC_CONTROL_ADR
	.comm	_hw_atl_utils_rpc_state_get,4,2 ## @hw_atl_utils_rpc_state_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hw_atl_utils_fw_rpc_wait       ; -- Begin function hw_atl_utils_fw_rpc_wait
	.p2align	2
_hw_atl_utils_fw_rpc_wait:              ; @hw_atl_utils_fw_rpc_wait
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _HW_ATL_RPC_CONTROL_ADR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HW_ATL_RPC_CONTROL_ADR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_aq_hw_read_reg
Lloh3:
	adrp	x8, _hw_atl_utils_rpc_state_get@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hw_atl_utils_rpc_state_get@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	mov	w3, #0
	mov	w4, #1000
	mov	w5, #34464
	movk	w5, #1, lsl #16
	bl	_readx_poll_timeout_atomic
	cbz	x19, LBB0_2
; %bb.1:
	add	x8, x20, #8
	str	x8, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_ATL_RPC_CONTROL_ADR,4,2     ; @HW_ATL_RPC_CONTROL_ADR
	.comm	_hw_atl_utils_rpc_state_get,4,2 ; @hw_atl_utils_rpc_state_get
.subsections_via_symbols
