	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tc3589x_gpio_irq
_tc3589x_gpio_irq:                      ## @tc3589x_gpio_irq
	.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, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rsi), %rbx
	movq	_CACHE_NR_BANKS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_TC3589x_GPIOMIS0@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	movq	%r15, %rcx
	callq	_tc3589x_block_read
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	jle	LBB0_10
## %bb.3:
	xorl	%r14d, %r14d
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r14
	jge	LBB0_9
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movl	(%r15,%r14,4), %ebx
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	(,%r14,8), %r15d
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edi
	callq	___ffs
	movl	%eax, %r13d
	leal	(%r15,%r13), %esi
	movl	(%r12), %edi
	callq	_irq_find_mapping
	movl	%eax, %edi
	callq	_handle_nested_irq
	movl	$-2, %eax
	movl	%r13d, %ecx
	roll	%cl, %eax
	andl	%eax, %ebx
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_TC3589x_GPIOIC0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r14, %rsi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15,%r14,4), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_tc3589x_reg_write
	jmp	LBB0_8
LBB0_9:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rcx
LBB0_10:
	movl	(%rcx), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CACHE_NR_BANKS,4,2             ## @CACHE_NR_BANKS
	.comm	_TC3589x_GPIOMIS0,4,2           ## @TC3589x_GPIOMIS0
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_TC3589x_GPIOIC0,8,3            ## @TC3589x_GPIOIC0
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_tc3589x_gpio_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tc3589x_gpio_irq
_tc3589x_gpio_irq:                      ; @tc3589x_gpio_irq
	.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]
	ldr	x20, [x1, #8]
Lloh3:
	adrp	x8, _CACHE_NR_BANKS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CACHE_NR_BANKS@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
Lloh8:
	adrp	x8, _TC3589x_GPIOMIS0@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TC3589x_GPIOMIS0@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	mov	x3, x21
	bl	_tc3589x_block_read
	tbnz	w0, #31, LBB0_8
; %bb.1:
	mov	x0, x21
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x25, #0
Lloh11:
	adrp	x24, _IRQ_HANDLED@GOTPAGE
Lloh12:
	ldr	x24, [x24, _IRQ_HANDLED@GOTPAGEOFF]
	mov	w26, #1
Lloh13:
	adrp	x27, _TC3589x_GPIOIC0@GOTPAGE
Lloh14:
	ldr	x27, [x27, _TC3589x_GPIOIC0@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	mov	x0, x21
	bl	_ARRAY_SIZE
	cmp	x25, w0, sxtw
	b.ge	LBB0_10
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	w22, [x21, x25, lsl #2]
	cbz	w22, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	w28, w25, #3
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	bl	___ffs
	mov	x23, x0
	add	w1, w0, w28
	ldr	w0, [x19]
	bl	_irq_find_mapping
	bl	_handle_nested_irq
	lsl	w8, w26, w23
	bics	w22, w22, w8
	b.ne	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x27]
	add	x1, x8, x25
	ldr	w2, [x21, x25, lsl #2]
	mov	x0, x20
	bl	_tc3589x_reg_write
	b	LBB0_3
LBB0_8:
Lloh15:
	adrp	x24, _IRQ_NONE@GOTPAGE
Lloh16:
	ldr	x24, [x24, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh17:
	adrp	x24, _IRQ_HANDLED@GOTPAGE
Lloh18:
	ldr	x24, [x24, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x24]
	ldur	x8, [x29, #-88]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	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_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_CACHE_NR_BANKS,4,2             ; @CACHE_NR_BANKS
	.comm	_TC3589x_GPIOMIS0,4,2           ; @TC3589x_GPIOMIS0
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_TC3589x_GPIOIC0,8,3            ; @TC3589x_GPIOIC0
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_tc3589x_gpio_irq
.subsections_via_symbols
