	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8812ae_sw_led_on            ## -- Begin function rtl8812ae_sw_led_on
	.p2align	4, 0x90
_rtl8812ae_sw_led_on:                   ## @rtl8812ae_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, %rbx
	movq	_REG_LEDCFG1@GOTPCREL(%rip), %r14
	movl	(%r14), %r12d
	callq	_rtl_priv
	movq	%rax, %r15
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %r9d
	cmpl	$128, %r9d
	je	LBB0_3
## %bb.1:
	cmpl	$129, %r9d
	jne	LBB0_4
## %bb.2:
	movl	(%r14), %r12d
	jmp	LBB0_4
LBB0_3:
	movq	_REG_LEDCFG2@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_4:
	movq	_COMP_LED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	movl	%r12d, %r8d
	callq	_RT_TRACE
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_rtl_read_byte
	movl	%eax, %r13d
	movl	$5, %edi
	callq	_BIT
	orl	%eax, %r13d
	movl	$7, %edi
	callq	_BIT
	movl	%eax, %ebx
	movl	$6, %edi
	callq	_BIT
	orl	%eax, %ebx
	movl	$3, %edi
	callq	_BIT
	movl	%eax, %r14d
	movl	$2, %edi
	callq	_BIT
	orl	%eax, %r14d
	orl	%ebx, %r14d
	movl	$1, %edi
	callq	_BIT
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_BIT
	orl	%eax, %ebx
	orl	%r14d, %ebx
	notl	%ebx
	andl	%r13d, %ebx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_rtl_write_byte
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_LEDCFG1,4,2                ## @REG_LEDCFG1
	.comm	_REG_LEDCFG2,4,2                ## @REG_LEDCFG2
	.comm	_COMP_LED,4,2                   ## @COMP_LED
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"In SwLedOn, LedAddr:%X LEDPIN=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8812ae_sw_led_on            ; -- Begin function rtl8812ae_sw_led_on
	.p2align	2
_rtl8812ae_sw_led_on:                   ; @rtl8812ae_sw_led_on
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
Lloh0:
	adrp	x22, _REG_LEDCFG1@GOTPAGE
Lloh1:
	ldr	x22, [x22, _REG_LEDCFG1@GOTPAGEOFF]
	ldr	w20, [x22]
	bl	_rtl_priv
	mov	x21, x0
	ldr	w5, [x19, #4]
	cmp	w5, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w5, #129
	b.ne	LBB0_4
; %bb.2:
	ldr	w20, [x22]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _REG_LEDCFG2@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REG_LEDCFG2@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
LBB0_4:
Lloh5:
	adrp	x8, _COMP_LED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _COMP_LED@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x3, l_.str@PAGE
Lloh12:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x21
	mov	x4, x20
	bl	_RT_TRACE
	mov	x0, x21
	mov	x1, x20
	bl	_rtl_read_byte
	mov	x22, x0
	mov	w0, #5
	bl	_BIT
	orr	w23, w0, w22
	mov	w0, #7
	bl	_BIT
	mov	x22, x0
	mov	w0, #6
	bl	_BIT
	orr	w22, w0, w22
	mov	w0, #3
	bl	_BIT
	orr	w22, w22, w0
	mov	w0, #2
	bl	_BIT
	orr	w22, w22, w0
	mov	w24, #1
	mov	w0, #1
	bl	_BIT
	orr	w22, w22, w0
	mov	w0, #0
	bl	_BIT
	orr	w8, w22, w0
	bic	w2, w23, w8
	mov	x0, x21
	mov	x1, x20
	bl	_rtl_write_byte
	str	w24, [x19]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_LEDCFG1,4,2                ; @REG_LEDCFG1
	.comm	_REG_LEDCFG2,4,2                ; @REG_LEDCFG2
	.comm	_COMP_LED,4,2                   ; @COMP_LED
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"In SwLedOn, LedAddr:%X LEDPIN=%d\n"

.subsections_via_symbols
