	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zforce_irq_thread
_zforce_irq_thread:                     ## @zforce_irq_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_FRAME_MAXSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	cmpq	$0, 48(%rbx)
	je	LBB0_2
## %bb.1:
	movl	$20, %edi
	callq	_msleep
	jmp	LBB0_26
LBB0_2:
	movq	32(%rbx), %r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	cmpq	$0, 24(%rbx)
	jne	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	callq	_device_may_wakeup
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_pm_stay_awake
LBB0_5:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_RESPONSE_ID@GOTPCREL(%rip), %r12
	leaq	LJTI0_0(%rip), %r14
	jmp	LBB0_6
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	32(%rbx), %rdi
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %edx
LBB0_20:                                ##   in Loop: Header=BB0_6 Depth=1
	callq	_dev_err
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	40(%rbx), %edi
	callq	_gpiod_get_value_cansleep
	testq	%rax, %rax
	je	LBB0_22
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_zforce_read_packet
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_PAYLOAD_BODY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%r15,%rax,4), %r13
	movq	(%r12), %rax
	movl	(%r13,%rax,4), %eax
	leal	-128(%rax), %ecx
	cmpl	$8, %ecx
	ja	LBB0_19
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movslq	(%r14,%rcx,4), %rcx
	addq	%r14, %rcx
	jmpq	*%rcx
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_RESPONSE_DATA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%r13,%rcx,4), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_zforce_complete
	jmp	LBB0_21
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_RESPONSE_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	4(%r13,%rax,4), %edx
	shll	$8, %edx
	orl	(%r13,%rax,4), %edx
	movl	%edx, 4(%rbx)
	movl	12(%r13,%rax,4), %ecx
	shll	$8, %ecx
	orl	8(%r13,%rax,4), %ecx
	movl	%ecx, 8(%rbx)
	movl	20(%r13,%rax,4), %r8d
	shll	$8, %r8d
	orl	16(%r13,%rax,4), %r8d
	movl	%r8d, 12(%rbx)
	movl	28(%r13,%rax,4), %r9d
	shll	$8, %r9d
	orl	24(%r13,%rax,4), %r9d
	movl	%r9d, 16(%rbx)
	movq	32(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	(%r12), %rax
	movl	(%r13,%rax,4), %esi
	movq	%rbx, %rdi
	jmp	LBB0_15
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, 24(%rbx)
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_device_may_wakeup
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$500, %esi                      ## imm = 0x1F4
	callq	_pm_wakeup_event
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_RESPONSE_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(,%rax,4), %rsi
	addq	%r13, %rsi
	movq	%rbx, %rdi
	callq	_zforce_touch_event
	jmp	LBB0_21
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	32(%rbx), %rdi
	movq	_RESPONSE_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r13,%rax,4), %edx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_20
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_RESPONSE_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r13,%rax,4), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	movl	$136, %esi
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	xorl	%edx, %edx
	callq	_zforce_complete
	jmp	LBB0_21
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_dev_err
LBB0_22:
	cmpq	$0, 24(%rbx)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_25
## %bb.23:
	movq	%rbx, %rdi
	callq	_device_may_wakeup
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	movq	%rbx, %rdi
	callq	_pm_relax
LBB0_25:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_26:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_28
## %bb.27:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_17
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_10
	.long	L0_0_set_18
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_FRAME_MAXSIZE,4,2              ## @FRAME_MAXSIZE
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"handling interrupt\n"

L_.str.1:                               ## @.str.1
	.asciz	"could not read packet, ret: %d\n"

	.comm	_PAYLOAD_BODY,8,3               ## @PAYLOAD_BODY
	.comm	_RESPONSE_ID,8,3                ## @RESPONSE_ID
	.comm	_RESPONSE_DATA,8,3              ## @RESPONSE_DATA
L_.str.2:                               ## @.str.2
	.asciz	"Firmware Version %04x:%04x %04x:%04x\n"

L_.str.3:                               ## @.str.3
	.asciz	"invalid command: 0x%x\n"

L_.str.4:                               ## @.str.4
	.asciz	"unrecognized response id: 0x%x\n"

L_.str.5:                               ## @.str.5
	.asciz	"finished interrupt\n"

	.no_dead_strip	_zforce_irq_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zforce_irq_thread
