	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa7146_set_window
_saa7146_set_window:                    ## @saa7146_set_window
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %eax
	movl	%esi, %r13d
	movq	%rdi, %r12
	movq	(%rdi), %rbx
	movl	(%rbx), %edx
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	movl	4(%rbx), %edx
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	movl	$0, -60(%rbp)
	movl	$0, -44(%rbp)
	movq	16(%rbx), %rdx
	movl	(%rdx), %edx
	addl	%edx, %edx
	leaq	-60(%rbp), %r8
	leaq	-44(%rbp), %r9
	movl	%ecx, %esi
	movl	%eax, %ecx
	callq	_calculate_v_scale_registers
	movl	$0, -56(%rbp)
	movl	$0, -52(%rbp)
	movl	$0, -48(%rbp)
	movq	16(%rbx), %rax
	movl	4(%rax), %esi
	movl	8(%rbx), %ecx
	leaq	-48(%rbp), %r15
	leaq	-52(%rbp), %rax
	leaq	-56(%rbp), %r14
	movq	%r12, %rdi
	movl	%r13d, %edx
	movq	%r14, %r8
	leaq	-44(%rbp), %r9
	pushq	%r15
	pushq	%rax
	callq	_calculate_h_scale_registers
	addq	$16, %rsp
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_calculate_hxo_and_hyo
	movq	%r12, %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	movq	%r14, %rcx
	callq	_calculate_hps_source_and_sync
	movq	_HPS_V_SCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-60(%rbp), %edx
	movq	%r12, %rdi
	callq	_saa7146_write
	movq	_HPS_V_GAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edx
	movq	%r12, %rdi
	callq	_saa7146_write
	movq	_HPS_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-56(%rbp), %edx
	movq	%r12, %rdi
	callq	_saa7146_write
	movq	_HPS_H_PRESCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-52(%rbp), %edx
	movq	%r12, %rdi
	callq	_saa7146_write
	movq	_HPS_H_SCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %edx
	movq	%r12, %rdi
	callq	_saa7146_write
	movq	_MASK_05@GOTPCREL(%rip), %rax
	movq	_MASK_06@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_MC2@GOTPCREL(%rip), %rax
	movq	_MASK_21@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_MASK_22@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r12, %rdi
	callq	_saa7146_write
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HPS_V_SCALE,4,2                ## @HPS_V_SCALE
	.comm	_HPS_V_GAIN,4,2                 ## @HPS_V_GAIN
	.comm	_HPS_CTRL,4,2                   ## @HPS_CTRL
	.comm	_HPS_H_PRESCALE,4,2             ## @HPS_H_PRESCALE
	.comm	_HPS_H_SCALE,4,2                ## @HPS_H_SCALE
	.comm	_MC2,4,2                        ## @MC2
	.comm	_MASK_05,4,2                    ## @MASK_05
	.comm	_MASK_06,4,2                    ## @MASK_06
	.comm	_MASK_21,4,2                    ## @MASK_21
	.comm	_MASK_22,4,2                    ## @MASK_22
	.no_dead_strip	_saa7146_set_window
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa7146_set_window
_saa7146_set_window:                    ; @saa7146_set_window
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x8, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0]
	ldp	w22, w23, [x21]
	str	xzr, [sp, #24]
	ldr	x9, [x21, #16]
	ldr	w9, [x9]
	lsl	w2, w9, #1
	add	x4, sp, #28
	add	x5, sp, #24
	mov	x1, x3
	mov	x3, x8
	bl	_calculate_v_scale_registers
	str	xzr, [sp, #16]
	str	wzr, [sp, #12]
	ldr	x8, [x21, #16]
	ldr	w1, [x8, #4]
	ldr	w3, [x21, #8]
	add	x4, sp, #20
	add	x5, sp, #24
	add	x6, sp, #16
	add	x7, sp, #12
	mov	x0, x19
	mov	x2, x20
	bl	_calculate_h_scale_registers
	add	x1, sp, #12
	add	x2, sp, #20
	mov	x0, x21
	bl	_calculate_hxo_and_hyo
	add	x3, sp, #20
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_calculate_hps_source_and_sync
Lloh0:
	adrp	x8, _HPS_V_SCALE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HPS_V_SCALE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [sp, #28]
	mov	x0, x19
	bl	_saa7146_write
Lloh3:
	adrp	x8, _HPS_V_GAIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HPS_V_GAIN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [sp, #24]
	mov	x0, x19
	bl	_saa7146_write
Lloh6:
	adrp	x8, _HPS_CTRL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HPS_CTRL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [sp, #20]
	mov	x0, x19
	bl	_saa7146_write
Lloh9:
	adrp	x8, _HPS_H_PRESCALE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HPS_H_PRESCALE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [sp, #16]
	mov	x0, x19
	bl	_saa7146_write
Lloh12:
	adrp	x8, _HPS_H_SCALE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HPS_H_SCALE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_saa7146_write
Lloh15:
	adrp	x8, _MC2@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MC2@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _MASK_05@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MASK_05@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _MASK_06@GOTPAGE
Lloh22:
	ldr	x9, [x9, _MASK_06@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh24:
	adrp	x9, _MASK_21@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MASK_21@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh27:
	adrp	x9, _MASK_22@GOTPAGE
Lloh28:
	ldr	x9, [x9, _MASK_22@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_saa7146_write
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HPS_V_SCALE,4,2                ; @HPS_V_SCALE
	.comm	_HPS_V_GAIN,4,2                 ; @HPS_V_GAIN
	.comm	_HPS_CTRL,4,2                   ; @HPS_CTRL
	.comm	_HPS_H_PRESCALE,4,2             ; @HPS_H_PRESCALE
	.comm	_HPS_H_SCALE,4,2                ; @HPS_H_SCALE
	.comm	_MC2,4,2                        ; @MC2
	.comm	_MASK_05,4,2                    ; @MASK_05
	.comm	_MASK_06,4,2                    ; @MASK_06
	.comm	_MASK_21,4,2                    ; @MASK_21
	.comm	_MASK_22,4,2                    ; @MASK_22
	.no_dead_strip	_saa7146_set_window
.subsections_via_symbols
