	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa7134_read_std
_saa7134_read_std:                      ## @saa7134_read_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_SAA7134_STATUS_VIDEO1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_saa_readb
	movl	%eax, %ebx
	movq	_SAA7134_STATUS_VIDEO2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_saa_readb
	movl	%eax, %ecx
	movl	$128, %eax
	testb	$1, %cl
	je	LBB0_2
## %bb.1:
	andl	$3, %ebx
	leaq	_saa7134_read_std.stds(%rip), %rax
	movl	(%rax,%rbx,4), %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @saa7134_read_std.stds
_saa7134_read_std.stds:
	.long	128                             ## 0x80
	.long	131                             ## 0x83
	.long	130                             ## 0x82
	.long	129                             ## 0x81

	.comm	_SAA7134_STATUS_VIDEO1,4,2      ## @SAA7134_STATUS_VIDEO1
	.comm	_SAA7134_STATUS_VIDEO2,4,2      ## @SAA7134_STATUS_VIDEO2
	.no_dead_strip	_saa7134_read_std
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa7134_read_std
_saa7134_read_std:                      ; @saa7134_read_std
	.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
Lloh0:
	adrp	x8, _SAA7134_STATUS_VIDEO1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SAA7134_STATUS_VIDEO1@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_saa_readb
	mov	x19, x0
Lloh3:
	adrp	x8, _SAA7134_STATUS_VIDEO2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SAA7134_STATUS_VIDEO2@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_saa_readb
	tbnz	w0, #0, LBB0_2
; %bb.1:
	mov	w0, #128
	b	LBB0_3
LBB0_2:
	and	w8, w19, #0x3
Lloh6:
	adrp	x9, _saa7134_read_std.stds@PAGE
Lloh7:
	add	x9, x9, _saa7134_read_std.stds@PAGEOFF
	ldr	w0, [x9, w8, uxtw #2]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @saa7134_read_std.stds
_saa7134_read_std.stds:
	.long	128                             ; 0x80
	.long	131                             ; 0x83
	.long	130                             ; 0x82
	.long	129                             ; 0x81

	.comm	_SAA7134_STATUS_VIDEO1,4,2      ; @SAA7134_STATUS_VIDEO1
	.comm	_SAA7134_STATUS_VIDEO2,4,2      ; @SAA7134_STATUS_VIDEO2
	.no_dead_strip	_saa7134_read_std
.subsections_via_symbols
