	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function event_thread
_event_thread:                          ## @event_thread
	.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
	leaq	L_.str(%rip), %rdi
	callq	_dbg
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_set_current_state
	xorl	%eax, %eax
	callq	_schedule
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testq	%rax, %rax
	je	LBB0_1
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	callq	_dbg
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_pushbutton_pending@GOTPCREL(%rip), %r12
	movq	_cpqhp_ctrl_list@GOTPCREL(%rip), %r13
	leaq	L_.str(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_cpqhp_pushbutton_thread
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_dbg
	movl	(%r15), %edi
	callq	_set_current_state
	xorl	%eax, %eax
	callq	_schedule
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testq	%rax, %rax
	jne	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_interrupt_event_handler
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_5
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"!!!!event_thread sleeping\n"

	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.comm	_pushbutton_pending,8,3         ## @pushbutton_pending
	.comm	_cpqhp_ctrl_list,8,3            ## @cpqhp_ctrl_list
L_.str.1:                               ## @.str.1
	.asciz	"event_thread signals exit\n"

	.no_dead_strip	_event_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function event_thread
_event_thread:                          ; @event_thread
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg
Lloh2:
	adrp	x21, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_set_current_state
	bl	_schedule
	bl	_kthread_should_stop
	cbz	x0, LBB0_2
LBB0_1:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dbg
	mov	w0, #0
	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_2:
Lloh6:
	adrp	x22, _pushbutton_pending@GOTPAGE
Lloh7:
	ldr	x22, [x22, _pushbutton_pending@GOTPAGEOFF]
Lloh8:
	adrp	x23, _cpqhp_ctrl_list@GOTPAGE
Lloh9:
	ldr	x23, [x23, _cpqhp_ctrl_list@GOTPAGEOFF]
Lloh10:
	adrp	x19, l_.str@PAGE
Lloh11:
	add	x19, x19, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_cpqhp_pushbutton_thread
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_dbg
	ldr	w0, [x21]
	bl	_set_current_state
	bl	_schedule
	bl	_kthread_should_stop
	cbnz	x0, LBB0_1
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x0, [x22]
	cbnz	x0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x20, [x23]
	cbz	x20, LBB0_4
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	bl	_interrupt_event_handler
	ldr	x20, [x20]
	cbnz	x20, LBB0_7
	b	LBB0_4
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"!!!!event_thread sleeping\n"

	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.comm	_pushbutton_pending,8,3         ; @pushbutton_pending
	.comm	_cpqhp_ctrl_list,8,3            ; @cpqhp_ctrl_list
l_.str.1:                               ; @.str.1
	.asciz	"event_thread signals exit\n"

	.no_dead_strip	_event_thread
.subsections_via_symbols
