	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	callq	_netdev_priv
	movq	%rax, %r15
	leal	-128(%r14), %eax
	cmpl	$2, %eax
	jae	LBB0_1
## %bb.4:
	movl	(%rbx), %edi
	callq	_mdio_phy_id_is_c45
	movl	(%rbx), %r12d
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%r12d, %edi
	callq	_mdio_phy_id_prtad
	movl	%eax, %r12d
	movl	(%rbx), %edi
	callq	_mdio_phy_id_devad
	movl	%eax, %ecx
	jmp	LBB0_8
LBB0_1:
	cmpl	$130, %r14d
	jne	LBB0_10
## %bb.2:
	movl	(%r15), %eax
	testl	%eax, %eax
	js	LBB0_10
## %bb.3:
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_10:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_6:
	cmpl	$31, %r12d
	jg	LBB0_13
## %bb.7:
	andl	$31, 4(%rbx)
	xorl	%ecx, %ecx
LBB0_8:
	movq	8(%r15), %rdi
	movl	(%rdi), %esi
	movl	4(%rbx), %r8d
	cmpl	$129, %r14d
	jne	LBB0_9
## %bb.14:
	addq	$12, %rbx
	movl	%r12d, %edx
	movq	%rbx, %r9
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_t4_mdio_rd                     ## TAILCALL
LBB0_9:
	movl	8(%rbx), %r9d
	movl	%r12d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_t4_mdio_wr                     ## TAILCALL
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_11:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.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	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	x19, x1
	bl	_netdev_priv
	mov	x21, x0
	sub	w8, w20, #128
	cmp	w8, #2
	b.hs	LBB0_3
; %bb.1:
	ldr	w0, [x19]
	bl	_mdio_phy_id_is_c45
	ldr	w22, [x19]
	cbz	w0, LBB0_7
; %bb.2:
	mov	x0, x22
	bl	_mdio_phy_id_prtad
	mov	x22, x0
	ldr	w0, [x19]
	bl	_mdio_phy_id_devad
	mov	x3, x0
	b	LBB0_9
LBB0_3:
	cmp	w20, #130
	b.ne	LBB0_6
; %bb.4:
	ldr	w8, [x21]
	tbnz	w8, #31, LBB0_6
; %bb.5:
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_14
LBB0_6:
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_13
LBB0_7:
	cmp	w22, #31
	b.gt	LBB0_12
; %bb.8:
	mov	w3, #0
	ldr	w8, [x19, #4]
	and	w8, w8, #0x1f
	str	w8, [x19, #4]
LBB0_9:
	ldr	x0, [x21, #8]
	ldr	w1, [x0]
	ldr	w4, [x19, #4]
	cmp	w20, #129
	b.ne	LBB0_11
; %bb.10:
	add	x5, x19, #12
	mov	x2, x22
	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
	b	_t4_mdio_rd
LBB0_11:
	ldr	w5, [x19, #8]
	mov	x2, x22
	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
	b	_t4_mdio_wr
LBB0_12:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_cxgb_ioctl
.subsections_via_symbols
