	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s6gmac_set_rgmii_txclock
_s6gmac_set_rgmii_txclock:              ## @s6gmac_set_rgmii_txclock
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_S6_REG_GREG1@GOTPCREL(%rip), %r14
	movq	_S6_GREG1_PLLSEL@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movq	_S6_GREG1_PLLSEL_GMAC_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_S6_GREG1_PLLSEL_GMAC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	%cl, %edx
	movl	(%rbx), %esi
	cmpl	$10, %esi
	je	LBB0_1
## %bb.2:
	cmpl	$1000, %esi                     ## imm = 0x3E8
	je	LBB0_5
## %bb.3:
	cmpl	$100, %esi
	jne	LBB0_7
## %bb.4:
	movq	_S6_GREG1_PLLSEL_GMAC_25MHZ@GOTPCREL(%rip), %rsi
	jmp	LBB0_6
LBB0_1:
	movq	_S6_GREG1_PLLSEL_GMAC_2500KHZ@GOTPCREL(%rip), %rsi
	jmp	LBB0_6
LBB0_5:
	movq	_S6_GREG1_PLLSEL_GMAC_125MHZ@GOTPCREL(%rip), %rsi
LBB0_6:
	notl	%edx
	andl	%edx, %eax
	movl	(%rsi), %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	orl	%eax, %edi
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S6_REG_GREG1,8,3               ## @S6_REG_GREG1
	.comm	_S6_GREG1_PLLSEL,8,3            ## @S6_GREG1_PLLSEL
	.comm	_S6_GREG1_PLLSEL_GMAC_MASK,4,2  ## @S6_GREG1_PLLSEL_GMAC_MASK
	.comm	_S6_GREG1_PLLSEL_GMAC,4,2       ## @S6_GREG1_PLLSEL_GMAC
	.comm	_S6_GREG1_PLLSEL_GMAC_2500KHZ,4,2 ## @S6_GREG1_PLLSEL_GMAC_2500KHZ
	.comm	_S6_GREG1_PLLSEL_GMAC_25MHZ,4,2 ## @S6_GREG1_PLLSEL_GMAC_25MHZ
	.comm	_S6_GREG1_PLLSEL_GMAC_125MHZ,4,2 ## @S6_GREG1_PLLSEL_GMAC_125MHZ
	.no_dead_strip	_s6gmac_set_rgmii_txclock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s6gmac_set_rgmii_txclock
_s6gmac_set_rgmii_txclock:              ; @s6gmac_set_rgmii_txclock
	.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	x19, x0
Lloh0:
	adrp	x20, _S6_REG_GREG1@GOTPAGE
Lloh1:
	ldr	x20, [x20, _S6_REG_GREG1@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x21, _S6_GREG1_PLLSEL@GOTPAGE
Lloh3:
	ldr	x21, [x21, _S6_GREG1_PLLSEL@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
Lloh4:
	adrp	x8, _S6_GREG1_PLLSEL_GMAC_MASK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _S6_GREG1_PLLSEL_GMAC_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x8]
Lloh7:
	adrp	x8, _S6_GREG1_PLLSEL_GMAC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _S6_GREG1_PLLSEL_GMAC@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w10, [x19]
	cmp	w10, #10
	b.eq	LBB0_4
; %bb.1:
	cmp	w10, #1000
	b.eq	LBB0_5
; %bb.2:
	cmp	w10, #100
	b.ne	LBB0_7
; %bb.3:
Lloh10:
	adrp	x10, _S6_GREG1_PLLSEL_GMAC_25MHZ@GOTPAGE
Lloh11:
	ldr	x10, [x10, _S6_GREG1_PLLSEL_GMAC_25MHZ@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh12:
	adrp	x10, _S6_GREG1_PLLSEL_GMAC_2500KHZ@GOTPAGE
Lloh13:
	ldr	x10, [x10, _S6_GREG1_PLLSEL_GMAC_2500KHZ@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x10, _S6_GREG1_PLLSEL_GMAC_125MHZ@GOTPAGE
Lloh15:
	ldr	x10, [x10, _S6_GREG1_PLLSEL_GMAC_125MHZ@GOTPAGEOFF]
LBB0_6:
	lsl	w9, w9, w8
	bic	w9, w0, w9
	ldr	w10, [x10]
	lsl	w8, w10, w8
	orr	w0, w8, w9
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x1, x9, x8
	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	_writel
LBB0_7:
	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 AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_S6_REG_GREG1,8,3               ; @S6_REG_GREG1
	.comm	_S6_GREG1_PLLSEL,8,3            ; @S6_GREG1_PLLSEL
	.comm	_S6_GREG1_PLLSEL_GMAC_MASK,4,2  ; @S6_GREG1_PLLSEL_GMAC_MASK
	.comm	_S6_GREG1_PLLSEL_GMAC,4,2       ; @S6_GREG1_PLLSEL_GMAC
	.comm	_S6_GREG1_PLLSEL_GMAC_2500KHZ,4,2 ; @S6_GREG1_PLLSEL_GMAC_2500KHZ
	.comm	_S6_GREG1_PLLSEL_GMAC_25MHZ,4,2 ; @S6_GREG1_PLLSEL_GMAC_25MHZ
	.comm	_S6_GREG1_PLLSEL_GMAC_125MHZ,4,2 ; @S6_GREG1_PLLSEL_GMAC_125MHZ
	.no_dead_strip	_s6gmac_set_rgmii_txclock
.subsections_via_symbols
