	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phy_mii_ioctl                  ## -- Begin function phy_mii_ioctl
	.p2align	4, 0x90
_phy_mii_ioctl:                         ## @phy_mii_ioctl
	.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
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_if_mii
	addl	$-128, %ebx
	cmpl	$3, %ebx
	ja	LBB0_12
## %bb.1:
	movq	%rax, %r15
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movl	(%r15), %r14d
	movl	4(%r15), %edi
	callq	_mdio_phy_id_is_c45
	movl	4(%r15), %ebx
	testl	%eax, %eax
	je	LBB0_20
## %bb.3:
	movl	%ebx, %edi
	callq	_mdio_phy_id_prtad
	movl	%eax, %ebx
	movl	4(%r15), %edi
	callq	_mdio_phy_id_devad
	movl	%eax, %r12d
	movq	_MII_ADDR_C45@GOTPCREL(%rip), %rax
	shll	$16, %r12d
	orl	(%rax), %r12d
	orl	8(%r15), %r12d
	cmpl	8(%r13), %ebx
	jne	LBB0_21
	jmp	LBB0_4
LBB0_9:
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r13, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_12:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_19
LBB0_13:
	movl	4(%r15), %edi
	jmp	LBB0_15
LBB0_14:
	movl	8(%r13), %edi
	movl	%edi, 4(%r15)
LBB0_15:
	callq	_mdio_phy_id_is_c45
	movl	4(%r15), %r14d
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	%r14d, %edi
	callq	_mdio_phy_id_prtad
	movl	%eax, %r14d
	movl	4(%r15), %edi
	callq	_mdio_phy_id_devad
	movl	%eax, %edx
	movq	_MII_ADDR_C45@GOTPCREL(%rip), %rax
	shll	$16, %edx
	orl	(%rax), %edx
	orl	8(%r15), %edx
	jmp	LBB0_18
LBB0_17:
	movl	8(%r15), %edx
LBB0_18:
	movl	12(%r13), %edi
	movl	%r14d, %esi
	callq	_mdiobus_read
	movl	%eax, 12(%r15)
	xorl	%eax, %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movl	8(%r15), %r12d
	cmpl	8(%r13), %ebx
	jne	LBB0_21
LBB0_4:
	cmpl	$132, %r12d
	je	LBB0_22
## %bb.5:
	cmpl	$134, %r12d
	je	LBB0_23
## %bb.6:
	cmpl	$133, %r12d
	jne	LBB0_21
## %bb.7:
	movq	_BMCR_RESET@GOTPCREL(%rip), %rax
	movq	_BMCR_ANENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	20(%r13), %eax
	testl	%r14d, %ecx
	je	LBB0_26
## %bb.8:
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	sete	%r15b
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r13)
	jmp	LBB0_35
LBB0_21:
	xorl	%r15d, %r15d
	jmp	LBB0_35
LBB0_22:
	movl	16(%r13), %edi
	movl	%r14d, %esi
	callq	_mii_ctrl1000_mod_linkmode_adv_t
	jmp	LBB0_24
LBB0_23:
	movl	16(%r13), %edi
	movl	%r14d, %esi
	callq	_mii_adv_mod_linkmode_adv_t
LBB0_24:
	movb	$1, %r15b
LBB0_35:
	movl	12(%r13), %edi
	movl	%ebx, %esi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	callq	_mdiobus_write
	cmpl	8(%r13), %ebx
	jne	LBB0_39
## %bb.36:
	cmpl	$133, %r12d
	jne	LBB0_39
## %bb.37:
	movq	_BMCR_RESET@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_39
## %bb.38:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phy_init_hw                    ## TAILCALL
LBB0_39:
	xorl	%eax, %eax
	testb	%r15b, %r15b
	je	LBB0_19
## %bb.40:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phy_start_aneg                 ## TAILCALL
LBB0_26:
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	sete	%r15b
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r13)
	movq	_BMCR_FULLDPLX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	jne	LBB0_28
## %bb.27:
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rax
	jmp	LBB0_29
LBB0_28:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
LBB0_29:
	movl	(%rax), %eax
	movl	%eax, 28(%r13)
	movq	_BMCR_SPEED1000@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_31
## %bb.30:
	movq	_SPEED_1000@GOTPCREL(%rip), %rax
	jmp	LBB0_34
LBB0_31:
	movq	_BMCR_SPEED100@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_33
