	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ef4_ioctl
_ef4_ioctl:                             ## @ef4_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_if_mii
	movq	_SIOCGMIIREG@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_SIOCSMIIREG@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jne	LBB0_4
LBB0_2:
	movl	(%rax), %ecx
	movl	%ecx, %edx
	andl	$64512, %edx                    ## imm = 0xFC00
	cmpl	$1024, %edx                     ## imm = 0x400
	jne	LBB0_4
## %bb.3:
	movq	_MDIO_PHY_ID_C45@GOTPCREL(%rip), %rdx
	movl	$1024, %esi                     ## imm = 0x400
	orl	(%rdx), %esi
	xorl	%ecx, %esi
	movl	%esi, (%rax)
LBB0_4:
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mdio_mii_ioctl                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SIOCGMIIREG,4,2                ## @SIOCGMIIREG
	.comm	_SIOCSMIIREG,4,2                ## @SIOCSMIIREG
	.comm	_MDIO_PHY_ID_C45,4,2            ## @MDIO_PHY_ID_C45
	.no_dead_strip	_ef4_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ef4_ioctl
_ef4_ioctl:                             ; @ef4_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	x19, x2
	mov	x21, x1
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x21
	bl	_if_mii
	mov	x1, x0
Lloh0:
	adrp	x8, _SIOCGMIIREG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIOCGMIIREG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SIOCSMIIREG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SIOCSMIIREG@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w19
	ccmp	w9, w19, #4, ne
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x1]
	and	w9, w8, #0xfc00
	cmp	w9, #1024
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x9, _MDIO_PHY_ID_C45@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MDIO_PHY_ID_C45@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w9, w9, #0x400
	eor	w8, w9, w8
	str	w8, [x1]
LBB0_3:
	mov	x0, x20
	mov	x2, x19
	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	_mdio_mii_ioctl
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SIOCGMIIREG,4,2                ; @SIOCGMIIREG
	.comm	_SIOCSMIIREG,4,2                ; @SIOCSMIIREG
	.comm	_MDIO_PHY_ID_C45,4,2            ; @MDIO_PHY_ID_C45
	.no_dead_strip	_ef4_ioctl
.subsections_via_symbols
