	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sunkbd_event
_sunkbd_event:                          ## @sunkbd_event
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r13d
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_input_get_drvdata
	movq	%rax, %r12
	movl	$-1, %eax
	cmpl	$130, %ebx
	je	LBB0_3
## %bb.1:
	cmpl	$131, %ebx
	jne	LBB0_9
## %bb.2:
	movl	(%r12), %edi
	movq	_SUNKBD_CMD_SETLED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_serio_write
	movl	(%r12), %r14d
	movq	_LED_CAPSL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_test_bit
	xorl	%ebx, %ebx
	testl	%eax, %eax
	setne	%bl
	shll	$3, %ebx
	movq	_LED_SCROLLL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_test_bit
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	leal	(%rbx,%rcx,4), %ebx
	movq	_LED_COMPOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_test_bit
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	leal	(%rbx,%rcx,2), %ebx
	movq	_LED_NUML@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_test_bit
	xorl	%esi, %esi
	testl	%eax, %eax
	setne	%sil
	orl	%ebx, %esi
	movl	%r14d, %edi
	jmp	LBB0_8
LBB0_3:
	cmpl	$129, %r13d
	je	LBB0_6
## %bb.4:
	cmpl	$128, %r13d
	jne	LBB0_9
## %bb.5:
	movl	(%r12), %edi
	movq	_SUNKBD_CMD_NOCLICK@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movl	(%r12), %edi
	movq	_SUNKBD_CMD_BELLOFF@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %esi
	subl	%r14d, %esi
LBB0_8:
	callq	_serio_write
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUNKBD_CMD_SETLED,4,2          ## @SUNKBD_CMD_SETLED
	.comm	_LED_CAPSL,4,2                  ## @LED_CAPSL
	.comm	_LED_SCROLLL,4,2                ## @LED_SCROLLL
	.comm	_LED_COMPOSE,4,2                ## @LED_COMPOSE
	.comm	_LED_NUML,4,2                   ## @LED_NUML
	.comm	_SUNKBD_CMD_NOCLICK,4,2         ## @SUNKBD_CMD_NOCLICK
	.comm	_SUNKBD_CMD_BELLOFF,4,2         ## @SUNKBD_CMD_BELLOFF
	.no_dead_strip	_sunkbd_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sunkbd_event
_sunkbd_event:                          ; @sunkbd_event
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	bl	_input_get_drvdata
	mov	x21, x0
	cmp	w23, #130
	b.eq	LBB0_3
; %bb.1:
	cmp	w23, #131
	b.ne	LBB0_6
; %bb.2:
	ldr	w0, [x21]
Lloh0:
	adrp	x8, _SUNKBD_CMD_SETLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUNKBD_CMD_SETLED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_serio_write
	ldr	w20, [x21]
Lloh3:
	adrp	x8, _LED_CAPSL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LED_CAPSL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_test_bit
	cmp	w0, #0
	cset	w8, ne
	lsl	w21, w8, #3
Lloh6:
	adrp	x8, _LED_SCROLLL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LED_SCROLLL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_test_bit
	cmp	w0, #0
	cset	w8, ne
	bfi	w21, w8, #2, #1
Lloh9:
	adrp	x8, _LED_COMPOSE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LED_COMPOSE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_test_bit
	cmp	w0, #0
	cset	w8, ne
	bfi	w21, w8, #1, #1
Lloh12:
	adrp	x8, _LED_NUML@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LED_NUML@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_test_bit
	cmp	w0, #0
	cset	w8, ne
	orr	w1, w21, w8
	mov	x0, x20
	b	LBB0_9
LBB0_3:
	cmp	w22, #129
	b.eq	LBB0_7
; %bb.4:
	cmp	w22, #128
	b.ne	LBB0_6
; %bb.5:
	ldr	w0, [x21]
Lloh15:
	adrp	x8, _SUNKBD_CMD_NOCLICK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SUNKBD_CMD_NOCLICK@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	mov	w0, #-1
	b	LBB0_10
LBB0_7:
	ldr	w0, [x21]
Lloh17:
	adrp	x8, _SUNKBD_CMD_BELLOFF@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SUNKBD_CMD_BELLOFF@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	sub	w1, w8, w20
LBB0_9:
	bl	_serio_write
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_SUNKBD_CMD_SETLED,4,2          ; @SUNKBD_CMD_SETLED
	.comm	_LED_CAPSL,4,2                  ; @LED_CAPSL
	.comm	_LED_SCROLLL,4,2                ; @LED_SCROLLL
	.comm	_LED_COMPOSE,4,2                ; @LED_COMPOSE
	.comm	_LED_NUML,4,2                   ; @LED_NUML
	.comm	_SUNKBD_CMD_NOCLICK,4,2         ; @SUNKBD_CMD_NOCLICK
	.comm	_SUNKBD_CMD_BELLOFF,4,2         ; @SUNKBD_CMD_BELLOFF
	.no_dead_strip	_sunkbd_event
.subsections_via_symbols
