	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8366s_setLedForceValue      ## -- Begin function rtl8366s_setLedForceValue
	.p2align	4, 0x90
_rtl8366s_setLedForceValue:             ## @rtl8366s_setLedForceValue
	.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
	movl	%ecx, %ebx
	movl	%edx, %r14d
	andl	$63, %edi
	andl	$63, %esi
	shll	$6, %esi
	orl	%edi, %esi
	movq	_RTL8366S_LED_0_1_FORCE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rtl8366_writeRegister
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	andl	$63, %r14d
	andl	$63, %ebx
	shll	$6, %ebx
	orl	%r14d, %ebx
	movq	_RTL8366S_LED_2_3_FORCE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_rtl8366_writeRegister
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	leaq	L_str.1(%rip), %rdi
	callq	_puts
	movl	$-1, %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	xorl	%eax, %eax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL8366S_LED_0_1_FORCE_REG,4,2 ## @RTL8366S_LED_0_1_FORCE_REG
	.comm	_RTL8366S_LED_2_3_FORCE_REG,4,2 ## @RTL8366S_LED_2_3_FORCE_REG
	.section	__TEXT,__cstring,cstring_literals
L_str.1:                                ## @str.1
	.asciz	"rtl8366s_setLedForceValue: failed to set led register!"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8366s_setLedForceValue      ; -- Begin function rtl8366s_setLedForceValue
	.p2align	2
_rtl8366s_setLedForceValue:             ; @rtl8366s_setLedForceValue
	.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, x3
	mov	x20, x2
	and	w8, w0, #0x3f
	bfi	w8, w1, #6, #6
Lloh0:
	adrp	x9, _RTL8366S_LED_0_1_FORCE_REG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RTL8366S_LED_0_1_FORCE_REG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
	mov	x1, x8
	bl	_rtl8366_writeRegister
	cbnz	x0, LBB0_2
; %bb.1:
	and	w1, w20, #0x3f
	bfi	w1, w19, #6, #6
Lloh3:
	adrp	x8, _RTL8366S_LED_2_3_FORCE_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RTL8366S_LED_2_3_FORCE_REG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_rtl8366_writeRegister
	cbz	x0, LBB0_3
LBB0_2:
Lloh6:
	adrp	x0, l_str.1@PAGE
Lloh7:
	add	x0, x0, l_str.1@PAGEOFF
	bl	_puts
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RTL8366S_LED_0_1_FORCE_REG,4,2 ; @RTL8366S_LED_0_1_FORCE_REG
	.comm	_RTL8366S_LED_2_3_FORCE_REG,4,2 ; @RTL8366S_LED_2_3_FORCE_REG
	.section	__TEXT,__cstring,cstring_literals
l_str.1:                                ; @str.1
	.asciz	"rtl8366s_setLedForceValue: failed to set led register!"

.subsections_via_symbols