## %bb.32:
	movq	_SPEED_100@GOTPCREL(%rip), %rax
	jmp	LBB0_34
LBB0_33:
	movq	_SPEED_10@GOTPCREL(%rip), %rax
LBB0_34:
	movl	(%rax), %eax
	movl	%eax, 24(%r13)
	jmp	LBB0_35
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_9
	.long	L0_0_set_13
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_MII_ADDR_C45,4,2               ## @MII_ADDR_C45
	.comm	_BMCR_RESET,4,2                 ## @BMCR_RESET
	.comm	_BMCR_ANENABLE,4,2              ## @BMCR_ANENABLE
	.comm	_AUTONEG_ENABLE,4,2             ## @AUTONEG_ENABLE
	.comm	_AUTONEG_DISABLE,4,2            ## @AUTONEG_DISABLE
	.comm	_BMCR_FULLDPLX,4,2              ## @BMCR_FULLDPLX
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ## @DUPLEX_HALF
	.comm	_BMCR_SPEED1000,4,2             ## @BMCR_SPEED1000
	.comm	_SPEED_1000,4,2                 ## @SPEED_1000
	.comm	_BMCR_SPEED100,4,2              ## @BMCR_SPEED100
	.comm	_SPEED_100,4,2                  ## @SPEED_100
	.comm	_SPEED_10,4,2                   ## @SPEED_10
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phy_mii_ioctl                  ; -- Begin function phy_mii_ioctl
	.p2align	2
