	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mdio_ctrl_phy_mii_emulated
_mdio_ctrl_phy_mii_emulated:            ## @mdio_ctrl_phy_mii_emulated
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%r8d, %r11d
	movq	%rcx, %rax
	movq	%rsi, %r10
	movq	_mdi_read@GOTPCREL(%rip), %rcx
	cmpq	%rdx, (%rcx)
	jne	LBB0_5
## %bb.1:
	cmpq	$128, %rax
	je	LBB0_7
## %bb.2:
	cmpq	$130, %rax
	je	LBB0_8
## %bb.3:
	cmpq	$129, %rax
	jne	LBB0_11
## %bb.4:
	movq	_BMCR_ANENABLE@GOTPCREL(%rip), %rcx
	movq	_BMCR_FULLDPLX@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	movq	_hw@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%rdi), %ecx
	subq	$8, %rsp
	leaq	L_.str(%rip), %r8
	leaq	L_.str.2(%rip), %r9
LBB0_6:
	pushq	%r11
	pushq	%rax
	pushq	%r10
	callq	_netif_printk
	addq	$32, %rsp
	movl	$65535, %eax                    ## imm = 0xFFFF
	popq	%rbp
	retq
LBB0_7:
	movq	_BMSR_LSTATUS@GOTPCREL(%rip), %rcx
	movq	_BMSR_ANEGCAPABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_BMSR_10FULL@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_8:
	movq	_ADVERTISE_10HALF@GOTPCREL(%rip), %rcx
	movq	_ADVERTISE_10FULL@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
LBB0_10:
	orl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_11:
	movq	_hw@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%rdi), %ecx
	subq	$8, %rsp
	leaq	L_.str(%rip), %r8
	leaq	L_.str.1(%rip), %r9
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_mdi_read,8,3                   ## @mdi_read
	.comm	_BMCR_ANENABLE,4,2              ## @BMCR_ANENABLE
	.comm	_BMCR_FULLDPLX,4,2              ## @BMCR_FULLDPLX
	.comm	_BMSR_LSTATUS,4,2               ## @BMSR_LSTATUS
	.comm	_BMSR_ANEGCAPABLE,4,2           ## @BMSR_ANEGCAPABLE
	.comm	_BMSR_10FULL,4,2                ## @BMSR_10FULL
	.comm	_ADVERTISE_10HALF,4,2           ## @ADVERTISE_10HALF
	.comm	_ADVERTISE_10FULL,4,2           ## @ADVERTISE_10FULL
	.comm	_hw,4,2                         ## @hw
	.comm	_KERN_DEBUG,4,2                 ## @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s:addr=%d, reg=%d, data=0x%04X: unimplemented emulation!\n"

L_.str.1:                               ## @.str.1
	.asciz	"READ"

L_.str.2:                               ## @.str.2
	.asciz	"WRITE"

	.no_dead_strip	_mdio_ctrl_phy_mii_emulated
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mdio_ctrl_phy_mii_emulated
_mdio_ctrl_phy_mii_emulated:            ; @mdio_ctrl_phy_mii_emulated
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	mov	x7, x3
	mov	x6, x1
Lloh0:
	adrp	x8, _mdi_read@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mdi_read@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x2
	b.ne	LBB0_5
; %bb.1:
	cmp	x7, #128
	b.eq	LBB0_7
; %bb.2:
	cmp	x7, #130
	b.eq	LBB0_8
; %bb.3:
	cmp	x7, #129
	b.ne	LBB0_11
; %bb.4:
Lloh3:
	adrp	x8, _BMCR_ANENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BMCR_ANENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _BMCR_FULLDPLX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BMCR_FULLDPLX@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
Lloh8:
	adrp	x8, _hw@GOTPAGE
Lloh9:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _KERN_DEBUG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _KERN_DEBUG@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	ldr	w3, [x0]
	str	w4, [sp]
Lloh14:
	adrp	x4, l_.str@PAGE
Lloh15:
	add	x4, x4, l_.str@PAGEOFF
Lloh16:
	adrp	x5, l_.str.2@PAGE
Lloh17:
	add	x5, x5, l_.str.2@PAGEOFF
LBB0_6:
	bl	_netif_printk
	mov	w0, #65535
	b	LBB0_10
LBB0_7:
Lloh18:
	adrp	x8, _BMSR_LSTATUS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BMSR_LSTATUS@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _BMSR_ANEGCAPABLE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _BMSR_ANEGCAPABLE@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh24:
	adrp	x9, _BMSR_10FULL@GOTPAGE
Lloh25:
	ldr	x9, [x9, _BMSR_10FULL@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w0, w8, w9
	b	LBB0_10
LBB0_8:
Lloh27:
	adrp	x8, _ADVERTISE_10HALF@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ADVERTISE_10HALF@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _ADVERTISE_10FULL@GOTPAGE
Lloh31:
	ldr	x9, [x9, _ADVERTISE_10FULL@GOTPAGEOFF]
LBB0_9:
	ldr	w9, [x9]
	orr	w0, w9, w8
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_11:
Lloh32:
	adrp	x8, _hw@GOTPAGE
Lloh33:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x8, _KERN_DEBUG@GOTPAGE
Lloh36:
	ldr	x8, [x8, _KERN_DEBUG@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	ldr	w3, [x0]
	str	w4, [sp]
Lloh38:
	adrp	x4, l_.str@PAGE
Lloh39:
	add	x4, x4, l_.str@PAGEOFF
Lloh40:
	adrp	x5, l_.str.1@PAGE
Lloh41:
	add	x5, x5, l_.str.1@PAGEOFF
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_mdi_read,8,3                   ; @mdi_read
	.comm	_BMCR_ANENABLE,4,2              ; @BMCR_ANENABLE
	.comm	_BMCR_FULLDPLX,4,2              ; @BMCR_FULLDPLX
	.comm	_BMSR_LSTATUS,4,2               ; @BMSR_LSTATUS
	.comm	_BMSR_ANEGCAPABLE,4,2           ; @BMSR_ANEGCAPABLE
	.comm	_BMSR_10FULL,4,2                ; @BMSR_10FULL
	.comm	_ADVERTISE_10HALF,4,2           ; @ADVERTISE_10HALF
	.comm	_ADVERTISE_10FULL,4,2           ; @ADVERTISE_10FULL
	.comm	_hw,4,2                         ; @hw
	.comm	_KERN_DEBUG,4,2                 ; @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s:addr=%d, reg=%d, data=0x%04X: unimplemented emulation!\n"

l_.str.1:                               ; @.str.1
	.asciz	"READ"

l_.str.2:                               ; @.str.2
	.asciz	"WRITE"

	.no_dead_strip	_mdio_ctrl_phy_mii_emulated
.subsections_via_symbols
