	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8812ae_sw_led_off           ## -- Begin function rtl8812ae_sw_led_off
	.p2align	4, 0x90
_rtl8812ae_sw_led_off:                  ## @rtl8812ae_sw_led_off
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	_REG_LEDCFG1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r12d
	callq	_rtl_priv
	movq	%rax, %r15
	movl	4(%r14), %r9d
	cmpl	$128, %r9d
	je	LBB0_3
## %bb.1:
	cmpl	$129, %r9d
	jne	LBB0_4
## %bb.2:
	movl	(%rbx), %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
	cmpq	$0, (%r15)
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_rtl_read_byte
	movl	%eax, %ebx
	andl	$208, %r12d
	movl	$3, %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_rtl_write_byte
	movq	_REG_MAC_PINMUX_CFG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_rtl_read_byte
	andl	$254, %eax
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	jmp	LBB0_7
LBB0_6:
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	$40, %edx
LBB0_7:
	callq	_rtl_write_byte
	movl	$0, (%r14)
	popq	%rbx
	popq	%r12
	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 SwLedOff,LedAddr:%X LEDPIN=%d\n"

	.comm	_REG_MAC_PINMUX_CFG,4,2         ## @REG_MAC_PINMUX_CFG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8812ae_sw_led_off           ; -- Begin function rtl8812ae_sw_led_off
	.p2align	2
_rtl8812ae_sw_led_off:                  ; @rtl8812ae_sw_led_off
	.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, x1
Lloh0:
	adrp	x22, _REG_LEDCFG1@GOTPAGE
Lloh1:
	ldr	x22, [x22, _REG_LEDCFG1@GOTPAGEOFF]
	ldr	w21, [x22]
	bl	_rtl_priv
	mov	x20, x0
	ldr	w5, [x19, #4]
	cmp	w5, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w5, #129
	b.ne	LBB0_4
; %bb.2:
	ldr	w21, [x22]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _REG_LEDCFG2@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REG_LEDCFG2@GOTPAGEOFF]
Lloh4:
	ldr	w21, [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, x20
	mov	x4, x21
	bl	_RT_TRACE
	ldr	x8, [x20]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x20
	mov	x1, x21
	bl	_rtl_read_byte
	mov	x22, x0
	mov	w8, #208
	and	w21, w21, w8
	mov	w0, #3
	bl	_BIT
	orr	w2, w0, w22
	mov	x0, x20
	mov	x1, x21
	bl	_rtl_write_byte
Lloh13:
	adrp	x21, _REG_MAC_PINMUX_CFG@GOTPAGE
Lloh14:
	ldr	x21, [x21, _REG_MAC_PINMUX_CFG@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_rtl_read_byte
	and	w2, w0, #0xfe
	ldr	w1, [x21]
	mov	x0, x20
	b	LBB0_7
LBB0_6:
	mov	x0, x20
	mov	x1, x21
	mov	w2, #40
LBB0_7:
	bl	_rtl_write_byte
	str	wzr, [x19]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.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 SwLedOff,LedAddr:%X LEDPIN=%d\n"

	.comm	_REG_MAC_PINMUX_CFG,4,2         ; @REG_MAC_PINMUX_CFG
.subsections_via_symbols