_zforce_irq_thread:                     ; @zforce_irq_thread
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _FRAME_MAXSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FRAME_MAXSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	x8, [x1, #48]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #20
	bl	_msleep
	b	LBB0_26
LBB0_2:
	ldr	x20, [x19, #32]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_device_may_wakeup
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_pm_stay_awake
LBB0_5:
Lloh10:
	adrp	x25, _PAYLOAD_BODY@GOTPAGE
Lloh11:
	ldr	x25, [x25, _PAYLOAD_BODY@GOTPAGEOFF]
Lloh12:
	adrp	x26, _RESPONSE_ID@GOTPAGE
Lloh13:
	ldr	x26, [x26, _RESPONSE_ID@GOTPAGEOFF]
Lloh14:
	adrp	x27, lJTI0_0@PAGE
Lloh15:
	add	x27, x27, lJTI0_0@PAGEOFF
Lloh16:
	adrp	x28, _RESPONSE_DATA@GOTPAGE
Lloh17:
	ldr	x28, [x28, _RESPONSE_DATA@GOTPAGEOFF]
Lloh18:
	adrp	x23, l_.str.2@PAGE
Lloh19:
	add	x23, x23, l_.str.2@PAGEOFF
Lloh20:
	adrp	x24, l_.str.3@PAGE
Lloh21:
	add	x24, x24, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [x19, #32]
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x8
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	bl	_dev_err
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x19, #40]
	bl	_gpiod_get_value_cansleep
	cbz	x0, LBB0_22
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_zforce_read_packet
	tbnz	w0, #31, LBB0_21
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x25]
	add	x22, x21, x8, lsl #2
	ldr	x8, [x26]
	ldr	w8, [x22, x8, lsl #2]
	sub	w9, w8, #128
	cmp	w9, #8
	b.hi	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	adr	x10, LBB0_12
	ldrb	w11, [x27, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [x28]
	ldr	w2, [x22, x9, lsl #2]
	mov	x0, x19
	mov	x1, x8
	bl	_zforce_complete
	b	LBB0_8
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x28]
	add	x8, x22, x8, lsl #2
	ldp	w10, w9, [x8]
	orr	w9, w10, w9, lsl #8
	ldp	w11, w10, [x8, #8]
	orr	w10, w11, w10, lsl #8
	stp	w9, w10, [x19, #4]
	ldp	w12, w11, [x8, #16]
	orr	w11, w12, w11, lsl #8
	ldp	w8, w12, [x8, #24]
	orr	w8, w8, w12, lsl #8
	stp	w11, w8, [x19, #12]
	ldr	x0, [x19, #32]
	sub	sp, sp, #32
	stp	x11, x8, [sp, #16]
	stp	x9, x10, [sp]
	mov	x1, x23
	bl	_dev_dbg
	add	sp, sp, #32
	ldr	x8, [x26]
	ldr	w1, [x22, x8, lsl #2]
	mov	x0, x19
	b	LBB0_20
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
	bl	_device_may_wakeup
	cbz	x0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
	mov	w1, #500
	bl	_pm_wakeup_event
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x28]
	add	x1, x22, x8, lsl #2
	mov	x0, x19
	bl	_zforce_touch_event
	b	LBB0_8
LBB0_18:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [x19, #32]
	ldr	x8, [x28]
	ldr	w2, [x22, x8, lsl #2]
	mov	x1, x24
	b	LBB0_7
LBB0_19:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x28]
	ldr	w8, [x22, x8, lsl #2]
	str	w8, [x19]
	mov	x0, x19
	mov	w1, #136
LBB0_20:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	w2, #0
	bl	_zforce_complete
	b	LBB0_8
LBB0_21:
	mov	x2, x0
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_22:
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_25
; %bb.23:
	mov	x0, x20
	bl	_device_may_wakeup
	cbz	x0, LBB0_25
; %bb.24:
	mov	x0, x20
	bl	_pm_relax
LBB0_25:
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
LBB0_26:
Lloh28:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	ldur	x8, [x29, #-88]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.27:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_13-LBB0_12)>>2
	.byte	(LBB0_12-LBB0_12)>>2
	.byte	(LBB0_12-LBB0_12)>>2
	.byte	(LBB0_12-LBB0_12)>>2
	.byte	(LBB0_12-LBB0_12)>>2
	.byte	(LBB0_12-LBB0_12)>>2
	.byte	(LBB0_14-LBB0_12)>>2
	.byte	(LBB0_18-LBB0_12)>>2
	.byte	(LBB0_19-LBB0_12)>>2
                                        ; -- End function
	.comm	_FRAME_MAXSIZE,4,2              ; @FRAME_MAXSIZE
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"handling interrupt\n"

l_.str.1:                               ; @.str.1
	.asciz	"could not read packet, ret: %d\n"

	.comm	_PAYLOAD_BODY,8,3               ; @PAYLOAD_BODY
	.comm	_RESPONSE_ID,8,3                ; @RESPONSE_ID
	.comm	_RESPONSE_DATA,8,3              ; @RESPONSE_DATA
l_.str.2:                               ; @.str.2
	.asciz	"Firmware Version %04x:%04x %04x:%04x\n"

l_.str.3:                               ; @.str.3
	.asciz	"invalid command: 0x%x\n"

l_.str.4:                               ; @.str.4
	.asciz	"unrecognized response id: 0x%x\n"

l_.str.5:                               ; @.str.5
	.asciz	"finished interrupt\n"

	.no_dead_strip	_zforce_irq_thread
.subsections_via_symbols
