	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpmac_ioctl
_cpmac_ioctl:                           ## @cpmac_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, %r12d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%r15), %r15d
	testl	%r15d, %r15d
	je	LBB0_1
## %bb.3:
	movq	_SIOCGMIIPHY@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	je	LBB0_8
## %bb.4:
	movq	_SIOCGMIIREG@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	je	LBB0_8
## %bb.5:
	movq	_SIOCSMIIREG@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	je	LBB0_8
## %bb.6:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_7:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, %rdi
	callq	_if_mii
	movl	%r15d, %edi
	movl	%eax, %esi
	movl	%r12d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phy_mii_ioctl                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SIOCGMIIPHY,4,2                ## @SIOCGMIIPHY
	.comm	_SIOCGMIIREG,4,2                ## @SIOCGMIIREG
	.comm	_SIOCSMIIREG,4,2                ## @SIOCSMIIREG
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_cpmac_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpmac_ioctl
_cpmac_ioctl:                           ; @cpmac_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	x20, x1
	mov	x22, x0
	bl	_netdev_priv
	mov	x21, x0
	mov	x0, x22
	bl	_netif_running
	cbz	w0, LBB0_4
; %bb.1:
	ldr	w21, [x21]
	cbz	w21, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _SIOCGMIIPHY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIOCGMIIPHY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SIOCGMIIREG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SIOCGMIIREG@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _SIOCSMIIREG@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SIOCSMIIREG@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w8, w19
	ccmp	w9, w19, #4, ne
	ccmp	w10, w19, #4, ne
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_if_mii
	mov	x1, x0
	mov	x0, x21
	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	_phy_mii_ioctl
LBB0_4:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SIOCGMIIPHY,4,2                ; @SIOCGMIIPHY
	.comm	_SIOCGMIIREG,4,2                ; @SIOCGMIIREG
	.comm	_SIOCSMIIREG,4,2                ; @SIOCSMIIREG
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_cpmac_ioctl
.subsections_via_symbols
