	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ciintf_slot_reset
_ciintf_slot_reset:                     ## @ciintf_slot_reset
	.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
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_4
LBB0_2:
	movq	(%rdi), %r15
	movq	8(%r15), %r14
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_dprintk
	movq	_SLOTSTATUS_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	_SAA7146_GPIO_OUTHI@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_saa7146_setgpio
	movl	(%rbx), %edx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_saa7146_setgpio
	movl	$2, %edi
	callq	_msleep
	movq	_SAA7146_GPIO_OUTLO@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_saa7146_setgpio
	movl	$20, %edi
	callq	_msleep
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_saa7146_setgpio
	movq	_BUDGET_VIDEO_PORTB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ttpci_budget_set_video_port
	movl	$20, %edi
	callq	_msleep
	cmpq	$0, 16(%r15)
	je	LBB0_4
## %bb.3:
	movl	(%r15), %edi
	callq	_dvb_frontend_reinitialise
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ciintf_slot_reset\n"

	.comm	_SLOTSTATUS_RESET,4,2           ## @SLOTSTATUS_RESET
	.comm	_SAA7146_GPIO_OUTHI,4,2         ## @SAA7146_GPIO_OUTHI
	.comm	_SAA7146_GPIO_OUTLO,4,2         ## @SAA7146_GPIO_OUTLO
	.comm	_BUDGET_VIDEO_PORTB,4,2         ## @BUDGET_VIDEO_PORTB
	.no_dead_strip	_ciintf_slot_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ciintf_slot_reset
_ciintf_slot_reset:                     ; @ciintf_slot_reset
	.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
	cbz	w1, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_2:
	ldr	x20, [x0]
	ldr	x19, [x20, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_dprintk
Lloh5:
	adrp	x8, _SLOTSTATUS_RESET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SLOTSTATUS_RESET@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x20, #24]
Lloh8:
	adrp	x21, _SAA7146_GPIO_OUTHI@GOTPAGE
Lloh9:
	ldr	x21, [x21, _SAA7146_GPIO_OUTHI@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	mov	w1, #2
	bl	_saa7146_setgpio
	ldr	w2, [x21]
	mov	x0, x19
	mov	w1, #0
	bl	_saa7146_setgpio
	mov	w0, #2
	bl	_msleep
Lloh10:
	adrp	x21, _SAA7146_GPIO_OUTLO@GOTPAGE
Lloh11:
	ldr	x21, [x21, _SAA7146_GPIO_OUTLO@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	mov	w1, #0
	bl	_saa7146_setgpio
	mov	w0, #20
	bl	_msleep
	ldr	w2, [x21]
	mov	x0, x19
	mov	w1, #2
	bl	_saa7146_setgpio
Lloh12:
	adrp	x8, _BUDGET_VIDEO_PORTB@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BUDGET_VIDEO_PORTB@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ttpci_budget_set_video_port
	mov	w0, #20
	bl	_msleep
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x20]
	bl	_dvb_frontend_reinitialise
LBB0_4:
	mov	w0, #0
LBB0_5:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ciintf_slot_reset\n"

	.comm	_SLOTSTATUS_RESET,4,2           ; @SLOTSTATUS_RESET
	.comm	_SAA7146_GPIO_OUTHI,4,2         ; @SAA7146_GPIO_OUTHI
	.comm	_SAA7146_GPIO_OUTLO,4,2         ; @SAA7146_GPIO_OUTLO
	.comm	_BUDGET_VIDEO_PORTB,4,2         ; @BUDGET_VIDEO_PORTB
	.no_dead_strip	_ciintf_slot_reset
.subsections_via_symbols
