	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_dst_registers
_set_dst_registers:                     ## @set_dst_registers
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	16(%rdi), %rax
	movq	24(%rdi), %r14
	movq	_Q_DATA_DST@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rcx
	movl	(%rax,%rcx), %edx
	movq	8(%rax,%rcx), %r12
	movq	_V4L2_COLORSPACE_SRGB@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_2
## %bb.1:
	movq	_VPE_RGB_OUT_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	8(%r15), %rax
	movl	(%rax), %edi
	movq	8(%r12), %rax
	movq	(%rax), %rsi
	movl	$255, %edx
	callq	_vpdma_set_bg_color
	movq	(%r12), %rax
	jmp	LBB0_4
LBB0_2:
	movq	(%r12), %rax
	movq	_V4L2_PIX_FMT_NV16@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_VPE_COLOR_SEPARATE_422@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_4:
	movq	_VPE_DS_SRC_DEI_SCALER@GOTPCREL(%rip), %rdx
	movq	_VPE_CSC_SRC_DEI_SCALER@GOTPCREL(%rip), %rcx
	movq	_V4L2_PIX_FMT_NV12@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	cmpq	(%rdi), %rax
	je	LBB0_6
## %bb.5:
	movq	_VPE_DS_BYPASS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_6:
	orl	(%rdx), %ebx
	orl	(%rcx), %ebx
	orl	%esi, %ebx
	movq	(%r14), %rax
	movl	%ebx, (%rax)
	movl	$1, (%r15)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Q_DATA_DST,8,3                 ## @Q_DATA_DST
	.comm	_V4L2_COLORSPACE_SRGB,4,2       ## @V4L2_COLORSPACE_SRGB
	.comm	_VPE_RGB_OUT_SELECT,4,2         ## @VPE_RGB_OUT_SELECT
	.comm	_V4L2_PIX_FMT_NV16,8,3          ## @V4L2_PIX_FMT_NV16
	.comm	_VPE_COLOR_SEPARATE_422,4,2     ## @VPE_COLOR_SEPARATE_422
	.comm	_VPE_DS_SRC_DEI_SCALER,4,2      ## @VPE_DS_SRC_DEI_SCALER
	.comm	_VPE_CSC_SRC_DEI_SCALER,4,2     ## @VPE_CSC_SRC_DEI_SCALER
	.comm	_V4L2_PIX_FMT_NV12,8,3          ## @V4L2_PIX_FMT_NV12
	.comm	_VPE_DS_BYPASS,4,2              ## @VPE_DS_BYPASS
	.no_dead_strip	_set_dst_registers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_dst_registers
_set_dst_registers:                     ; @set_dst_registers
	.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
	ldp	x8, x20, [x0, #16]
Lloh0:
	adrp	x9, _Q_DATA_DST@GOTPAGE
Lloh1:
	ldr	x9, [x9, _Q_DATA_DST@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x8, x8, x9, lsl #4
	ldr	w9, [x8]
	ldr	x22, [x8, #8]
Lloh3:
	adrp	x8, _V4L2_COLORSPACE_SRGB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_COLORSPACE_SRGB@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w9, w8
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _VPE_RGB_OUT_SELECT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VPE_RGB_OUT_SELECT@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	ldr	x8, [x22, #8]
	ldr	x1, [x8]
	mov	w2, #255
	bl	_vpdma_set_bg_color
	ldr	x8, [x22]
	b	LBB0_3
LBB0_2:
	ldr	x8, [x22]
Lloh9:
	adrp	x9, _V4L2_PIX_FMT_NV16@GOTPAGE
Lloh10:
	ldr	x9, [x9, _V4L2_PIX_FMT_NV16@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _VPE_COLOR_SEPARATE_422@GOTPAGE
Lloh13:
	ldr	x10, [x10, _VPE_COLOR_SEPARATE_422@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	cmp	x8, x9
	csel	w21, w10, wzr, eq
LBB0_3:
Lloh15:
	adrp	x9, _VPE_DS_SRC_DEI_SCALER@GOTPAGE
Lloh16:
	ldr	x9, [x9, _VPE_DS_SRC_DEI_SCALER@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _VPE_CSC_SRC_DEI_SCALER@GOTPAGE
Lloh19:
	ldr	x10, [x10, _VPE_CSC_SRC_DEI_SCALER@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
Lloh21:
	adrp	x11, _V4L2_PIX_FMT_NV12@GOTPAGE
Lloh22:
	ldr	x11, [x11, _V4L2_PIX_FMT_NV12@GOTPAGEOFF]
Lloh23:
	ldr	x11, [x11]
Lloh24:
	adrp	x12, _VPE_DS_BYPASS@GOTPAGE
Lloh25:
	ldr	x12, [x12, _VPE_DS_BYPASS@GOTPAGEOFF]
Lloh26:
	ldr	w12, [x12]
	cmp	x8, x11
	csel	w8, wzr, w12, eq
	orr	w9, w9, w21
	orr	w9, w9, w10
	orr	w8, w9, w8
	ldr	x9, [x20]
	str	w8, [x9]
	mov	w8, #1
	str	w8, [x19]
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_Q_DATA_DST,8,3                 ; @Q_DATA_DST
	.comm	_V4L2_COLORSPACE_SRGB,4,2       ; @V4L2_COLORSPACE_SRGB
	.comm	_VPE_RGB_OUT_SELECT,4,2         ; @VPE_RGB_OUT_SELECT
	.comm	_V4L2_PIX_FMT_NV16,8,3          ; @V4L2_PIX_FMT_NV16
	.comm	_VPE_COLOR_SEPARATE_422,4,2     ; @VPE_COLOR_SEPARATE_422
	.comm	_VPE_DS_SRC_DEI_SCALER,4,2      ; @VPE_DS_SRC_DEI_SCALER
	.comm	_VPE_CSC_SRC_DEI_SCALER,4,2     ; @VPE_CSC_SRC_DEI_SCALER
	.comm	_V4L2_PIX_FMT_NV12,8,3          ; @V4L2_PIX_FMT_NV12
	.comm	_VPE_DS_BYPASS,4,2              ; @VPE_DS_BYPASS
	.no_dead_strip	_set_dst_registers
.subsections_via_symbols
