	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function interrupt_hw
_interrupt_hw:                          ## @interrupt_hw
	.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
	movq	_ISR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_saa7146_read
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %r14d
	movq	32(%rbx), %rcx
	movl	%eax, %esi
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.3:
	movl	(%rcx), %eax
	movl	%r14d, %esi
	testl	%r14d, %eax
	je	LBB0_7
## %bb.4:
	movq	8(%rcx), %rdx
	movl	%r14d, %ecx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.5:
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	callq	*%rdx
	movq	32(%rbx), %rax
	movl	(%rax), %eax
	movl	-44(%rbp), %ecx
LBB0_6:
	notl	%eax
	andl	%ecx, %eax
	movl	%eax, -44(%rbp)
	movl	%eax, %esi
LBB0_7:
	movq	_MASK_27@GOTPCREL(%rip), %r15
	testl	%esi, (%r15)
	je	LBB0_12
## %bb.8:
	leaq	L_.str(%rip), %rdi
	callq	_DEB_INT
	cmpq	$0, 24(%rbx)
	je	LBB0_11
## %bb.9:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	-44(%rbp), %esi
	movq	%rbx, %rdi
	callq	*%rax
LBB0_11:
	movl	(%r15), %esi
	notl	%esi
	andl	-44(%rbp), %esi
	movl	%esi, -44(%rbp)
LBB0_12:
	movq	_MASK_28@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%esi, %eax
	je	LBB0_13
## %bb.14:
	cmpq	$0, 24(%rbx)
	je	LBB0_17
