	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_ioctl
_tg3_ioctl:                             ## @tg3_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, %ebx
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_if_mii
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_netdev_priv
	movq	%rax, %r12
	movq	_USE_PHYLIB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_tg3_flag
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_TG3_PHYFLG_IS_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_2
## %bb.3:
	movq	16(%r12), %rax
	movq	(%rax), %rax
	movq	_TG3_PHY_MII_ADDR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phy_mii_ioctl                  ## TAILCALL
LBB0_4:
	addl	$-128, %ebx
	cmpl	$3, %ebx
	ja	LBB0_14
## %bb.5:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_10:
	movq	_TG3_PHYFLG_PHY_SERDES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	jne	LBB0_14
## %bb.11:
	movq	%r15, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_2
## %bb.12:
	movq	%r12, %rbx
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	movl	(%r14), %esi
	movl	4(%r14), %edx
	andl	$31, %esi
	andl	$31, %edx
	movl	8(%r14), %ecx
	movq	%r12, %rdi
	callq	___tg3_writephy
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	movl	%r14d, %eax
	jmp	LBB0_17
LBB0_13:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$129, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tg3_hwtstamp_ioctl             ## TAILCALL
LBB0_6:
	movl	4(%r12), %eax
	movl	%eax, (%r14)
LBB0_7:
	movq	_TG3_PHYFLG_PHY_SERDES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_8
LBB0_14:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_8:
	movq	%r15, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_2
## %bb.9:
	movq	%r12, %r15
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_spin_lock_bh
	movl	(%r14), %esi
	movl	4(%r14), %edx
	andl	$31, %esi
	andl	$31, %edx
	leaq	-44(%rbp), %rcx
	movq	%r12, %rdi
	callq	___tg3_readphy
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	movl	-44(%rbp), %eax
	movl	%eax, 12(%r14)
	jmp	LBB0_16
LBB0_2:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
LBB0_15:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_13
	.long	L0_0_set_7
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_USE_PHYLIB,4,2                 ## @USE_PHYLIB
	.comm	_TG3_PHYFLG_IS_CONNECTED,4,2    ## @TG3_PHYFLG_IS_CONNECTED
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_TG3_PHY_MII_ADDR,8,3           ## @TG3_PHY_MII_ADDR
	.comm	_TG3_PHYFLG_PHY_SERDES,4,2      ## @TG3_PHYFLG_PHY_SERDES
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_tg3_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_ioctl
_tg3_ioctl:                             ; @tg3_ioctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x2
	mov	x23, x1
	mov	x21, x0
	mov	x0, x1
	bl	_if_mii
	mov	x19, x0
	mov	x0, x21
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _USE_PHYLIB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USE_PHYLIB@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_tg3_flag
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _TG3_PHYFLG_IS_CONNECTED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TG3_PHYFLG_IS_CONNECTED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.2:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _TG3_PHY_MII_ADDR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TG3_PHY_MII_ADDR@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	mov	x1, x19
	mov	x2, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_phy_mii_ioctl
LBB0_3:
	sub	w8, w22, #128
	cmp	w8, #3
	b.hi	LBB0_11
; %bb.4:
Lloh9:
	adrp	x9, lJTI0_0@PAGE
Lloh10:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
	ldr	w8, [x20]
Lloh11:
	adrp	x9, _TG3_PHYFLG_PHY_SERDES@GOTPAGE
Lloh12:
	ldr	x9, [x9, _TG3_PHYFLG_PHY_SERDES@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_11
; %bb.6:
	mov	x0, x21
	bl	_netif_running
	cbz	w0, LBB0_14
; %bb.7:
	add	x21, x20, #8
	mov	x0, x21
	bl	_spin_lock_bh
	ldp	w8, w9, [x19]
	and	w1, w8, #0x1f
	and	w2, w9, #0x1f
	ldr	w3, [x19, #8]
	mov	x0, x20
	bl	___tg3_writephy
	mov	x19, x0
	mov	x0, x21
	bl	_spin_unlock_bh
	mov	x0, x19
	b	LBB0_17
LBB0_8:
	mov	x0, x21
	mov	x1, x23
	mov	w2, #129
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_tg3_hwtstamp_ioctl
LBB0_9:
	ldr	w8, [x20, #4]
	str	w8, [x19]
LBB0_10:
	ldr	w8, [x20]
Lloh14:
	adrp	x9, _TG3_PHYFLG_PHY_SERDES@GOTPAGE
Lloh15:
	ldr	x9, [x9, _TG3_PHYFLG_PHY_SERDES@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
LBB0_11:
Lloh17:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_15
LBB0_12:
	mov	x0, x21
	bl	_netif_running
	cbz	w0, LBB0_14
; %bb.13:
	add	x21, x20, #8
	mov	x0, x21
	bl	_spin_lock_bh
	ldp	w8, w9, [x19]
	and	w1, w8, #0x1f
	and	w2, w9, #0x1f
	add	x3, sp, #12
	mov	x0, x20
	bl	___tg3_readphy
	mov	x20, x0
	mov	x0, x21
	bl	_spin_unlock_bh
	ldr	w8, [sp, #12]
	str	w8, [x19, #12]
	b	LBB0_16
LBB0_14:
Lloh19:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_16:
	mov	x0, x20
LBB0_17:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
                                        ; -- End function
	.comm	_USE_PHYLIB,4,2                 ; @USE_PHYLIB
	.comm	_TG3_PHYFLG_IS_CONNECTED,4,2    ; @TG3_PHYFLG_IS_CONNECTED
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_TG3_PHY_MII_ADDR,8,3           ; @TG3_PHY_MII_ADDR
	.comm	_TG3_PHYFLG_PHY_SERDES,4,2      ; @TG3_PHYFLG_PHY_SERDES
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_tg3_ioctl
.subsections_via_symbols
