	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7146_enable_overlay         ## -- Begin function saa7146_enable_overlay
	.p2align	4, 0x90
_saa7146_enable_overlay:                ## @saa7146_enable_overlay
	.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	(%rdi), %r15
	movq	(%r15), %rbx
	movl	24(%rbx), %esi
	movl	8(%rbx), %ecx
	movl	12(%rbx), %edx
	movq	%r15, %rdi
	callq	_saa7146_set_window
	movl	20(%rbx), %esi
	movl	16(%rbx), %edx
	movl	12(%rbx), %ecx
	movl	8(%rbx), %r8d
	movq	(%rbx), %rax
	movl	4(%rax), %r9d
	movq	%r15, %rdi
	callq	_saa7146_set_position
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_saa7146_set_output_format
	movq	%r14, %rdi
	callq	_saa7146_set_clipping_rect
	movq	_MC1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MASK_06@GOTPCREL(%rip), %rax
	movq	_MASK_22@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r15, %rdi
	callq	_saa7146_write
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MC1,4,2                        ## @MC1
	.comm	_MASK_06,4,2                    ## @MASK_06
	.comm	_MASK_22,4,2                    ## @MASK_22
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7146_enable_overlay         ; -- Begin function saa7146_enable_overlay
	.p2align	2
_saa7146_enable_overlay:                ; @saa7146_enable_overlay
	.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
	ldr	x20, [x0]
	ldr	x21, [x20]
	ldr	w1, [x21, #24]
	ldp	w3, w2, [x21, #8]
	mov	x0, x20
	bl	_saa7146_set_window
	ldp	w2, w1, [x21, #16]
	ldp	w4, w3, [x21, #8]
	ldr	x8, [x21]
	ldr	w5, [x8, #4]
	mov	x0, x20
	bl	_saa7146_set_position
	ldr	x8, [x21]
	ldr	w1, [x8]
	mov	x0, x20
	bl	_saa7146_set_output_format
	mov	x0, x19
	bl	_saa7146_set_clipping_rect
Lloh0:
	adrp	x8, _MC1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MC1@GOTPAGEOFF]
Lloh2:
	adrp	x9, _MASK_06@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MASK_06@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _MASK_22@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MASK_22@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x20
	bl	_saa7146_write
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MC1,4,2                        ; @MC1
	.comm	_MASK_06,4,2                    ; @MASK_06
	.comm	_MASK_22,4,2                    ; @MASK_22
.subsections_via_symbols
