	.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, %r13d
	movq	%rsi, %rbx
	callq	_netdev_priv
	movq	%rax, %r12
	movq	16(%rax), %r14
	movq	%rbx, %rdi
	callq	_if_mii
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_down_interruptible
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_2:
	cmpl	$128, %r13d
	je	LBB0_10
## %bb.3:
	cmpl	$129, %r13d
	je	LBB0_6
## %bb.4:
	cmpl	$130, %r13d
	jne	LBB0_15
## %bb.5:
	movl	4(%r12), %eax
	movl	%eax, 8(%r15)
	jmp	LBB0_7
LBB0_10:
	movq	_CAP_NET_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movl	8(%r15), %eax
	cmpl	4(%r12), %eax
	jne	LBB0_8
## %bb.13:
	movl	(%r15), %edx
	cmpl	$6, %edx
	jge	LBB0_8
## %bb.14:
	movq	8(%r12), %rax
	movl	(%rax), %esi
	movl	4(%r15), %ecx
	movq	%r14, %rdi
	callq	_hw_w_phy
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_6:
	movl	8(%r15), %eax
	cmpl	4(%r12), %eax
	jne	LBB0_8
LBB0_7:
	movl	(%r15), %edx
	cmpl	$6, %edx
	jl	LBB0_9
LBB0_8:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_15:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_9:
	movq	8(%r12), %rax
	movl	(%rax), %esi
	addq	$12, %r15
	movq	%r14, %rdi
	movq	%r15, %rcx
	callq	_hw_r_phy
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_11:
	movq	_EPERM@GOTPCREL(%rip), %rax
LBB0_16:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_17:
	movq	%r12, %rdi
	callq	_up
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_EIO,4,2                        ## @EIO
	.comm	_CAP_NET_ADMIN,4,2              ## @CAP_NET_ADMIN
	.comm	_EPERM,4,2                      ## @EPERM
	.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	x22, x2
	mov	x21, x1
	bl	_netdev_priv
	mov	x19, x0
	ldr	x20, [x0, #16]
	mov	x0, x21
	bl	_if_mii
	mov	x21, x0
	mov	x0, x19
	bl	_down_interruptible
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_18
LBB0_2:
	cmp	w22, #128
	b.eq	LBB0_6
; %bb.3:
	cmp	w22, #129
	b.eq	LBB0_10
; %bb.4:
	cmp	w22, #130
	b.ne	LBB0_13
; %bb.5:
	ldr	w8, [x19, #4]
	str	w8, [x21, #8]
	b	LBB0_11
LBB0_6:
Lloh3:
	adrp	x8, _CAP_NET_ADMIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CAP_NET_ADMIN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_15
; %bb.7:
	ldr	w8, [x21, #8]
	ldr	w9, [x19, #4]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.8:
	ldr	w2, [x21]
	cmp	w2, #6
	b.ge	LBB0_12
; %bb.9:
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	ldr	w3, [x21, #4]
	mov	x0, x20
	bl	_hw_w_phy
	mov	w20, #0
	b	LBB0_17
LBB0_10:
	ldr	w8, [x21, #8]
	ldr	w9, [x19, #4]
	cmp	w8, w9
	b.ne	LBB0_12
LBB0_11:
	ldr	w2, [x21]
	cmp	w2, #6
	b.lt	LBB0_14
LBB0_12:
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_16
LBB0_13:
Lloh8:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	add	x3, x21, #12
	mov	x0, x20
	bl	_hw_r_phy
	mov	w20, #0
	b	LBB0_17
LBB0_15:
Lloh10:
	adrp	x8, _EPERM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_17:
	mov	x0, x19
	bl	_up
LBB0_18:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_EIO,4,2                        ; @EIO
	.comm	_CAP_NET_ADMIN,4,2              ; @CAP_NET_ADMIN
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_netdev_ioctl
.subsections_via_symbols
