	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function clevo_mail_led_set
_clevo_mail_led_set:                    ## @clevo_mail_led_set
	.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
	movl	%esi, %ebx
	xorl	%eax, %eax
	callq	_i8042_lock_chip
	movq	_LED_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_LED_HALF@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jae	LBB0_1
## %bb.2:
	movq	_CLEVO_MAIL_LED_BLINK_1HZ@GOTPCREL(%rip), %rax
	cmpl	%ebx, %ecx
	je	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_CLEVO_MAIL_LED_BLINK_0_5HZ@GOTPCREL(%rip), %rax
	cmpl	%ebx, %ecx
	jne	LBB0_5
LBB0_4:
	movq	_CLEVO_MAIL_LED_OFF@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_i8042_command
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_i8042_unlock_chip              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LED_OFF,4,2                    ## @LED_OFF
	.comm	_CLEVO_MAIL_LED_OFF,4,2         ## @CLEVO_MAIL_LED_OFF
	.comm	_LED_HALF,4,2                   ## @LED_HALF
	.comm	_CLEVO_MAIL_LED_BLINK_0_5HZ,4,2 ## @CLEVO_MAIL_LED_BLINK_0_5HZ
	.comm	_CLEVO_MAIL_LED_BLINK_1HZ,4,2   ## @CLEVO_MAIL_LED_BLINK_1HZ
	.no_dead_strip	_clevo_mail_led_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function clevo_mail_led_set
_clevo_mail_led_set:                    ; @clevo_mail_led_set
	.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
	mov	x19, x1
	bl	_i8042_lock_chip
Lloh0:
	adrp	x8, _LED_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LED_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _LED_HALF@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LED_HALF@GOTPAGEOFF]
Lloh5:
	adrp	x10, _CLEVO_MAIL_LED_OFF@GOTPAGE
Lloh6:
	ldr	x10, [x10, _CLEVO_MAIL_LED_OFF@GOTPAGEOFF]
Lloh7:
	adrp	x11, _CLEVO_MAIL_LED_BLINK_1HZ@GOTPAGE
Lloh8:
	ldr	x11, [x11, _CLEVO_MAIL_LED_BLINK_1HZ@GOTPAGEOFF]
Lloh9:
	adrp	x12, _CLEVO_MAIL_LED_BLINK_0_5HZ@GOTPAGE
Lloh10:
	ldr	x12, [x12, _CLEVO_MAIL_LED_BLINK_0_5HZ@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w9, w19
	csel	x9, x11, x12, lo
	cmp	w8, w19
	csel	x8, x10, x9, eq
	ldr	w1, [x8]
	mov	x0, #0
	bl	_i8042_command
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_i8042_unlock_chip
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LED_OFF,4,2                    ; @LED_OFF
	.comm	_CLEVO_MAIL_LED_OFF,4,2         ; @CLEVO_MAIL_LED_OFF
	.comm	_LED_HALF,4,2                   ; @LED_HALF
	.comm	_CLEVO_MAIL_LED_BLINK_0_5HZ,4,2 ; @CLEVO_MAIL_LED_BLINK_0_5HZ
	.comm	_CLEVO_MAIL_LED_BLINK_1HZ,4,2   ; @CLEVO_MAIL_LED_BLINK_1HZ
	.no_dead_strip	_clevo_mail_led_set
.subsections_via_symbols
