	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl88ee_sw_led_on              ## -- Begin function rtl88ee_sw_led_on
	.p2align	4, 0x90
_rtl88ee_sw_led_on:                     ## @rtl88ee_sw_led_on
	.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
	movq	%rsi, %r14
	callq	_rtl_priv
	movq	%rax, %r13
	movq	_COMP_LED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_REG_LEDCFG2@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r8d
	movl	(%r14), %r9d
	leaq	L_.str(%rip), %rcx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	(%r14), %r8d
	cmpl	$128, %r8d
	je	LBB0_4
## %bb.1:
	cmpl	$130, %r8d
	je	LBB0_6
## %bb.2:
	cmpl	$129, %r8d
	jne	LBB0_5
## %bb.3:
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_rtl_read_byte
	movl	%eax, %r15d
	movl	(%rbx), %r12d
	andl	$240, %r15d
	movl	$5, %edi
	callq	_BIT
	movl	%eax, %ebx
	movl	$6, %edi
	callq	_BIT
	orl	%eax, %ebx
	orl	%r15d, %ebx
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_rtl_write_byte
	jmp	LBB0_6
LBB0_4:
	movq	_REG_LEDCFG1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_rtl_read_byte
	movl	(%rbx), %esi
	andl	$16, %eax
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_rtl_write_byte
	jmp	LBB0_6
LBB0_5:
	movq	_COMP_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
LBB0_6:
	movl	$1, 4(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMP_LED,4,2                   ## @COMP_LED
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LedAddr:%X ledpin=%d\n"

	.comm	_REG_LEDCFG2,4,2                ## @REG_LEDCFG2
	.comm	_REG_LEDCFG1,4,2                ## @REG_LEDCFG1
	.comm	_COMP_ERR,4,2                   ## @COMP_ERR
L_.str.1:                               ## @.str.1
	.asciz	"switch case %#x not processed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl88ee_sw_led_on              ; -- Begin function rtl88ee_sw_led_on
	.p2align	2
_rtl88ee_sw_led_on:                     ; @rtl88ee_sw_led_on
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	bl	_rtl_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _COMP_LED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMP_LED@GOTPAGEOFF]
Lloh2:
	adrp	x22, _DBG_LOUD@GOTPAGE
Lloh3:
	ldr	x22, [x22, _DBG_LOUD@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w2, [x22]
Lloh5:
	adrp	x21, _REG_LEDCFG2@GOTPAGE
Lloh6:
	ldr	x21, [x21, _REG_LEDCFG2@GOTPAGEOFF]
	ldr	w4, [x21]
	ldr	w8, [x19]
Lloh7:
	adrp	x3, l_.str@PAGE
Lloh8:
	add	x3, x3, l_.str@PAGEOFF
	str	x8, [sp]
	bl	_RT_TRACE
	ldr	w4, [x19]
	cmp	w4, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w4, #130
	b.eq	LBB0_6
; %bb.2:
	cmp	w4, #129
	b.ne	LBB0_5
; %bb.3:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_rtl_read_byte
	ldr	w21, [x21]
	and	w22, w0, #0xf0
	mov	w0, #5
	bl	_BIT
	orr	w22, w0, w22
	mov	w0, #6
	bl	_BIT
	orr	w2, w22, w0
	mov	x0, x20
	mov	x1, x21
	bl	_rtl_write_byte
	b	LBB0_6
LBB0_4:
Lloh9:
	adrp	x21, _REG_LEDCFG1@GOTPAGE
Lloh10:
	ldr	x21, [x21, _REG_LEDCFG1@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_rtl_read_byte
	ldr	w1, [x21]
	and	w2, w0, #0x10
	mov	x0, x20
	bl	_rtl_write_byte
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x8, _COMP_ERR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _COMP_ERR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w2, [x22]
Lloh14:
	adrp	x3, l_.str.1@PAGE
Lloh15:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
LBB0_6:
	mov	w8, #1
	str	w8, [x19, #4]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_COMP_LED,4,2                   ; @COMP_LED
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LedAddr:%X ledpin=%d\n"

	.comm	_REG_LEDCFG2,4,2                ; @REG_LEDCFG2
	.comm	_REG_LEDCFG1,4,2                ; @REG_LEDCFG1
	.comm	_COMP_ERR,4,2                   ; @COMP_ERR
l_.str.1:                               ; @.str.1
	.asciz	"switch case %#x not processed\n"

.subsections_via_symbols
