	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_set_speed
_xgbe_set_speed:                        ## @xgbe_set_speed
	.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
	addl	$-128, %esi
	cmpl	$3, %esi
	jae	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movslq	%esi, %rax
	leaq	l_switch.table.xgbe_set_speed(%rip), %rcx
	movl	(%rcx,%rax,4), %r15d
	movq	_MAC_TCR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_SS@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	callq	_XGMAC_IOREAD_BITS
	xorl	%ebx, %ebx
	cmpl	%r15d, %eax
	je	LBB0_4
## %bb.3:
	movl	(%r12), %esi
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_XGMAC_IOWRITE_BITS
	jmp	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MAC_TCR,4,2                    ## @MAC_TCR
	.comm	_SS,4,2                         ## @SS
	.no_dead_strip	_xgbe_set_speed
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.xgbe_set_speed
l_switch.table.xgbe_set_speed:
	.long	2                               ## 0x2
	.long	0                               ## 0x0
	.long	3                               ## 0x3

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_set_speed
_xgbe_set_speed:                        ; @xgbe_set_speed
	.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
	sub	w8, w1, #128
	cmp	w8, #3
	b.hs	LBB0_4
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x9, l_switch.table.xgbe_set_speed@PAGE
Lloh1:
	add	x9, x9, l_switch.table.xgbe_set_speed@PAGEOFF
	ldr	w20, [x9, w8, sxtw #2]
Lloh2:
	adrp	x21, _MAC_TCR@GOTPAGE
Lloh3:
	ldr	x21, [x21, _MAC_TCR@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh4:
	adrp	x22, _SS@GOTPAGE
Lloh5:
	ldr	x22, [x22, _SS@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_XGMAC_IOREAD_BITS
	cmp	w0, w20
	b.eq	LBB0_3
; %bb.2:
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x0, x19
	mov	x3, x20
	bl	_XGMAC_IOWRITE_BITS
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MAC_TCR,4,2                    ; @MAC_TCR
	.comm	_SS,4,2                         ; @SS
	.no_dead_strip	_xgbe_set_speed
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.xgbe_set_speed
l_switch.table.xgbe_set_speed:
	.long	2                               ; 0x2
	.long	0                               ; 0x0
	.long	3                               ; 0x3

.subsections_via_symbols
