	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function esw_set_gsc
_esw_set_gsc:                           ## @esw_set_gsc
	.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, %rbx
	movq	_RT305X_ESW_REG_SGC@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_RT305X_ESW_GSC_BC_STROM_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_RT305X_ESW_GSC_BC_STROM_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	movl	(%rdi), %eax
	shll	%cl, %eax
	movl	%eax, %ecx
	callq	_esw_rmw
	movl	(%r14), %esi
	movq	_RT305X_ESW_GSC_LED_FREQ_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_RT305X_ESW_GSC_LED_FREQ_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	movl	4(%rbx), %eax
	shll	%cl, %eax
	movq	%rbx, %rdi
	movl	%eax, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_esw_rmw                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RT305X_ESW_REG_SGC,4,2         ## @RT305X_ESW_REG_SGC
	.comm	_RT305X_ESW_GSC_BC_STROM_MASK,4,2 ## @RT305X_ESW_GSC_BC_STROM_MASK
	.comm	_RT305X_ESW_GSC_BC_STROM_SHIFT,4,2 ## @RT305X_ESW_GSC_BC_STROM_SHIFT
	.comm	_RT305X_ESW_GSC_LED_FREQ_MASK,4,2 ## @RT305X_ESW_GSC_LED_FREQ_MASK
	.comm	_RT305X_ESW_GSC_LED_FREQ_SHIFT,4,2 ## @RT305X_ESW_GSC_LED_FREQ_SHIFT
	.no_dead_strip	_esw_set_gsc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function esw_set_gsc
_esw_set_gsc:                           ; @esw_set_gsc
	.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
Lloh0:
	adrp	x20, _RT305X_ESW_REG_SGC@GOTPAGE
Lloh1:
	ldr	x20, [x20, _RT305X_ESW_REG_SGC@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _RT305X_ESW_GSC_BC_STROM_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RT305X_ESW_GSC_BC_STROM_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _RT305X_ESW_GSC_BC_STROM_SHIFT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RT305X_ESW_GSC_BC_STROM_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	lsl	w2, w8, w9
	ldr	w8, [x0]
	lsl	w3, w8, w9
	bl	_esw_rmw
Lloh8:
	adrp	x8, _RT305X_ESW_GSC_LED_FREQ_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RT305X_ESW_GSC_LED_FREQ_MASK@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _RT305X_ESW_GSC_LED_FREQ_SHIFT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RT305X_ESW_GSC_LED_FREQ_SHIFT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	lsl	w2, w8, w9
	ldr	w8, [x19, #4]
	lsl	w3, w8, w9
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_esw_rmw
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RT305X_ESW_REG_SGC,4,2         ; @RT305X_ESW_REG_SGC
	.comm	_RT305X_ESW_GSC_BC_STROM_MASK,4,2 ; @RT305X_ESW_GSC_BC_STROM_MASK
	.comm	_RT305X_ESW_GSC_BC_STROM_SHIFT,4,2 ; @RT305X_ESW_GSC_BC_STROM_SHIFT
	.comm	_RT305X_ESW_GSC_LED_FREQ_MASK,4,2 ; @RT305X_ESW_GSC_LED_FREQ_MASK
	.comm	_RT305X_ESW_GSC_LED_FREQ_SHIFT,4,2 ; @RT305X_ESW_GSC_LED_FREQ_SHIFT
	.no_dead_strip	_esw_set_gsc
.subsections_via_symbols
