	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxgb_ioctl
_cxgb_ioctl:                            ## @cxgb_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, %r13
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_if_mii
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	leal	-128(%r12), %eax
	cmpl	$2, %eax
	jb	LBB0_4
## %bb.1:
	cmpl	$130, %r12d
	je	LBB0_9
## %bb.2:
	cmpl	$131, %r12d
	jne	LBB0_10
## %bb.3:
	movl	(%r13), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cxgb_extension_ioctl           ## TAILCALL
LBB0_4:
	movq	8(%r15), %rdi
	callq	_is_10G
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:
	movl	(%r14), %edi
	callq	_mdio_phy_id_is_c45
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movl	(%r14), %esi
	testl	$7936, %esi                     ## imm = 0x1F00
	je	LBB0_9
## %bb.7:
	movl	%esi, %eax
	andl	$57568, %eax                    ## imm = 0xE0E0
	jne	LBB0_9
## %bb.8:
	movl	%esi, %edi
	sarl	$8, %edi
	andl	$31, %esi
	callq	_mdio_phy_id_c45
	movl	%eax, (%r14)
LBB0_9:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mdio_mii_ioctl                 ## TAILCALL
LBB0_10:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_cxgb_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxgb_ioctl
_cxgb_ioctl:                            ; @cxgb_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	x19, x2
	mov	x23, x1
	mov	x22, x0
	mov	x0, x1
	bl	_if_mii
	mov	x20, x0
	mov	x0, x22
	bl	_netdev_priv
	mov	x21, x0
	sub	w8, w19, #128
	cmp	w8, #2
	b.lo	LBB0_4
; %bb.1:
	cmp	w19, #130
	b.eq	LBB0_9
; %bb.2:
	cmp	w19, #131
	b.ne	LBB0_10
; %bb.3:
	ldr	w1, [x23]
	mov	x0, x22
	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
	b	_cxgb_extension_ioctl
LBB0_4:
	ldr	x0, [x21, #8]
	bl	_is_10G
	cbz	w0, LBB0_9
; %bb.5:
	ldr	w0, [x20]
	bl	_mdio_phy_id_is_c45
	cbnz	w0, LBB0_9
; %bb.6:
	ldr	w8, [x20]
	tst	w8, #0x1f00
	b.eq	LBB0_9
; %bb.7:
	mov	w9, #57568
	and	w9, w8, w9
	cbnz	w9, LBB0_9
; %bb.8:
	asr	w0, w8, #8
	and	w1, w8, #0x1f
	bl	_mdio_phy_id_c45
	str	w0, [x20]
LBB0_9:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	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
	b	_mdio_mii_ioctl
LBB0_10:
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_cxgb_ioctl
.subsections_via_symbols
