	.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	%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, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r13
	callq	_netdev_priv
	movq	%rax, %r15
	movq	(%r13), %r14
	movq	%rbx, %rdi
	callq	_if_mii
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_netif_running
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_GENCTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r14, %rsi
	movl	$512, %edi                      ## imm = 0x200
	callq	_outl
	movq	_NVCTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r14, %rdi
	callq	_inl
                                        ## kill: def $eax killed $eax def $rax
	andl	$-18493, %eax                   ## imm = 0xB7C3
	leal	18432(%rax), %edi
	movq	_NVCTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r14, %rsi
	callq	_outl
LBB0_2:
	movq	%r15, %rdi
	callq	_spin_lock_irq
	movq	%r15, %rdi
	addq	$4, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	callq	_generic_mii_ioctl
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	movq	%r13, %rdi
	callq	_netif_running
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_GENCTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r14, %rsi
	movl	$8, %edi
	callq	_outl
	movq	_NVCTL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	%r14, %rdi
	callq	_inl
	andl	$-18493, %eax                   ## imm = 0xB7C3
	addq	(%rbx), %r14
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_outl
LBB0_4:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GENCTL,8,3                     ## @GENCTL
	.comm	_NVCTL,8,3                      ## @NVCTL
	.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	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	x22, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x23, [x19]
	mov	x0, x22
	bl	_if_mii
	mov	x22, x0
	mov	x0, x19
	bl	_netif_running
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _GENCTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GENCTL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x1, x8, x23
	mov	w0, #512
	bl	_outl
Lloh3:
	adrp	x24, _NVCTL@GOTPAGE
Lloh4:
	ldr	x24, [x24, _NVCTL@GOTPAGEOFF]
	ldr	x8, [x24]
	add	x0, x8, x23
	bl	_inl
	and	w8, w0, #0xffffffc3
	mov	w9, #18432
	orr	w0, w8, w9
	ldr	x8, [x24]
	add	x1, x8, x23
	bl	_outl
LBB0_2:
	mov	x0, x20
	bl	_spin_lock_irq
	add	x0, x20, #4
	mov	x1, x22
	mov	x2, x21
	mov	x3, #0
	bl	_generic_mii_ioctl
	mov	x21, x0
	mov	x0, x20
	bl	_spin_unlock_irq
	mov	x0, x19
	bl	_netif_running
	cbnz	w0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _GENCTL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GENCTL@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	add	x1, x8, x23
	mov	w0, #8
	bl	_outl
Lloh8:
	adrp	x19, _NVCTL@GOTPAGE
Lloh9:
	ldr	x19, [x19, _NVCTL@GOTPAGEOFF]
	ldr	x8, [x19]
	add	x0, x8, x23
	bl	_inl
	mov	w8, #-18493
	and	w0, w0, w8
	ldr	x8, [x19]
	add	x1, x8, x23
	bl	_outl
LBB0_4:
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GENCTL,8,3                     ; @GENCTL
	.comm	_NVCTL,8,3                      ; @NVCTL
	.no_dead_strip	_netdev_ioctl
.subsections_via_symbols
