	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imon_parse_press_type
_imon_parse_press_type:                 ## @imon_parse_press_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	%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
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r13
	leaq	20(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	(%r13), %rax
	movq	_KEY_RESERVED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.1:
	movb	(%r15), %al
	cmpb	$1, %al
	je	LBB0_9
## %bb.2:
	cmpb	$104, %al
	je	LBB0_6
## %bb.3:
	cmpb	$2, %al
	jne	LBB0_10
## %bb.4:
	cmpb	$0, 3(%r15)
	jne	LBB0_10
	jmp	LBB0_5
LBB0_12:
	movq	_IMON_KEY_MCE@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	je	LBB0_13
## %bb.14:
	xorl	%ebx, %ebx
	cmpq	$0, 24(%r13)
	sete	%bl
	jmp	LBB0_15
LBB0_9:
	cmpb	$0, 1(%r15)
	jne	LBB0_10
	jmp	LBB0_7
LBB0_6:
	cmpb	$-126, 1(%r15)
	jne	LBB0_10
LBB0_7:
	cmpb	$-127, 2(%r15)
	jne	LBB0_10
## %bb.8:
	cmpb	$-73, 3(%r15)
	jne	LBB0_10
LBB0_5:
	movq	8(%r13), %rax
	movq	%rax, (%r13)
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_10:
	movq	_IMON_KEY_MCE@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_11
LBB0_13:
	movb	2(%r15), %al
	movb	%al, 16(%r13)
	movl	$1, %ebx
	jmp	LBB0_15
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KEY_RESERVED,8,3               ## @KEY_RESERVED
	.comm	_IMON_KEY_MCE,8,3               ## @IMON_KEY_MCE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_imon_parse_press_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imon_parse_press_type
_imon_parse_press_type:                 ; @imon_parse_press_type
	.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	x22, x2
	mov	x21, x1
	mov	x20, x0
	add	x19, x0, #20
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _KEY_RESERVED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _KEY_RESERVED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	ldrb	w8, [x21]
	cmp	w8, #1
	b.eq	LBB0_7
; %bb.2:
	cmp	w8, #104
	b.eq	LBB0_8
; %bb.3:
	cmp	w8, #2
	b.ne	LBB0_12
; %bb.4:
	ldrb	w8, [x21, #3]
	cbnz	w8, LBB0_12
	b	LBB0_11
LBB0_5:
Lloh3:
	adrp	x8, _IMON_KEY_MCE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IMON_KEY_MCE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x22
	b.eq	LBB0_13
; %bb.6:
	ldr	x8, [x20, #24]
	cmp	x8, #0
	cset	w21, eq
	b	LBB0_15
LBB0_7:
	ldrb	w8, [x21, #1]
	cbnz	w8, LBB0_12
	b	LBB0_9
LBB0_8:
	ldrb	w8, [x21, #1]
	cmp	w8, #130
	b.ne	LBB0_12
LBB0_9:
	ldrb	w8, [x21, #2]
	cmp	w8, #129
	b.ne	LBB0_12
; %bb.10:
	ldrb	w8, [x21, #3]
	cmp	w8, #183
	b.ne	LBB0_12
LBB0_11:
	mov	w21, #0
	ldr	x8, [x20, #8]
	str	x8, [x20]
	b	LBB0_15
LBB0_12:
Lloh6:
	adrp	x8, _IMON_KEY_MCE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IMON_KEY_MCE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x22
	b.ne	LBB0_14
LBB0_13:
	ldrb	w8, [x21, #2]
	strb	w8, [x20, #16]
	mov	w21, #1
	b	LBB0_15
LBB0_14:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_15:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_KEY_RESERVED,8,3               ; @KEY_RESERVED
	.comm	_IMON_KEY_MCE,8,3               ; @IMON_KEY_MCE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_imon_parse_press_type
.subsections_via_symbols