## %bb.15:
	movq	16(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.16:
	movq	%rbx, %rdi
	callq	*%rcx
	movl	(%r15), %eax
	movl	-44(%rbp), %esi
LBB0_17:
	movq	%r12, %r15
	notl	%eax
	andl	%eax, %esi
	movl	%esi, -44(%rbp)
	jmp	LBB0_18
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_13:
	movq	%r12, %r15
LBB0_18:
	movq	_MASK_16@GOTPCREL(%rip), %r13
	movq	_MASK_17@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	orl	(%r13), %eax
	testl	%esi, %eax
	je	LBB0_23
## %bb.19:
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_SAA7146_IER_DISABLE
	cmpq	$0, (%rbx)
	je	LBB0_21
## %bb.20:
	movq	$0, (%rbx)
	leaq	12(%rbx), %rdi
	callq	_wake_up
	jmp	LBB0_22
LBB0_21:
	movq	_PSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_saa7146_read
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_SSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_saa7146_read
	movl	8(%rbx), %esi
	movl	-44(%rbp), %edx
	leaq	L_.str.1(%rip), %rdi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%eax, %r8d
	callq	_pr_warn
LBB0_22:
	movl	(%r12), %esi
	orl	(%r13), %esi
	notl	%esi
	andl	-44(%rbp), %esi
	movl	%esi, -44(%rbp)
LBB0_23:
	testl	%esi, %esi
	je	LBB0_25
## %bb.24:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_ERR
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_ERR
	movl	-44(%rbp), %esi
	movq	%rbx, %rdi
	callq	_SAA7146_IER_DISABLE
LBB0_25:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_saa7146_write
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_26:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISR,4,2                        ## @ISR
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_MASK_27,4,2                    ## @MASK_27
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"irq: RPS0 (0x%08x)\n"

	.comm	_MASK_28,4,2                    ## @MASK_28
	.comm	_MASK_16,4,2                    ## @MASK_16
	.comm	_MASK_17,4,2                    ## @MASK_17
	.comm	_PSR,4,2                        ## @PSR
	.comm	_SSR,4,2                        ## @SSR
L_.str.1:                               ## @.str.1
	.asciz	"%s: unexpected i2c irq: isr %08x psr %08x ssr %08x\n"

L_.str.2:                               ## @.str.2
	.asciz	"warning: interrupt enabled, but not handled properly.(0x%08x)\n"

L_.str.3:                               ## @.str.3
	.asciz	"disabling interrupt source(s)!\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function interrupt_hw
_interrupt_hw:                          ; @interrupt_hw
	.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
Lloh0:
	adrp	x22, _ISR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ISR@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_saa7146_read
	str	w0, [sp, #12]
	cbz	w0, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	x9, [x19, #32]
	mov	x1, x0
	cbz	x9, LBB0_8
; %bb.2:
	ldr	w8, [x9]
	mov	x1, x20
	tst	w8, w20
	b.eq	LBB0_8
; %bb.3:
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_6
; %bb.4:
	add	x1, sp, #12
	mov	x0, x19
	blr	x9
	ldr	x8, [x19, #32]
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	b	LBB0_7
LBB0_5:
Lloh2:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_26
LBB0_6:
	mov	x9, x20
LBB0_7:
	bic	w1, w9, w8
	str	w1, [sp, #12]
LBB0_8:
Lloh4:
	adrp	x21, _MASK_27@GOTPAGE
Lloh5:
	ldr	x21, [x21, _MASK_27@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w1
	b.eq	LBB0_13
; %bb.9:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_DEB_INT
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_12
; %bb.10:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_12
; %bb.11:
	ldr	w1, [sp, #12]
	mov	x0, x19
	blr	x8
LBB0_12:
	ldr	w8, [x21]
	ldr	w9, [sp, #12]
	bic	w1, w9, w8
	str	w1, [sp, #12]
LBB0_13:
Lloh8:
	adrp	x21, _MASK_28@GOTPAGE
Lloh9:
	ldr	x21, [x21, _MASK_28@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w1
	b.eq	LBB0_18
; %bb.14:
	ldr	x9, [x19, #24]
	cbz	x9, LBB0_17
; %bb.15:
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_17
; %bb.16:
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	blr	x9
	ldr	w8, [x21]
	ldr	w1, [sp, #12]
LBB0_17:
	bic	w1, w1, w8
	str	w1, [sp, #12]
LBB0_18:
Lloh10:
	adrp	x23, _MASK_16@GOTPAGE
Lloh11:
	ldr	x23, [x23, _MASK_16@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh12:
	adrp	x24, _MASK_17@GOTPAGE
Lloh13:
	ldr	x24, [x24, _MASK_17@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w9, w8
	tst	w8, w1
	b.eq	LBB0_23
; %bb.19:
	mov	x0, x19
	mov	x1, x8
	bl	_SAA7146_IER_DISABLE
	ldr	x8, [x19]
	cbz	x8, LBB0_21
; %bb.20:
	mov	x0, x19
	str	xzr, [x0], #12
	bl	_wake_up
	b	LBB0_22
LBB0_21:
Lloh14:
	adrp	x8, _PSR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PSR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_saa7146_read
	mov	x21, x0
Lloh17:
	adrp	x8, _SSR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SSR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_saa7146_read
	mov	x4, x0
	ldr	w1, [x19, #8]
	ldr	w2, [sp, #12]
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x3, x21
	bl	_pr_warn
LBB0_22:
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w8, w9, w8
	ldr	w9, [sp, #12]
	bic	w1, w9, w8
	str	w1, [sp, #12]
LBB0_23:
	cbz	w1, LBB0_25
; %bb.24:
	str	x1, [sp]
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_ERR
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_ERR
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_SAA7146_IER_DISABLE
LBB0_25:
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_saa7146_write
Lloh26:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_26:
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_ISR,4,2                        ; @ISR
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_MASK_27,4,2                    ; @MASK_27
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"irq: RPS0 (0x%08x)\n"

	.comm	_MASK_28,4,2                    ; @MASK_28
	.comm	_MASK_16,4,2                    ; @MASK_16
	.comm	_MASK_17,4,2                    ; @MASK_17
	.comm	_PSR,4,2                        ; @PSR
	.comm	_SSR,4,2                        ; @SSR
l_.str.1:                               ; @.str.1
	.asciz	"%s: unexpected i2c irq: isr %08x psr %08x ssr %08x\n"

l_.str.2:                               ; @.str.2
	.asciz	"warning: interrupt enabled, but not handled properly.(0x%08x)\n"

l_.str.3:                               ; @.str.3
	.asciz	"disabling interrupt source(s)!\n"

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