	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netsec_phy_read
_netsec_phy_read:                       ## @netsec_phy_read
	.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
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	(%rdi), %r14
	movq	_GMAC_REG_GAR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_NETSEC_GMAC_GAR_REG_GB@GOTPCREL(%rip), %r13
	movq	_NETSEC_GMAC_GAR_REG_SHIFT_PA@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r15d
	orl	(%r13), %r15d
	movq	_NETSEC_GMAC_GAR_REG_SHIFT_GR@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movl	(%r14), %edi
	callq	_netsec_clk_type
	movq	_GMAC_REG_SHIFT_CR_GAR@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%eax, %ebx
	orl	%r15d, %ebx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_netsec_mac_write
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_2:
	movq	_GMAC_REG_GAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	%r14, %rdi
	callq	_netsec_mac_wait_while_busy
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	_GMAC_REG_GDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	_netsec_mac_read
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	-44(%rbp), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GMAC_REG_GAR,4,2               ## @GMAC_REG_GAR
	.comm	_NETSEC_GMAC_GAR_REG_GB,4,2     ## @NETSEC_GMAC_GAR_REG_GB
	.comm	_NETSEC_GMAC_GAR_REG_SHIFT_PA,4,2 ## @NETSEC_GMAC_GAR_REG_SHIFT_PA
	.comm	_NETSEC_GMAC_GAR_REG_SHIFT_GR,4,2 ## @NETSEC_GMAC_GAR_REG_SHIFT_GR
	.comm	_GMAC_REG_SHIFT_CR_GAR,4,2      ## @GMAC_REG_SHIFT_CR_GAR
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_GMAC_REG_GDR,4,2               ## @GMAC_REG_GDR
	.no_dead_strip	_netsec_phy_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netsec_phy_read
_netsec_phy_read:                       ; @netsec_phy_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x19, [x0]
Lloh0:
	adrp	x21, _GMAC_REG_GAR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GMAC_REG_GAR@GOTPAGEOFF]
	ldr	w20, [x21]
Lloh2:
	adrp	x22, _NETSEC_GMAC_GAR_REG_GB@GOTPAGE
Lloh3:
	ldr	x22, [x22, _NETSEC_GMAC_GAR_REG_GB@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh4:
	adrp	x9, _NETSEC_GMAC_GAR_REG_SHIFT_PA@GOTPAGE
Lloh5:
	ldr	x9, [x9, _NETSEC_GMAC_GAR_REG_SHIFT_PA@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	lsl	w9, w1, w9
	orr	w8, w9, w8
Lloh7:
	adrp	x9, _NETSEC_GMAC_GAR_REG_SHIFT_GR@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NETSEC_GMAC_GAR_REG_SHIFT_GR@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	lsl	w9, w2, w9
	orr	w23, w8, w9
	ldr	w0, [x19]
	bl	_netsec_clk_type
Lloh10:
	adrp	x8, _GMAC_REG_SHIFT_CR_GAR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GMAC_REG_SHIFT_CR_GAR@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	lsl	w8, w0, w8
	orr	w2, w23, w8
	mov	x0, x19
	mov	x1, x20
	bl	_netsec_mac_write
	cbz	x0, LBB0_2
; %bb.1:
Lloh13:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_2:
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_netsec_mac_wait_while_busy
	cbnz	w0, LBB0_4
; %bb.3:
Lloh16:
	adrp	x8, _GMAC_REG_GDR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GMAC_REG_GDR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_netsec_mac_read
	ldr	w8, [sp, #12]
	cmp	w0, #0
	csel	w0, w8, w0, eq
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GMAC_REG_GAR,4,2               ; @GMAC_REG_GAR
	.comm	_NETSEC_GMAC_GAR_REG_GB,4,2     ; @NETSEC_GMAC_GAR_REG_GB
	.comm	_NETSEC_GMAC_GAR_REG_SHIFT_PA,4,2 ; @NETSEC_GMAC_GAR_REG_SHIFT_PA
	.comm	_NETSEC_GMAC_GAR_REG_SHIFT_GR,4,2 ; @NETSEC_GMAC_GAR_REG_SHIFT_GR
	.comm	_GMAC_REG_SHIFT_CR_GAR,4,2      ; @GMAC_REG_SHIFT_CR_GAR
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_GMAC_REG_GDR,4,2               ; @GMAC_REG_GDR
	.no_dead_strip	_netsec_phy_read
.subsections_via_symbols
