	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_pixel_encoding
_set_pixel_encoding:                    ## @set_pixel_encoding
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	(%rdi), %rax
	cmpq	$0, (%rax)
	movq	_FMT_CONTROL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_FMT_PIXEL_ENCODING@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_FMT_SUBSAMPLING_MODE@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	je	LBB0_2
## %bb.1:
	movq	_FMT_CBCR_BIT_REDUCTION_BYPASS@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$0, (%rsp)
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_REG_UPDATE_3
	jmp	LBB0_3
LBB0_2:
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_REG_UPDATE_2
LBB0_3:
	movq	(%rbx), %rax
	movq	_PIXEL_ENCODING_YCBCR422@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movl	(%r14), %edi
	movl	(%r15), %esi
	movq	_FMT_SUBSAMPLING_ORDER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %edx
	xorl	%r8d, %r8d
	callq	_REG_UPDATE_2
	movq	(%rbx), %rax
LBB0_5:
	movq	_PIXEL_ENCODING_YCBCR420@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movl	(%r14), %edi
	movl	(%r15), %esi
	movl	(%r12), %ecx
	movq	_FMT_CBCR_BIT_REDUCTION_BYPASS@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$1, (%rsp)
	movl	$2, %edx
	movl	$2, %r8d
	callq	_REG_UPDATE_3
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FMT_CONTROL,4,2                ## @FMT_CONTROL
	.comm	_FMT_PIXEL_ENCODING,4,2         ## @FMT_PIXEL_ENCODING
	.comm	_FMT_SUBSAMPLING_MODE,4,2       ## @FMT_SUBSAMPLING_MODE
	.comm	_FMT_CBCR_BIT_REDUCTION_BYPASS,4,2 ## @FMT_CBCR_BIT_REDUCTION_BYPASS
	.comm	_PIXEL_ENCODING_YCBCR422,8,3    ## @PIXEL_ENCODING_YCBCR422
	.comm	_FMT_SUBSAMPLING_ORDER,4,2      ## @FMT_SUBSAMPLING_ORDER
	.comm	_PIXEL_ENCODING_YCBCR420,8,3    ## @PIXEL_ENCODING_YCBCR420
	.no_dead_strip	_set_pixel_encoding
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_pixel_encoding
_set_pixel_encoding:                    ; @set_pixel_encoding
	.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, x1
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x20, _FMT_CONTROL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _FMT_CONTROL@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x21, _FMT_PIXEL_ENCODING@GOTPAGE
Lloh3:
	ldr	x21, [x21, _FMT_PIXEL_ENCODING@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh4:
	adrp	x22, _FMT_SUBSAMPLING_MODE@GOTPAGE
Lloh5:
	ldr	x22, [x22, _FMT_SUBSAMPLING_MODE@GOTPAGEOFF]
	ldr	w3, [x22]
Lloh6:
	adrp	x23, _FMT_CBCR_BIT_REDUCTION_BYPASS@GOTPAGE
Lloh7:
	ldr	x23, [x23, _FMT_CBCR_BIT_REDUCTION_BYPASS@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w5, [x23]
	mov	w2, #0
	mov	w4, #0
	mov	w6, #0
	bl	_REG_UPDATE_3
	b	LBB0_3
LBB0_2:
	mov	w2, #0
	mov	w4, #0
	bl	_REG_UPDATE_2
LBB0_3:
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _PIXEL_ENCODING_YCBCR422@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PIXEL_ENCODING_YCBCR422@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldr	w0, [x20]
	ldr	w1, [x21]
Lloh11:
	adrp	x8, _FMT_SUBSAMPLING_ORDER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FMT_SUBSAMPLING_ORDER@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	w2, #1
	mov	w4, #0
	bl	_REG_UPDATE_2
	ldr	x8, [x19]
LBB0_5:
Lloh14:
	adrp	x9, _PIXEL_ENCODING_YCBCR420@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PIXEL_ENCODING_YCBCR420@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	ldr	w0, [x20]
	ldr	w1, [x21]
	ldr	w3, [x22]
	ldr	w5, [x23]
	mov	w2, #2
	mov	w4, #2
	mov	w6, #1
	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
	b	_REG_UPDATE_3
LBB0_7:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_FMT_CONTROL,4,2                ; @FMT_CONTROL
	.comm	_FMT_PIXEL_ENCODING,4,2         ; @FMT_PIXEL_ENCODING
	.comm	_FMT_SUBSAMPLING_MODE,4,2       ; @FMT_SUBSAMPLING_MODE
	.comm	_FMT_CBCR_BIT_REDUCTION_BYPASS,4,2 ; @FMT_CBCR_BIT_REDUCTION_BYPASS
	.comm	_PIXEL_ENCODING_YCBCR422,8,3    ; @PIXEL_ENCODING_YCBCR422
	.comm	_FMT_SUBSAMPLING_ORDER,4,2      ; @FMT_SUBSAMPLING_ORDER
	.comm	_PIXEL_ENCODING_YCBCR420,8,3    ; @PIXEL_ENCODING_YCBCR420
	.no_dead_strip	_set_pixel_encoding
.subsections_via_symbols
