	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phylink_mii_ioctl              ## -- Begin function phylink_mii_ioctl
	.p2align	4, 0x90
_phylink_mii_ioctl:                     ## @phylink_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_if_mii
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_ASSERT_RTNL
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.1:
	cmpl	$128, %ebx
	je	LBB0_9
## %bb.2:
	cmpl	$130, %ebx
	je	LBB0_5
## %bb.3:
	cmpl	$129, %ebx
	jne	LBB0_10
## %bb.4:
	movl	12(%r14), %esi
	jmp	LBB0_6
LBB0_11:
	cmpl	$128, %ebx
	je	LBB0_17
## %bb.12:
	cmpl	$130, %ebx
	je	LBB0_15
## %bb.13:
	cmpl	$129, %ebx
	jne	LBB0_18
## %bb.14:
	movl	12(%r14), %esi
	jmp	LBB0_16
LBB0_9:
	movl	12(%r14), %esi
	movl	4(%r14), %ecx
	movl	8(%r14), %edx
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phylink_phy_write              ## TAILCALL
LBB0_5:
	movl	(%rdi), %esi
	movl	%esi, 12(%r14)
LBB0_6:
	movl	8(%r14), %edx
	movq	%r15, %rdi
	callq	_phylink_phy_read
	testl	%eax, %eax
	jns	LBB0_8
	jmp	LBB0_19
LBB0_10:
	movq	%r12, %rsi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phy_mii_ioctl                  ## TAILCALL
LBB0_17:
	movl	12(%r14), %esi
	movl	4(%r14), %ecx
	movl	8(%r14), %edx
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phylink_mii_write              ## TAILCALL
LBB0_15:
	movl	$0, 12(%r14)
	xorl	%esi, %esi
LBB0_16:
	movl	8(%r14), %edx
	movq	%r15, %rdi
	callq	_phylink_mii_read
	testl	%eax, %eax
	js	LBB0_19
LBB0_8:
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_18:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_19:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phylink_mii_ioctl              ; -- Begin function phylink_mii_ioctl
	.p2align	2
_phylink_mii_ioctl:                     ; @phylink_mii_ioctl
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	mov	x0, x1
	bl	_if_mii
	mov	x19, x0
	bl	_ASSERT_RTNL
	ldr	x0, [x20]
	cbz	x0, LBB0_5
; %bb.1:
	cmp	w21, #128
	b.eq	LBB0_9
; %bb.2:
	cmp	w21, #130
	b.eq	LBB0_10
; %bb.3:
	cmp	w21, #129
	b.ne	LBB0_12
; %bb.4:
	ldr	w1, [x19, #12]
	b	LBB0_11
LBB0_5:
	cmp	w21, #128
	b.eq	LBB0_13
; %bb.6:
	cmp	w21, #130
	b.eq	LBB0_14
; %bb.7:
	cmp	w21, #129
	b.ne	LBB0_17
; %bb.8:
	ldr	w1, [x19, #12]
	b	LBB0_15
LBB0_9:
	ldp	w2, w1, [x19, #8]
	ldr	w3, [x19, #4]
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_phylink_phy_write
LBB0_10:
	ldr	w1, [x0]
	str	w1, [x19, #12]
LBB0_11:
	ldr	w2, [x19, #8]
	mov	x0, x20
	bl	_phylink_phy_read
	tbz	w0, #31, LBB0_16
	b	LBB0_18
LBB0_12:
	mov	x1, x22
	mov	x2, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_phy_mii_ioctl
LBB0_13:
	ldp	w2, w1, [x19, #8]
	ldr	w3, [x19, #4]
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_phylink_mii_write
LBB0_14:
	mov	w1, #0
	str	wzr, [x19, #12]
LBB0_15:
	ldr	w2, [x19, #8]
	mov	x0, x20
	bl	_phylink_mii_read
	tbnz	w0, #31, LBB0_18
LBB0_16:
	str	w0, [x19]
	mov	w0, #0
	b	LBB0_18
LBB0_17:
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
.subsections_via_symbols
