	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_led_update_flash_brightness    ## -- Begin function led_update_flash_brightness
	.p2align	4, 0x90
_led_update_flash_brightness:           ## @led_update_flash_brightness
	.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	%rdi, %rbx
	movq	_flash_brightness_get@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_has_flash_op
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_call_flash_op
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movl	-28(%rbp), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_4
LBB0_2:
	movl	%eax, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_flash_brightness_get,4,2       ## @flash_brightness_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_led_update_flash_brightness    ; -- Begin function led_update_flash_brightness
	.p2align	2
_led_update_flash_brightness:           ; @led_update_flash_brightness
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _flash_brightness_get@GOTPAGE
Lloh1:
	ldr	x20, [x20, _flash_brightness_get@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_has_flash_op
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_call_flash_op
	tbnz	w0, #31, LBB0_3
; %bb.2:
	mov	w0, #0
	ldr	w8, [sp, #12]
	str	w8, [x19]
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_flash_brightness_get,4,2       ; @flash_brightness_get
.subsections_via_symbols
