	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_rockchip_set_mac_speed
_emac_rockchip_set_mac_speed:           ## @emac_rockchip_set_mac_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	movq	(%rdi), %rsi
	movl	(%rsi), %eax
	cmpl	$100, %ebx
	je	LBB0_4
## %bb.1:
	cmpl	$10, %ebx
	jne	LBB0_3
## %bb.2:
	addb	$16, %al
	movl	$1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	jmp	LBB0_5
LBB0_4:
	leal	16(%rax), %ecx
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	btsl	%eax, %edx
LBB0_5:
	movl	8(%rdi), %edi
	movl	4(%rsi), %esi
	callq	_regmap_write
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"speed %u not supported\n"

L_.str.1:                               ## @.str.1
	.asciz	"unable to apply speed %u to grf (%d)\n"

	.no_dead_strip	_emac_rockchip_set_mac_speed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emac_rockchip_set_mac_speed
_emac_rockchip_set_mac_speed:           ; @emac_rockchip_set_mac_speed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	ldr	x8, [x0]
	ldr	w9, [x8]
	cmp	w1, #100
	b.eq	LBB0_3
; %bb.1:
	cmp	w19, #10
	b.ne	LBB0_7
; %bb.2:
	add	w9, w9, #16
	mov	w10, #1
	lsl	w2, w10, w9
	b	LBB0_4
LBB0_3:
	add	w10, w9, #16
	mov	w11, #1
	lsl	w10, w11, w10
	lsl	w9, w11, w9
	orr	w2, w10, w9
LBB0_4:
	ldr	w0, [x0, #8]
	ldr	w1, [x8, #4]
	bl	_regmap_write
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_6
; %bb.5:
	str	x0, [sp]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_pr_err
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_pr_err
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"speed %u not supported\n"

l_.str.1:                               ; @.str.1
	.asciz	"unable to apply speed %u to grf (%d)\n"

	.no_dead_strip	_emac_rockchip_set_mac_speed
.subsections_via_symbols
