	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7146_set_hps_source_and_sync ## -- Begin function saa7146_set_hps_source_and_sync
	.p2align	4, 0x90
_saa7146_set_hps_source_and_sync:       ## @saa7146_set_hps_source_and_sync
	.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
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	movq	_HPS_CTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_saa7146_read
	movq	_MASK_31@GOTPCREL(%rip), %rcx
	movq	_MASK_30@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movq	_MASK_28@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	%r15d, %eax
	shll	$30, %eax
	movl	%r14d, %edx
	shll	$28, %edx
	orl	%eax, %edx
	orl	%esi, %edx
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_saa7146_write
	movq	_MC2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MASK_05@GOTPCREL(%rip), %rax
	movq	_MASK_21@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_saa7146_write
	movl	%r15d, (%r12)
	movl	%r14d, 4(%r12)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HPS_CTRL,4,2                   ## @HPS_CTRL
	.comm	_MASK_31,4,2                    ## @MASK_31
	.comm	_MASK_30,4,2                    ## @MASK_30
	.comm	_MASK_28,4,2                    ## @MASK_28
	.comm	_MC2,4,2                        ## @MC2
	.comm	_MASK_05,4,2                    ## @MASK_05
	.comm	_MASK_21,4,2                    ## @MASK_21
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7146_set_hps_source_and_sync ; -- Begin function saa7146_set_hps_source_and_sync
	.p2align	2
_saa7146_set_hps_source_and_sync:       ; @saa7146_set_hps_source_and_sync
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x0]
Lloh0:
	adrp	x23, _HPS_CTRL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _HPS_CTRL@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_saa7146_read
Lloh2:
	adrp	x8, _MASK_31@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MASK_31@GOTPAGEOFF]
Lloh4:
	adrp	x9, _MASK_30@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MASK_30@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _MASK_28@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MASK_28@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w8, w0, w8
	lsl	w9, w19, #28
	orr	w9, w9, w20, lsl #30
	orr	w2, w9, w8
	ldr	w1, [x23]
	mov	x0, x21
	bl	_saa7146_write
Lloh11:
	adrp	x8, _MC2@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MC2@GOTPAGEOFF]
Lloh13:
	adrp	x9, _MASK_05@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MASK_05@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	ldr	w8, [x9]
Lloh17:
	adrp	x9, _MASK_21@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MASK_21@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x21
	bl	_saa7146_write
	stp	w20, w19, [x22]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HPS_CTRL,4,2                   ; @HPS_CTRL
	.comm	_MASK_31,4,2                    ; @MASK_31
	.comm	_MASK_30,4,2                    ; @MASK_30
	.comm	_MASK_28,4,2                    ; @MASK_28
	.comm	_MC2,4,2                        ; @MC2
	.comm	_MASK_05,4,2                    ; @MASK_05
	.comm	_MASK_21,4,2                    ; @MASK_21
.subsections_via_symbols
