	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv090x_set_s2rolloff
_stv090x_set_s2rolloff:                 ## @stv090x_set_s2rolloff
	.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, %rbx
	movq	(%rdi), %rax
	movl	(%rax), %r14d
	movq	_DEMOD@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_STV090x_READ_DEMOD
	movl	%eax, %r15d
	cmpl	$32, %r14d
	jg	LBB0_2
## %bb.1:
	movq	_MANUAL_SXROLLOFF_FIELD@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_MANUAL_S2ROLLOFF_FIELD@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movl	%r15d, %edi
	xorl	%edx, %edx
	callq	_STV090x_SETFIELD_Px
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	jns	LBB0_5
## %bb.4:
	movq	_FE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
	movl	$1, %esi
	callq	_dprintk
	movl	$-1, %r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEMOD,4,2                      ## @DEMOD
	.comm	_MANUAL_SXROLLOFF_FIELD,4,2     ## @MANUAL_SXROLLOFF_FIELD
	.comm	_MANUAL_S2ROLLOFF_FIELD,4,2     ## @MANUAL_S2ROLLOFF_FIELD
	.comm	_FE_ERROR,4,2                   ## @FE_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I/O error"

	.no_dead_strip	_stv090x_set_s2rolloff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv090x_set_s2rolloff
_stv090x_set_s2rolloff:                 ; @stv090x_set_s2rolloff
	.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, x0
	ldr	x8, [x0]
	ldr	w22, [x8]
Lloh0:
	adrp	x21, _DEMOD@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DEMOD@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_STV090x_READ_DEMOD
	mov	x20, x0
	cmp	w22, #32
	b.gt	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _MANUAL_SXROLLOFF_FIELD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MANUAL_SXROLLOFF_FIELD@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x8, _MANUAL_S2ROLLOFF_FIELD@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MANUAL_S2ROLLOFF_FIELD@GOTPAGEOFF]
LBB0_3:
	ldr	w1, [x8]
	mov	x0, x20
	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_5
; %bb.4:
Lloh6:
	adrp	x8, _FE_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FE_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	mov	w0, #-1
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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DEMOD,4,2                      ; @DEMOD
	.comm	_MANUAL_SXROLLOFF_FIELD,4,2     ; @MANUAL_SXROLLOFF_FIELD
	.comm	_MANUAL_S2ROLLOFF_FIELD,4,2     ; @MANUAL_S2ROLLOFF_FIELD
	.comm	_FE_ERROR,4,2                   ; @FE_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I/O error"

	.no_dead_strip	_stv090x_set_s2rolloff
.subsections_via_symbols
