	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aq_fw2x_set_sleep_proxy
_aq_fw2x_set_sleep_proxy:               ## @aq_fw2x_set_sleep_proxy
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	$0, -40(%rbp)
	leaq	-40(%rbp), %rsi
	callq	_hw_atl_utils_fw_rpc_wait
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movq	-40(%rbp), %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	-40(%rbp), %rbx
	movl	8(%rbx), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_memcpy
	movl	$8, 4(%rbx)
	movq	_HW_ATL_FW2X_MPI_CONTROL2_ADDR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_aq_hw_read_reg
	movq	_HW_ATL_FW2X_CTRL_SLEEP_PROXY@GOTPCREL(%rip), %r12
	movq	_HW_ATL_FW2X_CTRL_LINK_DROP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%r12), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_aq_hw_write_reg
	movq	%r14, %rdi
	movl	$12, %esi
	callq	_hw_atl_utils_fw_rpc_call
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	orl	(%r12), %ebx
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_aq_hw_write_reg
	movq	_aq_fw2x_state2_get@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$100000, %r9d                   ## imm = 0x186A0
	callq	_readx_poll_timeout_atomic
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_HW_ATL_FW2X_MPI_CONTROL2_ADDR,4,2 ## @HW_ATL_FW2X_MPI_CONTROL2_ADDR
	.comm	_HW_ATL_FW2X_CTRL_SLEEP_PROXY,4,2 ## @HW_ATL_FW2X_CTRL_SLEEP_PROXY
	.comm	_HW_ATL_FW2X_CTRL_LINK_DROP,4,2 ## @HW_ATL_FW2X_CTRL_LINK_DROP
	.comm	_aq_fw2x_state2_get,4,2         ## @aq_fw2x_state2_get
	.no_dead_strip	_aq_fw2x_set_sleep_proxy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aq_fw2x_set_sleep_proxy
_aq_fw2x_set_sleep_proxy:               ; @aq_fw2x_set_sleep_proxy
	.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	x20, x1
	mov	x19, x0
	str	xzr, [sp, #8]
	add	x1, sp, #8
	bl	_hw_atl_utils_fw_rpc_wait
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	x0, [sp, #8]
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	ldr	x21, [sp, #8]
	ldr	w0, [x21, #8]
Lloh0:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_memcpy
	mov	w8, #8
	str	w8, [x21, #4]
Lloh3:
	adrp	x21, _HW_ATL_FW2X_MPI_CONTROL2_ADDR@GOTPAGE
Lloh4:
	ldr	x21, [x21, _HW_ATL_FW2X_MPI_CONTROL2_ADDR@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_aq_hw_read_reg
Lloh5:
	adrp	x22, _HW_ATL_FW2X_CTRL_SLEEP_PROXY@GOTPAGE
Lloh6:
	ldr	x22, [x22, _HW_ATL_FW2X_CTRL_SLEEP_PROXY@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh7:
	adrp	x9, _HW_ATL_FW2X_CTRL_LINK_DROP@GOTPAGE
Lloh8:
	ldr	x9, [x9, _HW_ATL_FW2X_CTRL_LINK_DROP@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w20, w0, w8
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_aq_hw_write_reg
	mov	x0, x19
	mov	w1, #12
	bl	_hw_atl_utils_fw_rpc_call
	tbnz	w0, #31, LBB0_3
; %bb.2:
	ldr	w8, [x22]
	orr	w2, w8, w20
	ldr	w1, [x21]
	mov	x0, x19
	bl	_aq_hw_write_reg
Lloh10:
	adrp	x8, _aq_fw2x_state2_get@GOTPAGE
Lloh11:
	ldr	x8, [x8, _aq_fw2x_state2_get@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x19
	mov	w3, #0
	mov	w4, #1
	mov	w5, #34464
	movk	w5, #1, lsl #16
	bl	_readx_poll_timeout_atomic
LBB0_3:
	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	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_HW_ATL_FW2X_MPI_CONTROL2_ADDR,4,2 ; @HW_ATL_FW2X_MPI_CONTROL2_ADDR
	.comm	_HW_ATL_FW2X_CTRL_SLEEP_PROXY,4,2 ; @HW_ATL_FW2X_CTRL_SLEEP_PROXY
	.comm	_HW_ATL_FW2X_CTRL_LINK_DROP,4,2 ; @HW_ATL_FW2X_CTRL_LINK_DROP
	.comm	_aq_fw2x_state2_get,4,2         ; @aq_fw2x_state2_get
	.no_dead_strip	_aq_fw2x_set_sleep_proxy
.subsections_via_symbols
