	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_ssc_interrupt
_atmel_ssc_interrupt:                   ## @atmel_ssc_interrupt
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	8(%rsi), %rax
	movl	(%rax), %edi
	movq	_SR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ssc_readl
	movq	%rax, %r15
	movq	8(%r12), %rax
	movl	(%rax), %edi
	movq	_IMR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ssc_readl
	movq	%rax, %r14
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_7
## %bb.1:
	andl	%r15d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	movq	(%rdi,%rbx,8), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rax), %rdx
	movl	4(%rdx), %esi
	orl	(%rdx), %esi
	testl	%r14d, %esi
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	*%rcx
	movq	(%r12), %rdi
	jmp	LBB0_6
LBB0_7:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SR,4,2                         ## @SR
	.comm	_IMR,4,2                        ## @IMR
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_atmel_ssc_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_ssc_interrupt
_atmel_ssc_interrupt:                   ; @atmel_ssc_interrupt
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	ldr	x8, [x1, #8]
	ldr	w0, [x8]
Lloh0:
	adrp	x8, _SR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ssc_readl
	mov	x20, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _IMR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IMR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_ssc_readl
	mov	x21, x0
	ldr	x0, [x19]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x22, #0
	and	w20, w21, w20
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	ldr	x8, [x0, x22, lsl #3]
	cbz	x8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x8, #16]
	ldp	w11, w10, [x10]
	orr	w10, w10, w11
	tst	w10, w20
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x8]
	mov	x0, x20
	blr	x9
	ldr	x0, [x19]
	b	LBB0_2
LBB0_7:
Lloh6:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SR,4,2                         ; @SR
	.comm	_IMR,4,2                        ; @IMR
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_atmel_ssc_interrupt
.subsections_via_symbols
