	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mc13xxx_max_brightness
_mc13xxx_max_brightness:                ## @mc13xxx_max_brightness
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MC13783_LED_MD@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jg	LBB0_2
## %bb.1:
	movq	_MC13783_LED_KP@GOTPCREL(%rip), %rcx
	movl	$15, %eax
	cmpl	%edi, (%rcx)
	jl	LBB0_2
## %bb.3:
	popq	%rbp
	retq
LBB0_2:
	movq	_MC13783_LED_R1@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	setg	%al
	movq	_MC13783_LED_B3@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	setl	%cl
	orb	%al, %cl
	movzbl	%cl, %eax
	shll	$5, %eax
	orl	$31, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MC13783_LED_MD,4,2             ## @MC13783_LED_MD
	.comm	_MC13783_LED_KP,4,2             ## @MC13783_LED_KP
	.comm	_MC13783_LED_R1,4,2             ## @MC13783_LED_R1
	.comm	_MC13783_LED_B3,4,2             ## @MC13783_LED_B3
	.no_dead_strip	_mc13xxx_max_brightness
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mc13xxx_max_brightness
_mc13xxx_max_brightness:                ; @mc13xxx_max_brightness
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _MC13783_LED_MD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MC13783_LED_MD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MC13783_LED_KP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MC13783_LED_KP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w0
	ccmp	w9, w0, #8, le
	b.ge	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _MC13783_LED_R1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MC13783_LED_R1@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _MC13783_LED_B3@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MC13783_LED_B3@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w9, w0
	ccmp	w8, w0, #0, ge
	mov	w8, #31
	mov	w9, #63
	csel	w0, w9, w8, gt
	ret
LBB0_2:
	mov	w0, #15
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MC13783_LED_MD,4,2             ; @MC13783_LED_MD
	.comm	_MC13783_LED_KP,4,2             ; @MC13783_LED_KP
	.comm	_MC13783_LED_R1,4,2             ; @MC13783_LED_R1
	.comm	_MC13783_LED_B3,4,2             ; @MC13783_LED_B3
	.no_dead_strip	_mc13xxx_max_brightness
.subsections_via_symbols
