	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netdev_ioctl
_netdev_ioctl:                          ## @netdev_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, %ebx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_if_mii
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_netdev_priv
	cmpl	$128, %ebx
	je	LBB0_9
## %bb.1:
	cmpl	$129, %ebx
	je	LBB0_4
## %bb.2:
	cmpl	$130, %ebx
	jne	LBB0_14
## %bb.3:
	movl	(%rax), %ecx
	movl	%ecx, (%r15)
LBB0_4:
	movl	(%r14), %ecx
	movq	_PORT_TP@GOTPCREL(%rip), %rdx
	movl	(%r15), %esi
	andl	$31, %esi
	cmpl	(%rdx), %ecx
	jne	LBB0_7
## %bb.5:
	cmpl	(%rax), %esi
	jne	LBB0_15
## %bb.6:
	movl	4(%r15), %esi
	andl	$31, %esi
	movq	%r14, %rdi
	callq	_mdio_read
	jmp	LBB0_8
LBB0_7:
	movq	%r14, %rdi
	callq	_move_int_phy
	movl	(%r15), %esi
	movl	4(%r15), %edx
	andl	$31, %esi
	andl	$31, %edx
	movq	%r14, %rdi
	callq	_miiport_read
LBB0_8:
	movl	%eax, 12(%r15)
	jmp	LBB0_20
LBB0_9:
	movl	(%r14), %edx
	movq	_PORT_TP@GOTPCREL(%rip), %rdi
	movl	(%r15), %esi
	andl	$31, %esi
	movl	(%rax), %ecx
	cmpl	(%rdi), %edx
	jne	LBB0_16
## %bb.10:
	xorl	%ebx, %ebx
	cmpl	%ecx, %esi
	jne	LBB0_21
## %bb.11:
	movl	4(%r15), %esi
	movl	8(%r15), %edx
	andl	$31, %esi
	movq	_MII_ADVERTISE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %esi
	jne	LBB0_13
## %bb.12:
	movl	%edx, 4(%rax)
LBB0_13:
	movq	%r14, %rdi
	callq	_mdio_write
	jmp	LBB0_21
LBB0_14:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_21
LBB0_15:
	movl	$0, 12(%r15)
	jmp	LBB0_20
LBB0_16:
	cmpl	%ecx, %esi
	jne	LBB0_19
## %bb.17:
	movl	4(%r15), %ecx
	andl	$31, %ecx
	movq	_MII_ADVERTISE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_19
## %bb.18:
	movl	8(%r15), %ecx
	movl	%ecx, 4(%rax)
LBB0_19:
	movq	%r14, %rdi
	callq	_move_int_phy
	movl	(%r15), %esi
	movl	4(%r15), %edx
	andl	$31, %esi
	andl	$31, %edx
	movl	8(%r15), %ecx
	movq	%r14, %rdi
	callq	_miiport_write
LBB0_20:
	xorl	%ebx, %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_TP,4,2                    ## @PORT_TP
	.comm	_MII_ADVERTISE,4,2              ## @MII_ADVERTISE
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_netdev_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netdev_ioctl
_netdev_ioctl:                          ; @netdev_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	x19, x0
	mov	x0, x1
	bl	_if_mii
	mov	x20, x0
	mov	x0, x19
	bl	_netdev_priv
	cmp	w21, #128
	b.eq	LBB0_9
; %bb.1:
	cmp	w21, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w21, #130
	b.ne	LBB0_14
; %bb.3:
	ldr	w8, [x0]
	str	w8, [x20]
LBB0_4:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _PORT_TP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PORT_TP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	w10, [x20]
	and	w1, w10, #0x1f
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.5:
	ldr	w8, [x0]
	cmp	w1, w8
	b.ne	LBB0_15
; %bb.6:
	ldr	w8, [x20, #4]
	and	w1, w8, #0x1f
	mov	x0, x19
	bl	_mdio_read
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_move_int_phy
	ldp	w8, w9, [x20]
	and	w1, w8, #0x1f
	and	w2, w9, #0x1f
	mov	x0, x19
	bl	_miiport_read
LBB0_8:
	mov	x8, x0
	mov	w0, #0
	str	w8, [x20, #12]
	b	LBB0_21
LBB0_9:
Lloh3:
	adrp	x8, _PORT_TP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PORT_TP@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh5:
	ldr	w10, [x8]
	ldr	w8, [x20]
	and	w1, w8, #0x1f
	ldr	w8, [x0]
	cmp	w9, w10
	b.ne	LBB0_16
; %bb.10:
	cmp	w1, w8
	b.ne	LBB0_20
; %bb.11:
	ldp	w8, w2, [x20, #4]
	and	w1, w8, #0x1f
Lloh6:
	adrp	x8, _MII_ADVERTISE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MII_ADVERTISE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w1, w8
	b.ne	LBB0_13
; %bb.12:
	str	w2, [x0, #4]
LBB0_13:
	mov	x0, x19
	bl	_mdio_write
	b	LBB0_20
LBB0_14:
Lloh9:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_21
LBB0_15:
	mov	w0, #0
	str	wzr, [x20, #12]
	b	LBB0_21
LBB0_16:
	cmp	w1, w8
	b.ne	LBB0_19
; %bb.17:
	ldr	w8, [x20, #4]
	and	w8, w8, #0x1f
Lloh12:
	adrp	x9, _MII_ADVERTISE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MII_ADVERTISE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_19
; %bb.18:
	ldr	w8, [x20, #8]
	str	w8, [x0, #4]
LBB0_19:
	mov	x0, x19
	bl	_move_int_phy
	ldp	w8, w9, [x20]
	and	w1, w8, #0x1f
	and	w2, w9, #0x1f
	ldr	w3, [x20, #8]
	mov	x0, x19
	bl	_miiport_write
LBB0_20:
	mov	w0, #0
LBB0_21:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_TP,4,2                    ; @PORT_TP
	.comm	_MII_ADVERTISE,4,2              ; @MII_ADVERTISE
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_netdev_ioctl
.subsections_via_symbols
