	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function clevo_mail_led_blink
_clevo_mail_led_blink:                  ## @clevo_mail_led_blink
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	xorl	%eax, %eax
	callq	_i8042_lock_chip
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.1:
	cmpq	$500, %rsi                      ## imm = 0x1F4
	je	LBB0_8
## %bb.2:
	cmpq	$1000, %rsi                     ## imm = 0x3E8
	jne	LBB0_3
## %bb.11:
	movq	(%r14), %rdx
	cmpq	$1000, %rdx                     ## imm = 0x3E8
	jne	LBB0_4
## %bb.12:
	movq	_CLEVO_MAIL_LED_BLINK_0_5HZ@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	movq	(%r14), %rdx
	testq	%rdx, %rdx
	jne	LBB0_4
## %bb.7:
	movq	$1000, (%rbx)                   ## imm = 0x3E8
	movq	$1000, (%r14)                   ## imm = 0x3E8
	movq	_CLEVO_MAIL_LED_BLINK_0_5HZ@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	(%r14), %rdx
	cmpq	$500, %rdx                      ## imm = 0x1F4
	jne	LBB0_4
## %bb.9:
	movq	_CLEVO_MAIL_LED_BLINK_1HZ@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_i8042_command
	jmp	LBB0_5
LBB0_3:
	movq	(%r14), %rdx
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
LBB0_5:
	xorl	%eax, %eax
	callq	_i8042_unlock_chip
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"clevo_mail_led_blink(..., %lu, %lu), returning -EINVAL (unsupported)\n"

	.no_dead_strip	_clevo_mail_led_blink
.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_blink
_clevo_mail_led_blink:                  ; @clevo_mail_led_blink
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	bl	_i8042_lock_chip
	ldr	x1, [x20]
	cbz	x1, LBB0_4
; %bb.1:
	cmp	x1, #500
	b.eq	LBB0_7
; %bb.2:
	cmp	x1, #1000
	b.ne	LBB0_10
; %bb.3:
	ldr	x2, [x19]
	cmp	x2, #1000
	b.ne	LBB0_11
	b	LBB0_6
LBB0_4:
	ldr	x2, [x19]
	cbnz	x2, LBB0_11
; %bb.5:
	mov	w8, #1000
	str	x8, [x20]
	str	x8, [x19]
LBB0_6:
Lloh3:
	adrp	x8, _CLEVO_MAIL_LED_BLINK_0_5HZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CLEVO_MAIL_LED_BLINK_0_5HZ@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	ldr	x2, [x19]
	cmp	x2, #500
	b.ne	LBB0_11
; %bb.8:
Lloh5:
	adrp	x8, _CLEVO_MAIL_LED_BLINK_1HZ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CLEVO_MAIL_LED_BLINK_1HZ@GOTPAGEOFF]
LBB0_9:
	ldr	w1, [x8]
	mov	x0, #0
	bl	_i8042_command
	mov	w19, #0
	b	LBB0_12
LBB0_10:
	ldr	x2, [x19]
LBB0_11:
	neg	w19, w21
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
LBB0_12:
	bl	_i8042_unlock_chip
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"clevo_mail_led_blink(..., %lu, %lu), returning -EINVAL (unsupported)\n"

	.no_dead_strip	_clevo_mail_led_blink
.subsections_via_symbols
