	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __gm_phy_read
___gm_phy_read:                         ## @__gm_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
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	_GM_SMI_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	(%rdi), %edi
	callq	_GM_SMI_CT_PHY_AD
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_GM_SMI_CT_REG_AD
	orl	%eax, %r14d
	movq	_GM_SMI_CT_OP_RD@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	callq	_gma_write16
	movq	_PHY_RETRIES@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_6
## %bb.1:
	xorl	%ebx, %ebx
	movq	_GM_SMI_CT_RD_VAL@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_udelay
	movq	_GM_SMI_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_gma_read16
	testl	%eax, (%r13)
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_3
LBB0_6:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_4:
	movq	_GM_SMI_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_gma_read16
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GM_SMI_CTRL,4,2                ## @GM_SMI_CTRL
	.comm	_GM_SMI_CT_OP_RD,4,2            ## @GM_SMI_CT_OP_RD
	.comm	_PHY_RETRIES,4,2                ## @PHY_RETRIES
	.comm	_GM_SMI_CT_RD_VAL,4,2           ## @GM_SMI_CT_RD_VAL
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_GM_SMI_DATA,4,2                ## @GM_SMI_DATA
	.no_dead_strip	___gm_phy_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __gm_phy_read
___gm_phy_read:                         ; @__gm_phy_read
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x25, _GM_SMI_CTRL@GOTPAGE
Lloh1:
	ldr	x25, [x25, _GM_SMI_CTRL@GOTPAGEOFF]
	ldr	w23, [x25]
	ldr	w0, [x0]
	bl	_GM_SMI_CT_PHY_AD
	mov	x24, x0
	mov	x0, x22
	bl	_GM_SMI_CT_REG_AD
	orr	w8, w0, w24
Lloh2:
	adrp	x9, _GM_SMI_CT_OP_RD@GOTPAGE
Lloh3:
	ldr	x9, [x9, _GM_SMI_CT_OP_RD@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	orr	w3, w8, w9
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	bl	_gma_write16
Lloh5:
	adrp	x22, _PHY_RETRIES@GOTPAGE
Lloh6:
	ldr	x22, [x22, _PHY_RETRIES@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w23, #0
Lloh7:
	adrp	x24, _GM_SMI_CT_RD_VAL@GOTPAGE
Lloh8:
	ldr	x24, [x24, _GM_SMI_CT_RD_VAL@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_udelay
	ldr	w2, [x25]
	mov	x0, x21
	mov	x1, x20
	bl	_gma_read16
	ldr	w8, [x24]
	tst	w8, w0
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w23, w23, #1
	ldr	w8, [x22]
	cmp	w23, w8
	b.lt	LBB0_2
LBB0_4:
Lloh9:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x8, _GM_SMI_DATA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GM_SMI_DATA@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_gma_read16
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
LBB0_6:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GM_SMI_CTRL,4,2                ; @GM_SMI_CTRL
	.comm	_GM_SMI_CT_OP_RD,4,2            ; @GM_SMI_CT_OP_RD
	.comm	_PHY_RETRIES,4,2                ; @PHY_RETRIES
	.comm	_GM_SMI_CT_RD_VAL,4,2           ; @GM_SMI_CT_RD_VAL
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_GM_SMI_DATA,4,2                ; @GM_SMI_DATA
	.no_dead_strip	___gm_phy_read
.subsections_via_symbols
