	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tc_irq_handler
_tc_irq_handler:                        ## @tc_irq_handler
	.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	%rsi, %rbx
	movl	8(%rsi), %edi
	movq	_INTSTS_G@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	movq	_IRQ_NONE@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_9
## %bb.2:
	movq	_INT_SYSERR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movl	$0, -48(%rbp)
	movl	8(%rbx), %edi
	movq	_SYSSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_regmap_read
	movl	24(%rbx), %edi
	movl	-48(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_4:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	js	LBB0_8
## %bb.5:
	cmpq	$0, 16(%rbx)
	je	LBB0_8
## %bb.6:
	movl	-44(%rbp), %r15d
	callq	_INT_GPIO_H
	movl	%eax, %r14d
	andl	%r15d, %r14d
	movl	-44(%rbp), %r13d
	movq	(%rbx), %rdi
	callq	_INT_GPIO_LC
	movl	%eax, %r15d
	andl	%r13d, %r15d
	movl	24(%rbx), %edi
	movq	(%rbx), %rdx
	testl	%r14d, %r14d
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.3(%rip), %rax
	cmoveq	%rax, %rcx
	testl	%r15d, %r15d
	leaq	L_.str.4(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	orl	%r14d, %r15d
	je	LBB0_8
## %bb.7:
	movq	16(%rbx), %rdi
	callq	_drm_kms_helper_hotplug_event
LBB0_8:
	movl	8(%rbx), %edi
	movl	(%r12), %esi
	movl	-44(%rbp), %edx
	callq	_regmap_write
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rcx
LBB0_9:
	movl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTSTS_G,4,2                   ## @INTSTS_G
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_INT_SYSERR,4,2                 ## @INT_SYSERR
	.comm	_SYSSTAT,4,2                    ## @SYSSTAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"syserr %x\n"

L_.str.1:                               ## @.str.1
	.asciz	"GPIO%d: %s %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"H"

L_.str.3:                               ## @.str.3
	.space	1

L_.str.4:                               ## @.str.4
	.asciz	"LC"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_tc_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tc_irq_handler
_tc_irq_handler:                        ; @tc_irq_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	ldr	w0, [x1, #8]
Lloh0:
	adrp	x21, _INTSTS_G@GOTPAGE
Lloh1:
	ldr	x21, [x21, _INTSTS_G@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_regmap_read
	cbz	w0, LBB0_2
LBB0_1:
Lloh2:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_10
LBB0_2:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_1
; %bb.3:
Lloh4:
	adrp	x9, _INT_SYSERR@GOTPAGE
Lloh5:
	ldr	x9, [x9, _INT_SYSERR@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	str	wzr, [sp, #8]
	ldr	w0, [x19, #8]
Lloh7:
	adrp	x8, _SYSSTAT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SYSSTAT@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_regmap_read
	ldr	w0, [x19, #24]
	ldr	w2, [sp, #8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_5:
	ldr	x0, [x19]
	tbnz	x0, #63, LBB0_9
; %bb.6:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	w22, [sp, #12]
	bl	_INT_GPIO_H
	mov	x20, x0
	ldr	w23, [sp, #12]
	ldr	x0, [x19]
	bl	_INT_GPIO_LC
	ldr	w8, [x19, #24]
	ldr	x2, [x19]
Lloh12:
	adrp	x9, l_.str.3@PAGE
Lloh13:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh14:
	adrp	x10, l_.str.2@PAGE
Lloh15:
	add	x10, x10, l_.str.2@PAGEOFF
	ands	w11, w20, w22
	csel	x3, x10, x9, ne
	ands	w10, w0, w23
	orr	w20, w11, w10
Lloh16:
	adrp	x10, l_.str.4@PAGE
Lloh17:
	add	x10, x10, l_.str.4@PAGEOFF
	csel	x4, x10, x9, ne
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x8
	bl	_dev_dbg
	cbz	w20, LBB0_9
; %bb.8:
	ldr	x0, [x19, #16]
	bl	_drm_kms_helper_hotplug_event
LBB0_9:
	ldr	w0, [x19, #8]
	ldr	w1, [x21]
	ldr	w2, [sp, #12]
	bl	_regmap_write
Lloh20:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_INTSTS_G,4,2                   ; @INTSTS_G
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_INT_SYSERR,4,2                 ; @INT_SYSERR
	.comm	_SYSSTAT,4,2                    ; @SYSSTAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"syserr %x\n"

l_.str.1:                               ; @.str.1
	.asciz	"GPIO%d: %s %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"H"

l_.str.3:                               ; @.str.3
	.space	1

l_.str.4:                               ; @.str.4
	.asciz	"LC"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_tc_irq_handler
.subsections_via_symbols
