	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ui_browser__percent_color
_ui_browser__percent_color:             ## @ui_browser__percent_color
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%esi, %esi
	je	LBB0_3
## %bb.1:
	movq	_HE_COLORSET_SELECTED@GOTPCREL(%rip), %rax
	cmpl	$0, 8(%rdi)
	je	LBB0_8
## %bb.2:
	cmpq	$0, (%rdi)
	jne	LBB0_8
LBB0_3:
	movq	_MIN_RED@GOTPCREL(%rip), %rax
	ucomisd	(%rax), %xmm0
	jae	LBB0_4
## %bb.5:
	movq	_MIN_GREEN@GOTPCREL(%rip), %rax
	ucomisd	(%rax), %xmm0
	jae	LBB0_6
## %bb.7:
	movq	_HE_COLORSET_NORMAL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movq	_HE_COLORSET_TOP@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_HE_COLORSET_MEDIUM@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HE_COLORSET_SELECTED,4,2       ## @HE_COLORSET_SELECTED
	.comm	_MIN_RED,8,3                    ## @MIN_RED
	.comm	_HE_COLORSET_TOP,4,2            ## @HE_COLORSET_TOP
	.comm	_MIN_GREEN,8,3                  ## @MIN_GREEN
	.comm	_HE_COLORSET_MEDIUM,4,2         ## @HE_COLORSET_MEDIUM
	.comm	_HE_COLORSET_NORMAL,4,2         ## @HE_COLORSET_NORMAL
	.no_dead_strip	_ui_browser__percent_color
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ui_browser__percent_color
_ui_browser__percent_color:             ; @ui_browser__percent_color
	.cfi_startproc
; %bb.0:
	cbz	w1, LBB0_4
; %bb.1:
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_3
; %bb.2:
	ldr	x8, [x0]
	cbz	x8, LBB0_4
LBB0_3:
Lloh0:
	adrp	x8, _HE_COLORSET_SELECTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HE_COLORSET_SELECTED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ret
LBB0_4:
Lloh3:
	adrp	x8, _MIN_RED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MIN_RED@GOTPAGEOFF]
Lloh5:
	ldr	d1, [x8]
	fcmp	d1, d0
	b.ls	LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _MIN_GREEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MIN_GREEN@GOTPAGEOFF]
Lloh8:
	ldr	d1, [x8]
Lloh9:
	adrp	x8, _HE_COLORSET_MEDIUM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HE_COLORSET_MEDIUM@GOTPAGEOFF]
Lloh11:
	adrp	x9, _HE_COLORSET_NORMAL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _HE_COLORSET_NORMAL@GOTPAGEOFF]
	fcmp	d1, d0
	csel	x8, x9, x8, hi
	ldr	w0, [x8]
	ret
LBB0_6:
Lloh13:
	adrp	x8, _HE_COLORSET_TOP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HE_COLORSET_TOP@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_HE_COLORSET_SELECTED,4,2       ; @HE_COLORSET_SELECTED
	.comm	_MIN_RED,8,3                    ; @MIN_RED
	.comm	_HE_COLORSET_TOP,4,2            ; @HE_COLORSET_TOP
	.comm	_MIN_GREEN,8,3                  ; @MIN_GREEN
	.comm	_HE_COLORSET_MEDIUM,4,2         ; @HE_COLORSET_MEDIUM
	.comm	_HE_COLORSET_NORMAL,4,2         ; @HE_COLORSET_NORMAL
	.no_dead_strip	_ui_browser__percent_color
.subsections_via_symbols
