	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa7127_set_wss
_saa7127_set_wss:                       ## @saa7127_set_wss
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r15
	callq	_to_state
	movl	(%r13), %r14d
	xorl	%ebx, %ebx
	testl	%r14d, %r14d
	setne	%cl
	je	LBB0_4
## %bb.1:
	cmpq	$0, 8(%r13)
	jne	LBB0_3
## %bb.2:
	cmpl	$23, %r14d
	jne	LBB0_3
LBB0_4:
	movb	%cl, %bl
	cmpl	%ebx, (%rax)
	je	LBB0_6
## %bb.5:
	xorl	%r12d, %r12d
	testl	%r14d, %r14d
	setne	%r12b
	movq	_debug@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rcx
	leaq	L_.str.2(%rip), %r8
	cmovneq	%rcx, %r8
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r15, %rdx
	callq	_v4l2_dbg
	shll	$7, %r12d
	movq	%r15, %rdi
	movl	$39, %esi
	movl	%r12d, %edx
	callq	_saa7127_write
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
LBB0_6:
	xorl	%r12d, %r12d
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.7:
	movq	16(%r13), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movl	$38, %esi
	movq	%rax, %rbx
	callq	_saa7127_write
	movq	16(%r13), %rax
	movl	4(%rax), %edx
	andl	$63, %edx
	orl	$128, %edx
	movq	%r15, %rdi
	movl	$39, %esi
	callq	_saa7127_write
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_wss_strs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%r13), %rcx
	movl	(%rcx), %ecx
	andl	$15, %ecx
	movq	(%rax,%rcx,8), %r8
	leaq	L_.str.3(%rip), %rcx
	movl	$1, %edi
	movq	%r15, %rdx
	callq	_v4l2_dbg
	movq	16(%r13), %rax
	movl	4(%rax), %ecx
	andl	$63, %ecx
	shll	$8, %ecx
	orl	(%rax), %ecx
	movl	%ecx, 4(%rbx)
	jmp	LBB0_8
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_8:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Turn WSS %s\n"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"WSS mode: %s\n"

	.comm	_wss_strs,8,3                   ## @wss_strs
	.no_dead_strip	_saa7127_set_wss
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa7127_set_wss
_saa7127_set_wss:                       ; @saa7127_set_wss
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x21, x0
	bl	_to_state
	mov	x20, x0
	ldr	w23, [x19]
	cmp	w23, #0
	cset	w24, ne
	cbz	w23, LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	cmp	x8, #0
	ccmp	w23, #23, #0, eq
	b.eq	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_3:
	ldr	w8, [x20]
Lloh3:
	adrp	x22, _debug@GOTPAGE
Lloh4:
	ldr	x22, [x22, _debug@GOTPAGEOFF]
	cmp	w8, w24
	b.eq	LBB0_5
; %bb.4:
	cmp	w23, #0
	cset	w25, ne
	ldr	w1, [x22]
Lloh5:
	adrp	x8, l_.str.2@PAGE
Lloh6:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh7:
	adrp	x9, l_.str.1@PAGE
Lloh8:
	add	x9, x9, l_.str.1@PAGEOFF
	csel	x4, x9, x8, ne
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x21
	bl	_v4l2_dbg
	lsl	w2, w25, #7
	mov	x0, x21
	mov	w1, #39
	bl	_saa7127_write
	str	w24, [x20]
LBB0_5:
	cbz	w23, LBB0_7
; %bb.6:
	ldr	x8, [x19, #16]
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #38
	bl	_saa7127_write
	ldr	x8, [x19, #16]
	ldr	w8, [x8, #4]
	mov	w2, #128
	bfxil	w2, w8, #0, #6
	mov	x0, x21
	mov	w1, #39
	bl	_saa7127_write
	ldr	w1, [x22]
Lloh11:
	adrp	x8, _wss_strs@GOTPAGE
Lloh12:
	ldr	x8, [x8, _wss_strs@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x9, [x19, #16]
	ldr	w9, [x9]
	and	x9, x9, #0xf
	ldr	x4, [x8, x9, lsl #3]
Lloh14:
	adrp	x3, l_.str.3@PAGE
Lloh15:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	w0, #1
	mov	x2, x21
	bl	_v4l2_dbg
	mov	w0, #0
	ldr	x8, [x19, #16]
	ldp	w8, w9, [x8]
	ubfiz	w9, w9, #8, #6
	orr	w8, w9, w8
	str	w8, [x20, #4]
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Turn WSS %s\n"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"WSS mode: %s\n"

	.comm	_wss_strs,8,3                   ; @wss_strs
	.no_dead_strip	_saa7127_set_wss
.subsections_via_symbols
