	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_backlight_init_ports           ## -- Begin function backlight_init_ports
	.p2align	4, 0x90
_backlight_init_ports:                  ## @backlight_init_ports
	.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	_GPIOB@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$2, %edi
	callq	_PAL_MODE_ALTERNATE
	movl	%ebx, %edi
	movl	$8, %esi
	movl	%eax, %edx
	callq	_palSetPadMode
	movq	_PWMD4@GOTPCREL(%rip), %rdi
	movq	_pwmCFG@GOTPCREL(%rip), %rsi
	callq	_pwmStart
	movq	_kb_backlight_config@GOTPCREL(%rip), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_3
## %bb.1:
	cmpq	$0, 8(%rax)
	je	LBB0_2
## %bb.5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_breathing_enable               ## TAILCALL
LBB0_3:
	xorl	%edi, %edi
	jmp	LBB0_4
LBB0_2:
	movl	(%rax), %edi
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_backlight_set                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIOB,4,2                      ## @GPIOB
	.comm	_PWMD4,4,2                      ## @PWMD4
	.comm	_pwmCFG,4,2                     ## @pwmCFG
	.comm	_kb_backlight_config,24,3       ## @kb_backlight_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_backlight_init_ports           ; -- Begin function backlight_init_ports
	.p2align	2
_backlight_init_ports:                  ; @backlight_init_ports
	.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
Lloh0:
	adrp	x8, _GPIOB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPIOB@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	mov	w0, #2
	bl	_PAL_MODE_ALTERNATE
	mov	x2, x0
	mov	x0, x19
	mov	w1, #8
	bl	_palSetPadMode
Lloh3:
	adrp	x0, _PWMD4@GOTPAGE
Lloh4:
	ldr	x0, [x0, _PWMD4@GOTPAGEOFF]
Lloh5:
	adrp	x1, _pwmCFG@GOTPAGE
Lloh6:
	ldr	x1, [x1, _pwmCFG@GOTPAGEOFF]
	bl	_pwmStart
Lloh7:
	adrp	x8, _kb_backlight_config@GOTPAGE
Lloh8:
	ldr	x8, [x8, _kb_backlight_config@GOTPAGEOFF]
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_3
; %bb.1:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_4
; %bb.2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_breathing_enable
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_backlight_set
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIOB,4,2                      ; @GPIOB
	.comm	_PWMD4,4,2                      ; @PWMD4
	.comm	_pwmCFG,4,2                     ; @pwmCFG
	.comm	_kb_backlight_config,24,3       ; @kb_backlight_config
.subsections_via_symbols
