	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tlan_ioctl
_tlan_ioctl:                            ## @tlan_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, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_if_mii
	cmpl	$0, 16(%r12)
	je	LBB0_1
## %bb.2:
	cmpl	$128, %r15d
	je	LBB0_8
## %bb.3:
	cmpl	$130, %r15d
	je	LBB0_6
## %bb.4:
	cmpl	$129, %r15d
	jne	LBB0_9
## %bb.5:
	movl	(%rax), %esi
	jmp	LBB0_7
LBB0_1:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_8:
	movl	(%rax), %esi
	movl	4(%rax), %edx
	andl	$31, %esi
	andl	$31, %edx
	movl	8(%rax), %ecx
	movq	%r14, %rdi
	callq	_tlan_mii_write_reg
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_6:
	movq	(%r12), %rcx
	movq	8(%r12), %rdx
	movl	(%rcx,%rdx,4), %esi
	movl	%esi, (%rax)
LBB0_7:
	andl	$31, %esi
	movl	4(%rax), %edx
	andl	$31, %edx
	addq	$12, %rax
	movq	%r14, %rdi
	movq	%rax, %rcx
	callq	_tlan_mii_read_reg
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_9:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
LBB0_10:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_tlan_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tlan_ioctl
_tlan_ioctl:                            ; @tlan_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	x20, x2
	mov	x22, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x21, x0
	mov	x0, x22
	bl	_if_mii
	ldr	w8, [x21, #16]
	cbz	w8, LBB0_5
; %bb.1:
	cmp	w20, #128
	b.eq	LBB0_6
; %bb.2:
	cmp	w20, #130
	b.eq	LBB0_7
; %bb.3:
	cmp	w20, #129
	b.ne	LBB0_9
; %bb.4:
	ldr	w8, [x0]
	b	LBB0_8
LBB0_5:
Lloh0:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
	ldp	w8, w9, [x0]
	and	w1, w8, #0x1f
	and	w2, w9, #0x1f
	ldr	w3, [x0, #8]
	mov	x0, x19
	bl	_tlan_mii_write_reg
	mov	w0, #0
	b	LBB0_11
LBB0_7:
	ldp	x8, x9, [x21]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [x0]
LBB0_8:
	and	w1, w8, #0x1f
	ldr	w8, [x0, #4]
	and	w2, w8, #0x1f
	add	x3, x0, #12
	mov	x0, x19
	bl	_tlan_mii_read_reg
	mov	w0, #0
	b	LBB0_11
LBB0_9:
Lloh2:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_tlan_ioctl
.subsections_via_symbols
