	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv090x_set_mis
_stv090x_set_mis:                       ## @stv090x_set_mis
	.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	%rdi, %r14
	movq	_FE_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpl	$256, %esi                      ## imm = 0x100
	jb	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdx
	xorl	%r15d, %r15d
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
	movq	_PDELCTRL1@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_STV090x_READ_DEMOD
	movl	%eax, %ebx
	movq	_FILTER_EN_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	xorl	%edx, %edx
	callq	_STV090x_SETFIELD_Px
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	jns	LBB0_7
	jmp	LBB0_6
LBB0_2:
	movl	%esi, %r15d
	leaq	L_.str.1(%rip), %rdx
	movl	$1, %esi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_dprintk
	movq	_PDELCTRL1@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_STV090x_READ_DEMOD
	movl	%eax, %ebx
	movq	_FILTER_EN_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	movl	$1, %edx
	callq	_STV090x_SETFIELD_Px
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_6
## %bb.3:
	movq	_ISIENTRY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_6
## %bb.4:
	movq	_ISIBITENA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$255, %edx
	callq	_STV090x_WRITE_DEMOD
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jns	LBB0_7
LBB0_6:
	movq	_FE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rdx
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
	movl	$-1, %r15d
LBB0_7:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FE_DEBUG,4,2                   ## @FE_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Disable MIS filtering"

	.comm	_PDELCTRL1,4,2                  ## @PDELCTRL1
	.comm	_FILTER_EN_FIELD,4,2            ## @FILTER_EN_FIELD
L_.str.1:                               ## @.str.1
	.asciz	"Enable MIS filtering - %d"

	.comm	_ISIENTRY,4,2                   ## @ISIENTRY
	.comm	_ISIBITENA,4,2                  ## @ISIBITENA
	.comm	_FE_ERROR,4,2                   ## @FE_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"I/O error"

	.no_dead_strip	_stv090x_set_mis
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv090x_set_mis
_stv090x_set_mis:                       ; @stv090x_set_mis
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
Lloh0:
	adrp	x8, _FE_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FE_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	cmp	w1, #256
	b.lo	LBB0_2
; %bb.1:
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #1
	bl	_dprintk
Lloh5:
	adrp	x21, _PDELCTRL1@GOTPAGE
Lloh6:
	ldr	x21, [x21, _PDELCTRL1@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
	mov	x20, x0
Lloh7:
	adrp	x8, _FILTER_EN_FIELD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FILTER_EN_FIELD@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_STV090x_SETFIELD_Px
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_STV090x_WRITE_DEMOD
	mov	x8, x0
	mov	w0, #0
	tbz	x8, #63, LBB0_7
	b	LBB0_6
LBB0_2:
	mov	x20, x1
	str	x20, [sp]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #1
	bl	_dprintk
Lloh12:
	adrp	x22, _PDELCTRL1@GOTPAGE
Lloh13:
	ldr	x22, [x22, _PDELCTRL1@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
	mov	x21, x0
Lloh14:
	adrp	x8, _FILTER_EN_FIELD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FILTER_EN_FIELD@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_STV090x_SETFIELD_Px
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x21
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_6
; %bb.3:
Lloh17:
	adrp	x8, _ISIENTRY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ISIENTRY@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_6
; %bb.4:
Lloh20:
	adrp	x8, _ISIBITENA@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ISIBITENA@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #255
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_6
; %bb.5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh23:
	adrp	x8, _FE_ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FE_ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x2, l_.str.2@PAGE
Lloh27:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_FE_DEBUG,4,2                   ; @FE_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Disable MIS filtering"

	.comm	_PDELCTRL1,4,2                  ; @PDELCTRL1
	.comm	_FILTER_EN_FIELD,4,2            ; @FILTER_EN_FIELD
l_.str.1:                               ; @.str.1
	.asciz	"Enable MIS filtering - %d"

	.comm	_ISIENTRY,4,2                   ; @ISIENTRY
	.comm	_ISIBITENA,4,2                  ; @ISIBITENA
	.comm	_FE_ERROR,4,2                   ; @FE_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"I/O error"

	.no_dead_strip	_stv090x_set_mis
.subsections_via_symbols
