	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath79_mii_ctrl_set_speed
_ath79_mii_ctrl_set_speed:              ## @ath79_mii_ctrl_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	testl	%edi, %edi
	je	LBB0_9
## %bb.1:
	movl	(%r14), %eax
	cmpl	$128, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$129, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$130, %eax
	jne	LBB0_7
## %bb.4:
	movq	_AR71XX_MII_CTRL_SPEED_10@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_8
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	_AR71XX_MII_CTRL_SPEED_1000@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_8
LBB0_5:
	movq	_AR71XX_MII_CTRL_SPEED_100@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_8
LBB0_7:
	xorl	%eax, %eax
	callq	_BUG
	movl	4(%r14), %edi
                                        ## implicit-def: $ebx
LBB0_8:
	callq	___raw_readl
	movq	_AR71XX_MII_CTRL_SPEED_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_AR71XX_MII_CTRL_SPEED_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	shll	%cl, %ebx
	notl	%edx
	andl	%eax, %edx
	orl	%edx, %ebx
	movl	4(%r14), %esi
	movl	%ebx, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	___raw_writel                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AR71XX_MII_CTRL_SPEED_10,4,2   ## @AR71XX_MII_CTRL_SPEED_10
	.comm	_AR71XX_MII_CTRL_SPEED_100,4,2  ## @AR71XX_MII_CTRL_SPEED_100
	.comm	_AR71XX_MII_CTRL_SPEED_1000,4,2 ## @AR71XX_MII_CTRL_SPEED_1000
	.comm	_AR71XX_MII_CTRL_SPEED_MASK,4,2 ## @AR71XX_MII_CTRL_SPEED_MASK
	.comm	_AR71XX_MII_CTRL_SPEED_SHIFT,4,2 ## @AR71XX_MII_CTRL_SPEED_SHIFT
	.no_dead_strip	_ath79_mii_ctrl_set_speed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath79_mii_ctrl_set_speed
_ath79_mii_ctrl_set_speed:              ; @ath79_mii_ctrl_set_speed
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #4]
	cbz	w0, LBB0_5
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #129
	b.eq	LBB0_7
; %bb.3:
	cmp	w8, #130
	b.ne	LBB0_8
; %bb.4:
Lloh0:
	adrp	x8, _AR71XX_MII_CTRL_SPEED_10@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR71XX_MII_CTRL_SPEED_10@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	b	LBB0_9
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh3:
	adrp	x8, _AR71XX_MII_CTRL_SPEED_1000@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR71XX_MII_CTRL_SPEED_1000@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	b	LBB0_9
LBB0_7:
Lloh6:
	adrp	x8, _AR71XX_MII_CTRL_SPEED_100@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AR71XX_MII_CTRL_SPEED_100@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	b	LBB0_9
LBB0_8:
	bl	_BUG
	ldr	w0, [x19, #4]
                                        ; implicit-def: $w20
LBB0_9:
	bl	___raw_readl
Lloh9:
	adrp	x8, _AR71XX_MII_CTRL_SPEED_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AR71XX_MII_CTRL_SPEED_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _AR71XX_MII_CTRL_SPEED_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AR71XX_MII_CTRL_SPEED_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	bic	w8, w0, w8
	lsl	w9, w20, w9
	orr	w0, w8, w9
	ldr	w1, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	___raw_writel
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AR71XX_MII_CTRL_SPEED_10,4,2   ; @AR71XX_MII_CTRL_SPEED_10
	.comm	_AR71XX_MII_CTRL_SPEED_100,4,2  ; @AR71XX_MII_CTRL_SPEED_100
	.comm	_AR71XX_MII_CTRL_SPEED_1000,4,2 ; @AR71XX_MII_CTRL_SPEED_1000
	.comm	_AR71XX_MII_CTRL_SPEED_MASK,4,2 ; @AR71XX_MII_CTRL_SPEED_MASK
	.comm	_AR71XX_MII_CTRL_SPEED_SHIFT,4,2 ; @AR71XX_MII_CTRL_SPEED_SHIFT
	.no_dead_strip	_ath79_mii_ctrl_set_speed
.subsections_via_symbols
