	.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
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_GPIOA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$1, %edi
	callq	_PAL_MODE_ALTERNATE
	movl	%ebx, %edi
	movl	$6, %esi
	movl	%eax, %edx
	callq	_palSetPadMode
	movq	_PWMD3@GOTPCREL(%rip), %rdi
	movq	_pwmCFG@GOTPCREL(%rip), %rsi
	callq	_pwmStart
	movq	_kb_backlight_config@GOTPCREL(%rip), %rbx
	cmpq	$0, 16(%rbx)
	je	LBB0_3
## %bb.1:
	movl	8(%rbx), %edi
	callq	_backlight_set
	cmpq	$0, (%rbx)
	je	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_breathing_enable               ## TAILCALL
LBB0_3:
	xorl	%edi, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_backlight_set                  ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIOA,4,2                      ## @GPIOA
	.comm	_PWMD3,4,2                      ## @PWMD3
	.comm	_pwmCFG,4,2                     ## @pwmCFG
	.comm	_kb_backlight_config,24,3       ## @kb_backlight_config
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"backlight_init_ports()"

.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	x0, l_str@PAGE
Lloh1:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh2:
	adrp	x8, _GPIOA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GPIOA@GOTPAGEOFF]
Lloh4:
	ldr	w19, [x8]
	mov	w0, #1
	bl	_PAL_MODE_ALTERNATE
	mov	x2, x0
	mov	x0, x19
	mov	w1, #6
	bl	_palSetPadMode
Lloh5:
	adrp	x0, _PWMD3@GOTPAGE
Lloh6:
	ldr	x0, [x0, _PWMD3@GOTPAGEOFF]
Lloh7:
	adrp	x1, _pwmCFG@GOTPAGE
Lloh8:
	ldr	x1, [x1, _pwmCFG@GOTPAGEOFF]
	bl	_pwmStart
Lloh9:
	adrp	x19, _kb_backlight_config@GOTPAGE
Lloh10:
	ldr	x19, [x19, _kb_backlight_config@GOTPAGEOFF]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w0, [x19, #8]
	bl	_backlight_set
	ldr	x8, [x19]
	cbz	x8, 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
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_backlight_set
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIOA,4,2                      ; @GPIOA
	.comm	_PWMD3,4,2                      ; @PWMD3
	.comm	_pwmCFG,4,2                     ; @pwmCFG
	.comm	_kb_backlight_config,24,3       ; @kb_backlight_config
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"backlight_init_ports()"

.subsections_via_symbols
