	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_enet_mdio_read
_bcm_enet_mdio_read:                    ## @bcm_enet_mdio_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_ENET_MIIDATA_REG_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	movq	_ENET_MIIDATA_TA_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$2, %eax
	shll	%cl, %eax
	movq	%rdi, %rbx
	orl	%edx, %eax
	movq	_ENET_MIIDATA_PHYID_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	orl	%eax, %esi
	movq	_ENET_MIIDATA_OP_READ_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_do_mdio_op
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_2
## %bb.1:
	movq	_ENET_MIIDATA_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_enet_readl
	movzwl	%ax, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENET_MIIDATA_REG_SHIFT,4,2     ## @ENET_MIIDATA_REG_SHIFT
	.comm	_ENET_MIIDATA_TA_SHIFT,4,2      ## @ENET_MIIDATA_TA_SHIFT
	.comm	_ENET_MIIDATA_PHYID_SHIFT,4,2   ## @ENET_MIIDATA_PHYID_SHIFT
	.comm	_ENET_MIIDATA_OP_READ_MASK,4,2  ## @ENET_MIIDATA_OP_READ_MASK
	.comm	_ENET_MIIDATA_REG,4,2           ## @ENET_MIIDATA_REG
	.no_dead_strip	_bcm_enet_mdio_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_enet_mdio_read
_bcm_enet_mdio_read:                    ; @bcm_enet_mdio_read
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _ENET_MIIDATA_REG_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENET_MIIDATA_REG_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w8, w2, w8
Lloh3:
	adrp	x9, _ENET_MIIDATA_TA_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ENET_MIIDATA_TA_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mov	w10, #2
	lsl	w9, w10, w9
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _ENET_MIIDATA_PHYID_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ENET_MIIDATA_PHYID_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsl	w9, w1, w9
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _ENET_MIIDATA_OP_READ_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ENET_MIIDATA_OP_READ_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_do_mdio_op
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_3
LBB0_2:
Lloh12:
	adrp	x8, _ENET_MIIDATA_REG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENET_MIIDATA_REG@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_enet_readl
	and	w0, w0, #0xffff
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ENET_MIIDATA_REG_SHIFT,4,2     ; @ENET_MIIDATA_REG_SHIFT
	.comm	_ENET_MIIDATA_TA_SHIFT,4,2      ; @ENET_MIIDATA_TA_SHIFT
	.comm	_ENET_MIIDATA_PHYID_SHIFT,4,2   ; @ENET_MIIDATA_PHYID_SHIFT
	.comm	_ENET_MIIDATA_OP_READ_MASK,4,2  ; @ENET_MIIDATA_OP_READ_MASK
	.comm	_ENET_MIIDATA_REG,4,2           ; @ENET_MIIDATA_REG
	.no_dead_strip	_bcm_enet_mdio_read
.subsections_via_symbols
