	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hw_atl_utils_fw_rpc_call       ## -- Begin function hw_atl_utils_fw_rpc_call
	.p2align	4, 0x90
_hw_atl_utils_fw_rpc_call:              ## @hw_atl_utils_fw_rpc_call
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_MIPS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_CHIP_FEATURE
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	8(%rbx), %esi
	leaq	4(%rbx), %rdx
	shrl	$2, %r14d
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	callq	_hw_atl_utils_fw_upload_dwords
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	incl	(%rbx)
	movq	_HW_ATL_RPC_CONTROL_ADR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_aq_hw_write_reg
	jmp	LBB0_4
LBB0_1:
	movl	$-1, %r14d
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIPS,4,2                       ## @MIPS
	.comm	_HW_ATL_RPC_CONTROL_ADR,4,2     ## @HW_ATL_RPC_CONTROL_ADR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hw_atl_utils_fw_rpc_call       ; -- Begin function hw_atl_utils_fw_rpc_call
	.p2align	2
_hw_atl_utils_fw_rpc_call:              ; @hw_atl_utils_fw_rpc_call
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MIPS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIPS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_IS_CHIP_FEATURE
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w1, [x19, #8]
	add	x2, x19, #4
	lsr	w3, w20, #2
	mov	x0, x19
	bl	_hw_atl_utils_fw_upload_dwords
	mov	x20, x0
	tbnz	w0, #31, LBB0_4
; %bb.2:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
Lloh3:
	adrp	x8, _HW_ATL_RPC_CONTROL_ADR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HW_ATL_RPC_CONTROL_ADR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_aq_hw_write_reg
	b	LBB0_4
LBB0_3:
	mov	w20, #-1
LBB0_4:
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_MIPS,4,2                       ; @MIPS
	.comm	_HW_ATL_RPC_CONTROL_ADR,4,2     ; @HW_ATL_RPC_CONTROL_ADR
.subsections_via_symbols
