	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sr_paxc_phy_init
_sr_paxc_phy_init:                      ## @sr_paxc_phy_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_phy_get_drvdata
	movl	(%rax), %ecx
	movq	_SR_PAXC_PHY_IDX@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_1
## %bb.2:
	movq	8(%rax), %rbx
	movl	4(%rbx), %edi
	movq	_MHB_MEM_PW_PAXC_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	callq	_regmap_read
	movl	-12(%rbp), %ecx
	movq	_MHB_PWR_STATUS_MASK@GOTPCREL(%rip), %rdx
	notl	%ecx
	xorl	%eax, %eax
	testl	%ecx, (%rdx)
	je	LBB0_5
## %bb.3:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SR_PAXC_PHY_IDX,4,2            ## @SR_PAXC_PHY_IDX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MHB_MEM_PW_PAXC_OFFSET,4,2     ## @MHB_MEM_PW_PAXC_OFFSET
	.comm	_MHB_PWR_STATUS_MASK,4,2        ## @MHB_PWR_STATUS_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PAXC is not powered up\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_sr_paxc_phy_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sr_paxc_phy_init
_sr_paxc_phy_init:                      ; @sr_paxc_phy_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	bl	_phy_get_drvdata
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _SR_PAXC_PHY_IDX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SR_PAXC_PHY_IDX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.1:
	ldr	x19, [x0, #8]
	ldr	w0, [x19, #4]
Lloh3:
	adrp	x8, _MHB_MEM_PW_PAXC_OFFSET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MHB_MEM_PW_PAXC_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	ldr	w8, [sp, #12]
Lloh6:
	adrp	x9, _MHB_PWR_STATUS_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MHB_PWR_STATUS_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	bics	wzr, w9, w8
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_6
LBB0_3:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SR_PAXC_PHY_IDX,4,2            ; @SR_PAXC_PHY_IDX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MHB_MEM_PW_PAXC_OFFSET,4,2     ; @MHB_MEM_PW_PAXC_OFFSET
	.comm	_MHB_PWR_STATUS_MASK,4,2        ; @MHB_PWR_STATUS_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PAXC is not powered up\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_sr_paxc_phy_init
.subsections_via_symbols
