	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ltq_etop_mdio_rd
_ltq_etop_mdio_rd:                      ## @ltq_etop_mdio_rd
	.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, %r14d
	movl	%esi, %r15d
	movq	_MDIO_REQUEST@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_MDIO_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_MDIO_ADDR_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movq	_MDIO_ADDR_OFFSET@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r15d
	movq	_MDIO_REG_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movq	_MDIO_REG_OFFSET@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r14d
	movq	_LTQ_ETOP_MDIO@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	callq	_ltq_etop_r32
	testl	%eax, (%r13)
	jne	LBB0_1
## %bb.2:
	orl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	orl	%r15d, %r12d
	orl	%r14d, %r12d
	movl	(%rbx), %esi
	movl	%r12d, %edi
	callq	_ltq_etop_w32
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	callq	_ltq_etop_r32
	testl	%eax, (%r13)
	jne	LBB0_3
## %bb.4:
	movl	(%rbx), %edi
	callq	_ltq_etop_r32
	movq	_MDIO_VAL_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_REQUEST,4,2               ## @MDIO_REQUEST
	.comm	_MDIO_READ,4,2                  ## @MDIO_READ
	.comm	_MDIO_ADDR_MASK,4,2             ## @MDIO_ADDR_MASK
	.comm	_MDIO_ADDR_OFFSET,4,2           ## @MDIO_ADDR_OFFSET
	.comm	_MDIO_REG_MASK,4,2              ## @MDIO_REG_MASK
	.comm	_MDIO_REG_OFFSET,4,2            ## @MDIO_REG_OFFSET
	.comm	_LTQ_ETOP_MDIO,4,2              ## @LTQ_ETOP_MDIO
	.comm	_MDIO_VAL_MASK,4,2              ## @MDIO_VAL_MASK
	.no_dead_strip	_ltq_etop_mdio_rd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ltq_etop_mdio_rd
_ltq_etop_mdio_rd:                      ; @ltq_etop_mdio_rd
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x19, _MDIO_REQUEST@GOTPAGE
Lloh1:
	ldr	x19, [x19, _MDIO_REQUEST@GOTPAGEOFF]
	ldr	w21, [x19]
Lloh2:
	adrp	x8, _MDIO_READ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MDIO_READ@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
Lloh5:
	adrp	x8, _MDIO_ADDR_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MDIO_ADDR_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w8, w8, w1
Lloh8:
	adrp	x9, _MDIO_ADDR_OFFSET@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MDIO_ADDR_OFFSET@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	lsl	w23, w8, w9
Lloh11:
	adrp	x8, _MDIO_REG_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MDIO_REG_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	and	w8, w8, w2
Lloh14:
	adrp	x9, _MDIO_REG_OFFSET@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MDIO_REG_OFFSET@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	lsl	w24, w8, w9
Lloh17:
	adrp	x20, _LTQ_ETOP_MDIO@GOTPAGE
Lloh18:
	ldr	x20, [x20, _LTQ_ETOP_MDIO@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	bl	_ltq_etop_r32
	ldr	w8, [x19]
	tst	w8, w0
	b.ne	LBB0_1
; %bb.2:
	orr	w8, w22, w21
	orr	w8, w8, w23
	orr	w0, w8, w24
	ldr	w1, [x20]
	bl	_ltq_etop_w32
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	bl	_ltq_etop_r32
	ldr	w8, [x19]
	tst	w8, w0
	b.ne	LBB0_3
; %bb.4:
	ldr	w0, [x20]
	bl	_ltq_etop_r32
Lloh19:
	adrp	x8, _MDIO_VAL_MASK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MDIO_VAL_MASK@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	and	w0, w8, w0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_REQUEST,4,2               ; @MDIO_REQUEST
	.comm	_MDIO_READ,4,2                  ; @MDIO_READ
	.comm	_MDIO_ADDR_MASK,4,2             ; @MDIO_ADDR_MASK
	.comm	_MDIO_ADDR_OFFSET,4,2           ; @MDIO_ADDR_OFFSET
	.comm	_MDIO_REG_MASK,4,2              ; @MDIO_REG_MASK
	.comm	_MDIO_REG_OFFSET,4,2            ; @MDIO_REG_OFFSET
	.comm	_LTQ_ETOP_MDIO,4,2              ; @LTQ_ETOP_MDIO
	.comm	_MDIO_VAL_MASK,4,2              ; @MDIO_VAL_MASK
	.no_dead_strip	_ltq_etop_mdio_rd
.subsections_via_symbols
