	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tc3589x_irq
_tc3589x_irq:                           ## @tc3589x_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	_TC3589x_IRQST@GOTPCREL(%rip), %r13
	movq	_IRQ_NONE@GOTPCREL(%rip), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_tc3589x_reg_read
	testl	%eax, %eax
	je	LBB0_6
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_tc3589x_reg_read
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edi
	callq	___ffs
	movl	%eax, %r15d
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_irq_create_mapping
	movl	%eax, %edi
	callq	_handle_nested_irq
	movl	$-2, %eax
	movl	%r15d, %ecx
	roll	%cl, %eax
	andl	%eax, %ebx
	jne	LBB0_4
	jmp	LBB0_5
LBB0_6:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r12
LBB0_7:
	movl	(%r12), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TC3589x_IRQST,4,2              ## @TC3589x_IRQST
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_tc3589x_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tc3589x_irq
_tc3589x_irq:                           ; @tc3589x_irq
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
Lloh0:
	adrp	x23, _TC3589x_IRQST@GOTPAGE
Lloh1:
	ldr	x23, [x23, _TC3589x_IRQST@GOTPAGEOFF]
Lloh2:
	adrp	x22, _IRQ_NONE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _IRQ_NONE@GOTPAGEOFF]
	mov	w25, #1
Lloh4:
	adrp	x24, _IRQ_HANDLED@GOTPAGE
Lloh5:
	ldr	x24, [x24, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x23]
	mov	x0, x19
	bl	_tc3589x_reg_read
	cbz	w0, LBB0_5
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldr	w1, [x23]
	mov	x0, x19
	bl	_tc3589x_reg_read
	tbnz	w0, #31, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x20, x0
	cbz	w0, LBB0_1
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	bl	___ffs
	mov	x21, x0
	ldr	w0, [x19]
	mov	x1, x21
	bl	_irq_create_mapping
	bl	_handle_nested_irq
	lsl	w8, w25, w21
	bics	w20, w20, w8
	b.ne	LBB0_4
	b	LBB0_1
LBB0_5:
	mov	x22, x24
LBB0_6:
	ldr	w0, [x22]
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TC3589x_IRQST,4,2              ; @TC3589x_IRQST
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_tc3589x_irq
.subsections_via_symbols
