	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_planck_ez_left_led_level       ## -- Begin function planck_ez_left_led_level
	.p2align	4, 0x90
_planck_ez_left_led_level:              ## @planck_ez_left_led_level
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	shll	$8, %edi
	addl	%ebx, %edi
	callq	_cie_lightness
	movq	_planck_ez_left_led_duty@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	_PWMD4@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	movl	$65535, %esi                    ## imm = 0xFFFF
	movl	%eax, %edx
	callq	_PWM_FRACTION_TO_WIDTH
	movq	%rbx, %rdi
	movl	$3, %esi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_pwmEnableChannel               ## TAILCALL
LBB0_1:
	movq	_PWMD4@GOTPCREL(%rip), %rdi
	movl	$3, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_pwmDisableChannel              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_planck_ez_left_led_duty,4,2    ## @planck_ez_left_led_duty
	.comm	_PWMD4,4,2                      ## @PWMD4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_planck_ez_left_led_level       ; -- Begin function planck_ez_left_led_level
	.p2align	2
_planck_ez_left_led_level:              ; @planck_ez_left_led_level
	.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, x0
	add	w0, w19, w19, lsl #8
	bl	_cie_lightness
	mov	x2, x0
Lloh0:
	adrp	x8, _planck_ez_left_led_duty@GOTPAGE
Lloh1:
	ldr	x8, [x8, _planck_ez_left_led_duty@GOTPAGEOFF]
Lloh2:
	str	w2, [x8]
	cbz	x19, LBB0_2
; %bb.1:
Lloh3:
	adrp	x19, _PWMD4@GOTPAGE
Lloh4:
	ldr	x19, [x19, _PWMD4@GOTPAGEOFF]
	mov	x0, x19
	mov	w1, #65535
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_PWM_FRACTION_TO_WIDTH
	mov	x2, x0
	mov	x0, x19
	mov	w1, #3
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pwmEnableChannel
LBB0_2:
Lloh5:
	adrp	x0, _PWMD4@GOTPAGE
Lloh6:
	ldr	x0, [x0, _PWMD4@GOTPAGEOFF]
	mov	w1, #3
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pwmDisableChannel
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_planck_ez_left_led_duty,4,2    ; @planck_ez_left_led_duty
	.comm	_PWMD4,4,2                      ; @PWMD4
.subsections_via_symbols
