	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function evdev_set_clk_type
_evdev_set_clk_type:                    ## @evdev_set_clk_type
	.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
	addl	$-128, %esi
	cmpl	$3, %esi
	jae	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movslq	%esi, %rax
	leaq	l_switch.table.evdev_set_clk_type(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	xorl	%r14d, %r14d
	cmpl	%eax, (%rdi)
	je	LBB0_6
## %bb.3:
	movl	%eax, (%rbx)
	leaq	32(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	16(%rbx), %rax
	cmpq	%rax, 8(%rbx)
	je	LBB0_5
## %bb.4:
	movq	%rax, 8(%rbx)
	movq	%rax, 24(%rbx)
	movq	%rbx, %rdi
	callq	___evdev_queue_syn_dropped
LBB0_5:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INPUT_CLK_REAL,4,2             ## @INPUT_CLK_REAL
	.comm	_INPUT_CLK_MONO,4,2             ## @INPUT_CLK_MONO
	.comm	_INPUT_CLK_BOOT,4,2             ## @INPUT_CLK_BOOT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_evdev_set_clk_type
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.evdev_set_clk_type
l_switch.table.evdev_set_clk_type:
	.quad	_INPUT_CLK_REAL
	.quad	_INPUT_CLK_MONO
	.quad	_INPUT_CLK_BOOT

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function evdev_set_clk_type
_evdev_set_clk_type:                    ; @evdev_set_clk_type
	.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
	sub	w8, w1, #128
	cmp	w8, #3
	b.hs	LBB0_6
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x9, l_switch.table.evdev_set_clk_type@PAGE
Lloh1:
	add	x9, x9, l_switch.table.evdev_set_clk_type@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w8, [x8]
	ldr	w9, [x0]
	cmp	w9, w8
	b.eq	LBB0_5
; %bb.2:
	str	w8, [x19]
	add	x20, x19, #32
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldp	x9, x8, [x19, #8]
	cmp	x9, x8
	b.eq	LBB0_4
; %bb.3:
	str	x8, [x19, #8]
	str	x8, [x19, #24]
	mov	x0, x19
	bl	___evdev_queue_syn_dropped
LBB0_4:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_INPUT_CLK_REAL,4,2             ; @INPUT_CLK_REAL
	.comm	_INPUT_CLK_MONO,4,2             ; @INPUT_CLK_MONO
	.comm	_INPUT_CLK_BOOT,4,2             ; @INPUT_CLK_BOOT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_evdev_set_clk_type
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.evdev_set_clk_type
l_switch.table.evdev_set_clk_type:
	.quad	_INPUT_CLK_REAL
	.quad	_INPUT_CLK_MONO
	.quad	_INPUT_CLK_BOOT

.subsections_via_symbols