_phy_mii_ioctl:                         ; @phy_mii_ioctl
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_if_mii
	sub	w8, w21, #128
	cmp	w8, #3
	b.hi	LBB0_7
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldp	w20, w0, [x22]
	bl	_mdio_phy_id_is_c45
	ldr	w21, [x22, #4]
	cbz	w0, LBB0_15
; %bb.3:
	mov	x0, x21
	bl	_mdio_phy_id_prtad
	mov	x21, x0
	ldr	w0, [x22, #4]
	bl	_mdio_phy_id_devad
Lloh2:
	adrp	x8, _MII_ADDR_C45@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MII_ADDR_C45@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w8, w8, w0, lsl #16
	ldr	w9, [x22, #8]
	orr	w22, w8, w9
	b	LBB0_16
LBB0_4:
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	x2, [x8]
	cbz	x2, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	x1, x20
	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
	br	x2
LBB0_7:
Lloh5:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_8:
	ldr	w0, [x22, #4]
	b	LBB0_10
LBB0_9:
	ldr	w0, [x19, #8]
	str	w0, [x22, #4]
LBB0_10:
	bl	_mdio_phy_id_is_c45
	ldr	w20, [x22, #4]
	cbz	w0, LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_mdio_phy_id_prtad
	mov	x20, x0
	ldr	w0, [x22, #4]
	bl	_mdio_phy_id_devad
Lloh8:
	adrp	x8, _MII_ADDR_C45@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MII_ADDR_C45@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w8, w8, w0, lsl #16
	ldr	w9, [x22, #8]
	orr	w2, w8, w9
	b	LBB0_13
LBB0_12:
	ldr	w2, [x22, #8]
LBB0_13:
	ldr	w0, [x19, #12]
	mov	x1, x20
	bl	_mdiobus_read
	mov	x8, x0
	mov	w0, #0
	str	w8, [x22, #12]
LBB0_14:
	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
LBB0_15:
	ldr	w22, [x22, #8]
LBB0_16:
	ldr	w8, [x19, #8]
	cmp	w21, w8
	b.ne	LBB0_22
; %bb.17:
	cmp	w22, #132
	b.eq	LBB0_23
; %bb.18:
	cmp	w22, #134
	b.eq	LBB0_24
; %bb.19:
	cmp	w22, #133
	b.ne	LBB0_22
; %bb.20:
Lloh11:
	adrp	x8, _BMCR_RESET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BMCR_RESET@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _BMCR_ANENABLE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _BMCR_ANENABLE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w9, w9, w8
	ldr	w8, [x19, #20]
	tst	w9, w20
	b.eq	LBB0_33
; %bb.21:
Lloh17:
	adrp	x9, _AUTONEG_DISABLE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w23, eq
Lloh20:
	adrp	x8, _AUTONEG_ENABLE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x19, #20]
	b	LBB0_26
LBB0_22:
	mov	w23, #0
	b	LBB0_26
LBB0_23:
	ldr	w0, [x19, #16]
	mov	x1, x20
	bl	_mii_ctrl1000_mod_linkmode_adv_t
	b	LBB0_25
LBB0_24:
	ldr	w0, [x19, #16]
	mov	x1, x20
	bl	_mii_adv_mod_linkmode_adv_t
LBB0_25:
	mov	w23, #1
LBB0_26:
	ldr	w0, [x19, #12]
	mov	x1, x21
	mov	x2, x22
	mov	x3, x20
	bl	_mdiobus_write
	ldr	w8, [x19, #8]
	cmp	w21, w8
	b.ne	LBB0_30
; %bb.27:
	cmp	w22, #133
	b.ne	LBB0_30
; %bb.28:
Lloh23:
	adrp	x8, _BMCR_RESET@GOTPAGE
Lloh24:
	ldr	x8, [x8, _BMCR_RESET@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_30
; %bb.29:
	mov	x0, x19
	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
	b	_phy_init_hw
LBB0_30:
	cbz	w23, LBB0_32
; %bb.31:
	mov	x0, x19
	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
	b	_phy_start_aneg
LBB0_32:
	mov	w0, #0
	b	LBB0_14
LBB0_33:
Lloh26:
	adrp	x9, _AUTONEG_ENABLE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	cmp	w8, w9
Lloh29:
	adrp	x8, _AUTONEG_DISABLE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AUTONEG_DISABLE@GOTPAGEOFF]
	cset	w23, eq
Lloh31:
	ldr	w8, [x8]
	str	w8, [x19, #20]
Lloh32:
	adrp	x8, _BMCR_FULLDPLX@GOTPAGE
Lloh33:
	ldr	x8, [x8, _BMCR_FULLDPLX@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	adrp	x9, _DUPLEX_HALF@GOTPAGE
Lloh36:
	ldr	x9, [x9, _DUPLEX_HALF@GOTPAGEOFF]
Lloh37:
	adrp	x10, _DUPLEX_FULL@GOTPAGE
Lloh38:
	ldr	x10, [x10, _DUPLEX_FULL@GOTPAGEOFF]
	tst	w8, w20
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x19, #28]
Lloh39:
	adrp	x8, _BMCR_SPEED1000@GOTPAGE
Lloh40:
	ldr	x8, [x8, _BMCR_SPEED1000@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_35
; %bb.34:
Lloh42:
	adrp	x8, _SPEED_1000@GOTPAGE
Lloh43:
	ldr	x8, [x8, _SPEED_1000@GOTPAGEOFF]
	b	LBB0_38
LBB0_35:
Lloh44:
	adrp	x8, _BMCR_SPEED100@GOTPAGE
Lloh45:
	ldr	x8, [x8, _BMCR_SPEED100@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_37
; %bb.36:
Lloh47:
	adrp	x8, _SPEED_100@GOTPAGE
Lloh48:
	ldr	x8, [x8, _SPEED_100@GOTPAGEOFF]
	b	LBB0_38
LBB0_37:
Lloh49:
	adrp	x8, _SPEED_10@GOTPAGE
Lloh50:
	ldr	x8, [x8, _SPEED_10@GOTPAGEOFF]
LBB0_38:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	b	LBB0_26
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh49, Lloh50
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_MII_ADDR_C45,4,2               ; @MII_ADDR_C45
	.comm	_BMCR_RESET,4,2                 ; @BMCR_RESET
	.comm	_BMCR_ANENABLE,4,2              ; @BMCR_ANENABLE
	.comm	_AUTONEG_ENABLE,4,2             ; @AUTONEG_ENABLE
	.comm	_AUTONEG_DISABLE,4,2            ; @AUTONEG_DISABLE
	.comm	_BMCR_FULLDPLX,4,2              ; @BMCR_FULLDPLX
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ; @DUPLEX_HALF
	.comm	_BMCR_SPEED1000,4,2             ; @BMCR_SPEED1000
	.comm	_SPEED_1000,4,2                 ; @SPEED_1000
	.comm	_BMCR_SPEED100,4,2              ; @BMCR_SPEED100
	.comm	_SPEED_100,4,2                  ; @SPEED_100
	.comm	_SPEED_10,4,2                   ; @SPEED_10
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
.subsections_via_symbols
