	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv090x_get_std
_stv090x_get_std:                       ## @stv090x_get_std
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_DMDSTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_STV090x_READ_DEMOD
	movl	%eax, %ebx
	movq	_HEADER_MODE_FIELD@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	%eax, %edi
	callq	_STV090x_GETFIELD_Px
	cmpl	$2, %eax
	jne	LBB0_2
## %bb.1:
	movq	_STV090x_DVBS2@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movl	(%r15), %esi
	movl	%ebx, %edi
	callq	_STV090x_GETFIELD_Px
	cmpl	$3, %eax
	jne	LBB0_3
## %bb.4:
	movq	_FECM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_STV090x_READ_DEMOD
	movq	_DSS_DVB_FIELD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_STV090x_GETFIELD_Px
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.6:
	movq	_STV090x_DSS@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movq	_STV090x_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_STV090x_DVBS1@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMDSTATE,4,2                   ## @DMDSTATE
	.comm	_HEADER_MODE_FIELD,4,2          ## @HEADER_MODE_FIELD
	.comm	_STV090x_DVBS2,4,2              ## @STV090x_DVBS2
	.comm	_FECM,4,2                       ## @FECM
	.comm	_DSS_DVB_FIELD,4,2              ## @DSS_DVB_FIELD
	.comm	_STV090x_DSS,4,2                ## @STV090x_DSS
	.comm	_STV090x_DVBS1,4,2              ## @STV090x_DVBS1
	.comm	_STV090x_ERROR,4,2              ## @STV090x_ERROR
	.no_dead_strip	_stv090x_get_std
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv090x_get_std
_stv090x_get_std:                       ; @stv090x_get_std
	.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
Lloh0:
	adrp	x8, _DMDSTATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMDSTATE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_STV090x_READ_DEMOD
	mov	x20, x0
Lloh3:
	adrp	x21, _HEADER_MODE_FIELD@GOTPAGE
Lloh4:
	ldr	x21, [x21, _HEADER_MODE_FIELD@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_STV090x_GETFIELD_Px
	cmp	w0, #2
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _STV090x_DVBS2@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STV090x_DVBS2@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_STV090x_GETFIELD_Px
	cmp	w0, #3
	b.ne	LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _FECM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FECM@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
Lloh10:
	adrp	x8, _DSS_DVB_FIELD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DSS_DVB_FIELD@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_STV090x_GETFIELD_Px
Lloh13:
	adrp	x8, _STV090x_DVBS1@GOTPAGE
Lloh14:
	ldr	x8, [x8, _STV090x_DVBS1@GOTPAGEOFF]
Lloh15:
	adrp	x9, _STV090x_DSS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _STV090x_DSS@GOTPAGEOFF]
	cmp	w0, #1
	csel	x8, x9, x8, eq
	b	LBB0_5
LBB0_4:
Lloh17:
	adrp	x8, _STV090x_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _STV090x_ERROR@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_DMDSTATE,4,2                   ; @DMDSTATE
	.comm	_HEADER_MODE_FIELD,4,2          ; @HEADER_MODE_FIELD
	.comm	_STV090x_DVBS2,4,2              ; @STV090x_DVBS2
	.comm	_FECM,4,2                       ; @FECM
	.comm	_DSS_DVB_FIELD,4,2              ; @DSS_DVB_FIELD
	.comm	_STV090x_DSS,4,2                ; @STV090x_DSS
	.comm	_STV090x_DVBS1,4,2              ; @STV090x_DVBS1
	.comm	_STV090x_ERROR,4,2              ; @STV090x_ERROR
	.no_dead_strip	_stv090x_get_std
.subsections_via_symbols
