	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ciintf_interrupt
_ciintf_interrupt:                      ## @ciintf_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$0, 8(%rdi)
	je	LBB0_10
## %bb.1:
	movq	%rdi, %rbx
	addq	$8, %rdi
	movq	16(%rbx), %r14
	movq	_DEBICICTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DEBIADDR_CICONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	callq	_ttpci_budget_debiread
	movq	_CICONTROL_CAMDETECT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.2:
	movq	_SAA7146_GPIO_IRQLO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_saa7146_setgpio
	movl	(%rbx), %eax
	movq	_SLOTSTATUS_NONE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.3:
	movq	_SLOTSTATUS_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	addq	$4, %rbx
	movq	_DVB_CA_EN50221_CAMCHANGE_INSERTED@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_8:
	movq	_SAA7146_GPIO_IRQHI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_saa7146_setgpio
	movq	_SLOTSTATUS_OCCUPIED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_10
## %bb.9:
	movq	_SLOTSTATUS_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	addq	$4, %rbx
	movq	_DVB_CA_EN50221_CAMCHANGE_REMOVED@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dvb_ca_en50221_camchange_irq   ## TAILCALL
LBB0_5:
	movq	_SLOTSTATUS_RESET@GOTPCREL(%rip), %rdx
	movq	_SLOTSTATUS_READY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, (%rdx)
	je	LBB0_6
## %bb.11:
	movl	%ecx, (%rbx)
	addq	$4, %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dvb_ca_en50221_camready_irq    ## TAILCALL
LBB0_6:
	testl	%eax, %ecx
	je	LBB0_10
## %bb.7:
	addq	$4, %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dvb_ca_en50221_frda_irq        ## TAILCALL
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBICICTL,4,2                  ## @DEBICICTL
	.comm	_DEBIADDR_CICONTROL,4,2         ## @DEBIADDR_CICONTROL
	.comm	_CICONTROL_CAMDETECT,4,2        ## @CICONTROL_CAMDETECT
	.comm	_SAA7146_GPIO_IRQLO,4,2         ## @SAA7146_GPIO_IRQLO
	.comm	_SLOTSTATUS_NONE,4,2            ## @SLOTSTATUS_NONE
	.comm	_SLOTSTATUS_PRESENT,4,2         ## @SLOTSTATUS_PRESENT
	.comm	_DVB_CA_EN50221_CAMCHANGE_INSERTED,4,2 ## @DVB_CA_EN50221_CAMCHANGE_INSERTED
	.comm	_SLOTSTATUS_RESET,4,2           ## @SLOTSTATUS_RESET
	.comm	_SLOTSTATUS_READY,4,2           ## @SLOTSTATUS_READY
	.comm	_SAA7146_GPIO_IRQHI,4,2         ## @SAA7146_GPIO_IRQHI
	.comm	_SLOTSTATUS_OCCUPIED,4,2        ## @SLOTSTATUS_OCCUPIED
	.comm	_DVB_CA_EN50221_CAMCHANGE_REMOVED,4,2 ## @DVB_CA_EN50221_CAMCHANGE_REMOVED
	.no_dead_strip	_ciintf_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ciintf_interrupt
_ciintf_interrupt:                      ; @ciintf_interrupt
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0, #8]!
	cbz	w8, LBB0_11
; %bb.1:
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _DEBICICTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBICICTL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _DEBIADDR_CICONTROL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DEBIADDR_CICONTROL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w3, #1
	mov	w4, #1
	mov	w5, #0
	bl	_ttpci_budget_debiread
Lloh6:
	adrp	x8, _CICONTROL_CAMDETECT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CICONTROL_CAMDETECT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.2:
Lloh9:
	adrp	x8, _SAA7146_GPIO_IRQLO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SAA7146_GPIO_IRQLO@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_saa7146_setgpio
	ldr	w8, [x19]
Lloh12:
	adrp	x9, _SLOTSTATUS_NONE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SLOTSTATUS_NONE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.3:
Lloh15:
	adrp	x8, _SLOTSTATUS_PRESENT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SLOTSTATUS_PRESENT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19], #4
Lloh18:
	adrp	x8, _DVB_CA_EN50221_CAMCHANGE_INSERTED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DVB_CA_EN50221_CAMCHANGE_INSERTED@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh20:
	adrp	x8, _SAA7146_GPIO_IRQHI@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SAA7146_GPIO_IRQHI@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_saa7146_setgpio
	ldr	w8, [x19]
Lloh23:
	adrp	x9, _SLOTSTATUS_OCCUPIED@GOTPAGE
Lloh24:
	ldr	x9, [x9, _SLOTSTATUS_OCCUPIED@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.5:
Lloh26:
	adrp	x8, _SLOTSTATUS_NONE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SLOTSTATUS_NONE@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [x19], #4
Lloh29:
	adrp	x8, _DVB_CA_EN50221_CAMCHANGE_REMOVED@GOTPAGE
Lloh30:
	ldr	x8, [x8, _DVB_CA_EN50221_CAMCHANGE_REMOVED@GOTPAGEOFF]
LBB0_6:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dvb_ca_en50221_camchange_irq
LBB0_7:
Lloh31:
	adrp	x9, _SLOTSTATUS_RESET@GOTPAGE
Lloh32:
	ldr	x9, [x9, _SLOTSTATUS_RESET@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x9]
Lloh34:
	adrp	x9, _SLOTSTATUS_READY@GOTPAGE
Lloh35:
	ldr	x9, [x9, _SLOTSTATUS_READY@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	tst	w10, w8
	b.eq	LBB0_9
; %bb.8:
	str	w9, [x19], #4
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dvb_ca_en50221_camready_irq
LBB0_9:
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
	add	x0, x19, #4
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dvb_ca_en50221_frda_irq
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBICICTL,4,2                  ; @DEBICICTL
	.comm	_DEBIADDR_CICONTROL,4,2         ; @DEBIADDR_CICONTROL
	.comm	_CICONTROL_CAMDETECT,4,2        ; @CICONTROL_CAMDETECT
	.comm	_SAA7146_GPIO_IRQLO,4,2         ; @SAA7146_GPIO_IRQLO
	.comm	_SLOTSTATUS_NONE,4,2            ; @SLOTSTATUS_NONE
	.comm	_SLOTSTATUS_PRESENT,4,2         ; @SLOTSTATUS_PRESENT
	.comm	_DVB_CA_EN50221_CAMCHANGE_INSERTED,4,2 ; @DVB_CA_EN50221_CAMCHANGE_INSERTED
	.comm	_SLOTSTATUS_RESET,4,2           ; @SLOTSTATUS_RESET
	.comm	_SLOTSTATUS_READY,4,2           ; @SLOTSTATUS_READY
	.comm	_SAA7146_GPIO_IRQHI,4,2         ; @SAA7146_GPIO_IRQHI
	.comm	_SLOTSTATUS_OCCUPIED,4,2        ; @SLOTSTATUS_OCCUPIED
	.comm	_DVB_CA_EN50221_CAMCHANGE_REMOVED,4,2 ; @DVB_CA_EN50221_CAMCHANGE_REMOVED
	.no_dead_strip	_ciintf_interrupt
.subsections_via_symbols
