	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zc_raw_event
_zc_raw_event:                          ## @zc_raw_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	callq	_hid_get_drvdata
	movq	%rax, %rbx
	movl	(%r12), %eax
	xorl	%r14d, %r14d
	cmpl	(%r15), %eax
	jne	LBB0_21
## %bb.1:
	movq	(%rbx), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	je	LBB0_3
## %bb.2:
	movl	8(%rbx), %edi
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ecx, %ecx
	callq	_input_event
	movq	(%rbx), %rax
	movl	$0, (%rax)
LBB0_3:
	movl	4(%rax), %edx
	testl	%edx, %edx
	je	LBB0_5
## %bb.4:
	movl	8(%rbx), %edi
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ecx, %ecx
	callq	_input_event
	movq	(%rbx), %rax
	movl	$0, 4(%rax)
LBB0_5:
	movl	8(%rax), %edx
	testl	%edx, %edx
	je	LBB0_7
## %bb.6:
	movl	8(%rbx), %edi
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ecx, %ecx
	callq	_input_event
	movq	(%rbx), %rax
	movl	$0, 8(%rax)
LBB0_7:
	movl	12(%rax), %edx
	testl	%edx, %edx
	je	LBB0_9
## %bb.8:
	movl	8(%rbx), %edi
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ecx, %ecx
	callq	_input_event
	movq	(%rbx), %rax
	movl	$0, 12(%rax)
LBB0_9:
	movl	(%r12), %eax
	andl	$-2, %eax
	cmpl	$2, %eax
	jne	LBB0_21
## %bb.10:
	movl	4(%r15), %eax
	movl	$1, %r14d
	cmpl	$47, %eax
	jg	LBB0_14
## %bb.11:
	cmpl	$4, %eax
	je	LBB0_18
## %bb.12:
	cmpl	$16, %eax
	jne	LBB0_21
## %bb.13:
	movq	_KEY_MODE@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	jmp	LBB0_19
LBB0_14:
	cmpl	$112, %eax
	je	LBB0_17
## %bb.15:
	cmpl	$48, %eax
	jne	LBB0_21
## %bb.16:
	movl	$1, %r12d
	movq	_KEY_SCREEN@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_18:
	movl	$3, %r12d
	movq	_KEY_RADIO@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_17:
	movl	$2, %r12d
	movq	_KEY_INFO@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %r15d
	testl	%r15d, %r15d
	je	LBB0_21
## %bb.20:
	movl	8(%rbx), %edi
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %r14d
	movl	%r15d, %edx
	movl	$1, %ecx
	callq	_input_event
	movq	(%rbx), %rax
	movl	%r15d, (%rax,%r12,4)
LBB0_21:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_KEY_MODE,4,2                   ## @KEY_MODE
	.comm	_KEY_SCREEN,4,2                 ## @KEY_SCREEN
	.comm	_KEY_INFO,4,2                   ## @KEY_INFO
	.comm	_KEY_RADIO,4,2                  ## @KEY_RADIO
	.no_dead_strip	_zc_raw_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zc_raw_event
_zc_raw_event:                          ; @zc_raw_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, x2
	mov	x21, x1
	bl	_hid_get_drvdata
	ldr	w8, [x21]
	ldr	w9, [x20]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w2, [x8]
Lloh0:
	adrp	x22, _EV_KEY@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EV_KEY@GOTPAGEOFF]
	cbz	w2, LBB0_3
; %bb.2:
	ldr	w0, [x19, #8]
	ldr	w1, [x22]
	mov	w3, #0
	bl	_input_event
	ldr	x8, [x19]
	str	wzr, [x8]
LBB0_3:
	ldr	w2, [x8, #4]
	cbz	w2, LBB0_5
; %bb.4:
	ldr	w0, [x19, #8]
	ldr	w1, [x22]
	mov	w3, #0
	bl	_input_event
	ldr	x8, [x19]
	str	wzr, [x8, #4]
LBB0_5:
	ldr	w2, [x8, #8]
	cbz	w2, LBB0_7
; %bb.6:
	ldr	w0, [x19, #8]
	ldr	w1, [x22]
	mov	w3, #0
	bl	_input_event
	ldr	x8, [x19]
	str	wzr, [x8, #8]
LBB0_7:
	ldr	w2, [x8, #12]
	cbz	w2, LBB0_9
; %bb.8:
	ldr	w0, [x19, #8]
	ldr	w1, [x22]
	mov	w3, #0
	bl	_input_event
	ldr	x8, [x19]
	str	wzr, [x8, #12]
LBB0_9:
	ldr	w8, [x21]
	and	w8, w8, #0xfffffffe
	cmp	w8, #2
	b.ne	LBB0_14
; %bb.10:
	ldr	w8, [x20, #4]
	mov	w20, #1
	cmp	w8, #47
	b.gt	LBB0_16
; %bb.11:
	cmp	w8, #4
	b.eq	LBB0_20
; %bb.12:
	cmp	w8, #16
	b.ne	LBB0_15
; %bb.13:
	mov	x23, #0
Lloh2:
	adrp	x8, _KEY_MODE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KEY_MODE@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
	cbnz	w21, LBB0_19
	b	LBB0_22
LBB0_14:
	mov	w20, #0
LBB0_15:
	mov	x0, x20
	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
LBB0_16:
	cmp	w8, #112
	b.eq	LBB0_21
; %bb.17:
	cmp	w8, #48
	b.ne	LBB0_15
; %bb.18:
Lloh5:
	adrp	x8, _KEY_SCREEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KEY_SCREEN@GOTPAGEOFF]
	mov	w23, #1
Lloh7:
	ldr	w21, [x8]
	cbz	w21, LBB0_22
LBB0_19:
	ldr	w0, [x19, #8]
	ldr	w1, [x22]
	mov	w20, #1
	mov	x2, x21
	mov	w3, #1
	bl	_input_event
	ldr	x8, [x19]
	str	w21, [x8, x23, lsl #2]
	b	LBB0_15
LBB0_20:
Lloh8:
	adrp	x8, _KEY_RADIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KEY_RADIO@GOTPAGEOFF]
	mov	w23, #3
Lloh10:
	ldr	w21, [x8]
	cbnz	w21, LBB0_19
	b	LBB0_22
LBB0_21:
Lloh11:
	adrp	x8, _KEY_INFO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _KEY_INFO@GOTPAGEOFF]
	mov	w23, #2
Lloh13:
	ldr	w21, [x8]
	cbnz	w21, LBB0_19
LBB0_22:
	mov	w20, #1
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_KEY_MODE,4,2                   ; @KEY_MODE
	.comm	_KEY_SCREEN,4,2                 ; @KEY_SCREEN
	.comm	_KEY_INFO,4,2                   ; @KEY_INFO
	.comm	_KEY_RADIO,4,2                  ; @KEY_RADIO
	.no_dead_strip	_zc_raw_event
.subsections_via_symbols
