	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function twl4030_led_set_value
_twl4030_led_set_value:                 ## @twl4030_led_set_value
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %eax
	movq	_LEDEN_LEDAON@GOTPCREL(%rip), %rcx
	movq	_LEDEN_LEDAPWM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	testl	%edi, %edi
	setne	%cl
	shll	%cl, %esi
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	notl	%esi
	movq	_cached_leden@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	jmp	LBB0_3
LBB0_2:
	movq	_cached_leden@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
LBB0_3:
	movq	_cached_leden@GOTPCREL(%rip), %rax
	movl	%esi, (%rax)
	movq	_TWL4030_MODULE_LED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TWL4030_LED_LEDEN_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_twl_i2c_write_u8
	movl	%eax, %edi
	popq	%rbp
	jmp	_WARN_ON_ONCE                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LEDEN_LEDAON,4,2               ## @LEDEN_LEDAON
	.comm	_LEDEN_LEDAPWM,4,2              ## @LEDEN_LEDAPWM
	.comm	_cached_leden,4,2               ## @cached_leden
	.comm	_TWL4030_MODULE_LED,4,2         ## @TWL4030_MODULE_LED
	.comm	_TWL4030_LED_LEDEN_REG,4,2      ## @TWL4030_LED_LEDEN_REG
	.no_dead_strip	_twl4030_led_set_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function twl4030_led_set_value
_twl4030_led_set_value:                 ; @twl4030_led_set_value
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _LEDEN_LEDAON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LEDEN_LEDAON@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _LEDEN_LEDAPWM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LEDEN_LEDAPWM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	cmp	w0, #0
	cset	w9, ne
	lsl	w9, w8, w9
Lloh6:
	adrp	x8, _cached_leden@GOTPAGE
Lloh7:
	ldr	x8, [x8, _cached_leden@GOTPAGEOFF]
	cbz	w1, LBB0_2
; %bb.1:
	ldr	w10, [x8]
	bic	w1, w10, w9
	b	LBB0_3
LBB0_2:
	ldr	w10, [x8]
	orr	w1, w10, w9
LBB0_3:
	str	w1, [x8]
Lloh8:
	adrp	x8, _TWL4030_MODULE_LED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TWL4030_MODULE_LED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _TWL4030_LED_LEDEN_REG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TWL4030_LED_LEDEN_REG@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	bl	_twl_i2c_write_u8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_WARN_ON_ONCE
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_LEDEN_LEDAON,4,2               ; @LEDEN_LEDAON
	.comm	_LEDEN_LEDAPWM,4,2              ; @LEDEN_LEDAPWM
	.comm	_cached_leden,4,2               ; @cached_leden
	.comm	_TWL4030_MODULE_LED,4,2         ; @TWL4030_MODULE_LED
	.comm	_TWL4030_LED_LEDEN_REG,4,2      ; @TWL4030_LED_LEDEN_REG
	.no_dead_strip	_twl4030_led_set_value
.subsections_via_symbols
