	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa711x_s_stream
_saa711x_s_stream:                      ## @saa711x_s_stream
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_to_state
	movq	%rax, %r15
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%ebx, %ebx
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_v4l2_dbg
	cmpl	%ebx, (%r15)
	je	LBB0_3
## %bb.1:
	movl	%ebx, (%r15)
	movl	4(%r15), %edi
	movq	_R_87_I_PORT_I_O_ENA_OUT_CLK_AND_GATED@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_saa711x_has_reg
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	(%rbx), %esi
	movl	(%r15), %edx
	movq	%r14, %rdi
	callq	_saa711x_write
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s output\n"

L_.str.1:                               ## @.str.1
	.asciz	"enable"

L_.str.2:                               ## @.str.2
	.asciz	"disable"

	.comm	_R_87_I_PORT_I_O_ENA_OUT_CLK_AND_GATED,4,2 ## @R_87_I_PORT_I_O_ENA_OUT_CLK_AND_GATED
	.no_dead_strip	_saa711x_s_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa711x_s_stream
_saa711x_s_stream:                      ; @saa711x_s_stream
	.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	x21, x1
	mov	x19, x0
	bl	_to_state
	mov	x20, x0
Lloh0:
	adrp	x8, _debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh5:
	adrp	x9, l_.str.2@PAGE
Lloh6:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w21, #0
	csel	x4, x9, x8, eq
Lloh7:
	adrp	x3, l_.str@PAGE
Lloh8:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l2_dbg
	ldr	w8, [x20]
	cmp	w8, w21
	b.eq	LBB0_3
; %bb.1:
	str	w21, [x20]
	ldr	w0, [x20, #4]
Lloh9:
	adrp	x21, _R_87_I_PORT_I_O_ENA_OUT_CLK_AND_GATED@GOTPAGE
Lloh10:
	ldr	x21, [x21, _R_87_I_PORT_I_O_ENA_OUT_CLK_AND_GATED@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_saa711x_has_reg
	cbz	w0, LBB0_3
; %bb.2:
	ldr	w1, [x21]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_saa711x_write
LBB0_3:
	mov	w0, #0
	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 AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s output\n"

l_.str.1:                               ; @.str.1
	.asciz	"enable"

l_.str.2:                               ; @.str.2
	.asciz	"disable"

	.comm	_R_87_I_PORT_I_O_ENA_OUT_CLK_AND_GATED,4,2 ; @R_87_I_PORT_I_O_ENA_OUT_CLK_AND_GATED
	.no_dead_strip	_saa711x_s_stream
.subsections_via_symbols
