	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pxp_soft_reset
_pxp_soft_reset:                        ## @pxp_soft_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_BM_PXP_CTRL_SFTRST@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_HW_PXP_CTRL_CLR@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movq	_BM_PXP_CTRL_CLKGATE@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	(%r15), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movl	(%r12), %edi
	movq	_HW_PXP_CTRL_SET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movq	_HW_PXP_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$100, %r8d
	callq	_readl_poll_timeout
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	(%r12), %edi
	movq	(%r15), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movl	(%r13), %edi
	movq	(%r15), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	jmp	LBB0_3
LBB0_1:
	movl	%eax, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BM_PXP_CTRL_SFTRST,4,2         ## @BM_PXP_CTRL_SFTRST
	.comm	_HW_PXP_CTRL_CLR,8,3            ## @HW_PXP_CTRL_CLR
	.comm	_BM_PXP_CTRL_CLKGATE,4,2        ## @BM_PXP_CTRL_CLKGATE
	.comm	_HW_PXP_CTRL_SET,8,3            ## @HW_PXP_CTRL_SET
	.comm	_HW_PXP_CTRL,8,3                ## @HW_PXP_CTRL
	.no_dead_strip	_pxp_soft_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pxp_soft_reset
_pxp_soft_reset:                        ; @pxp_soft_reset
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, _BM_PXP_CTRL_SFTRST@GOTPAGE
Lloh1:
	ldr	x21, [x21, _BM_PXP_CTRL_SFTRST@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	x8, [x19]
Lloh2:
	adrp	x20, _HW_PXP_CTRL_CLR@GOTPAGE
Lloh3:
	ldr	x20, [x20, _HW_PXP_CTRL_CLR@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
Lloh4:
	adrp	x22, _BM_PXP_CTRL_CLKGATE@GOTPAGE
Lloh5:
	ldr	x22, [x22, _BM_PXP_CTRL_CLKGATE@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x21]
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _HW_PXP_CTRL_SET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HW_PXP_CTRL_SET@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _HW_PXP_CTRL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HW_PXP_CTRL@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	w2, #0
	mov	w3, #0
	mov	w4, #100
	bl	_readl_poll_timeout
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	w0, [x21]
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x22]
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BM_PXP_CTRL_SFTRST,4,2         ; @BM_PXP_CTRL_SFTRST
	.comm	_HW_PXP_CTRL_CLR,8,3            ; @HW_PXP_CTRL_CLR
	.comm	_BM_PXP_CTRL_CLKGATE,4,2        ; @BM_PXP_CTRL_CLKGATE
	.comm	_HW_PXP_CTRL_SET,8,3            ; @HW_PXP_CTRL_SET
	.comm	_HW_PXP_CTRL,8,3                ; @HW_PXP_CTRL
	.no_dead_strip	_pxp_soft_reset
.subsections_via_symbols
