	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_led_initialize_hardware        ## -- Begin function led_initialize_hardware
	.p2align	4, 0x90
_led_initialize_hardware:               ## @led_initialize_hardware
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_PWMD4@GOTPCREL(%rip), %rdi
	movq	_pwmCFG@GOTPCREL(%rip), %rsi
	callq	_pwmStart
	movq	_keyboard_config@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movl	%eax, %ecx
	shll	$8, %ecx
	subl	%eax, %ecx
	leal	3(%rcx), %edi
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edi
	sarl	$2, %edi
	callq	_planck_ez_right_led_level
	movq	_GPIOB@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	movl	$2, %edi
	callq	_PAL_MODE_ALTERNATE
	movl	%ebx, %edi
	movl	$8, %esi
	movl	%eax, %edx
	callq	_palSetPadMode
	movl	(%r14), %eax
	movl	%eax, %ecx
	shll	$8, %ecx
	subl	%eax, %ecx
	leal	3(%rcx), %edi
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edi
	sarl	$2, %edi
	callq	_planck_ez_left_led_level
	movl	(%r15), %ebx
	movl	$2, %edi
	callq	_PAL_MODE_ALTERNATE
	movl	%ebx, %edi
	movl	$9, %esi
	movl	%eax, %edx
	callq	_palSetPadMode
	xorl	%eax, %eax
	callq	_planck_ez_left_led_off
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_planck_ez_right_led_off        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PWMD4,4,2                      ## @PWMD4
	.comm	_pwmCFG,4,2                     ## @pwmCFG
	.comm	_keyboard_config,8,3            ## @keyboard_config
	.comm	_GPIOB,4,2                      ## @GPIOB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_led_initialize_hardware        ; -- Begin function led_initialize_hardware
	.p2align	2
_led_initialize_hardware:               ; @led_initialize_hardware
	.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
Lloh0:
	adrp	x0, _PWMD4@GOTPAGE
Lloh1:
	ldr	x0, [x0, _PWMD4@GOTPAGEOFF]
Lloh2:
	adrp	x1, _pwmCFG@GOTPAGE
Lloh3:
	ldr	x1, [x1, _pwmCFG@GOTPAGEOFF]
	bl	_pwmStart
Lloh4:
	adrp	x20, _keyboard_config@GOTPAGE
Lloh5:
	ldr	x20, [x20, _keyboard_config@GOTPAGEOFF]
	ldr	w8, [x20]
	lsl	w9, w8, #8
	sub	w8, w9, w8
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w0, w8, #2
	bl	_planck_ez_right_led_level
Lloh6:
	adrp	x21, _GPIOB@GOTPAGE
Lloh7:
	ldr	x21, [x21, _GPIOB@GOTPAGEOFF]
	ldr	w19, [x21]
	mov	w0, #2
	bl	_PAL_MODE_ALTERNATE
	mov	x2, x0
	mov	x0, x19
	mov	w1, #8
	bl	_palSetPadMode
	ldr	w8, [x20]
	lsl	w9, w8, #8
	sub	w8, w9, w8
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w0, w8, #2
	bl	_planck_ez_left_led_level
	ldr	w19, [x21]
	mov	w0, #2
	bl	_PAL_MODE_ALTERNATE
	mov	x2, x0
	mov	x0, x19
	mov	w1, #9
	bl	_palSetPadMode
	bl	_planck_ez_left_led_off
	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
	b	_planck_ez_right_led_off
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PWMD4,4,2                      ; @PWMD4
	.comm	_pwmCFG,4,2                     ; @pwmCFG
	.comm	_keyboard_config,8,3            ; @keyboard_config
	.comm	_GPIOB,4,2                      ; @GPIOB
.subsections_via_symbols
