	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_truncation
_set_truncation:                        ## @set_truncation
	.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
	movq	%rsi, %rbx
	movq	_FMT_BIT_DEPTH_CONTROL@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_FMT_TRUNCATE_EN@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_FMT_TRUNCATE_DEPTH@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movq	_FMT_TRUNCATE_MODE@GOTPCREL(%rip), %r14
	movl	(%r14), %r9d
	movl	$0, (%rsp)
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_REG_UPDATE_3
	movq	(%rbx), %rax
	movq	_PIXEL_ENCODING_YCBCR422@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	movl	8(%rbx), %eax
	cmpl	$2, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.3:
	movl	(%r13), %edi
	movl	(%r12), %esi
	movl	(%r15), %ecx
	movl	(%r14), %r9d
	movl	$0, (%rsp)
	movl	$1, %edx
	movl	$1, %r8d
	jmp	LBB0_4
LBB0_7:
	cmpq	$0, 16(%rbx)
	je	LBB0_5
## %bb.8:
	movl	(%r13), %edi
	movl	(%r12), %esi
	movl	(%r15), %ecx
	movl	(%r14), %r9d
	movl	8(%rbx), %r8d
	movl	24(%rbx), %eax
	movl	%eax, (%rsp)
	movl	$1, %edx
	jmp	LBB0_4
LBB0_6:
	movl	(%r13), %edi
	movl	(%r12), %esi
	movl	(%r15), %ecx
	movl	(%r14), %r9d
	movl	$0, (%rsp)
	movl	$1, %edx
	movl	$2, %r8d
LBB0_4:
	callq	_REG_UPDATE_3
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FMT_BIT_DEPTH_CONTROL,4,2      ## @FMT_BIT_DEPTH_CONTROL
	.comm	_FMT_TRUNCATE_EN,4,2            ## @FMT_TRUNCATE_EN
	.comm	_FMT_TRUNCATE_DEPTH,4,2         ## @FMT_TRUNCATE_DEPTH
	.comm	_FMT_TRUNCATE_MODE,4,2          ## @FMT_TRUNCATE_MODE
	.comm	_PIXEL_ENCODING_YCBCR422,8,3    ## @PIXEL_ENCODING_YCBCR422
	.no_dead_strip	_set_truncation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_truncation
_set_truncation:                        ; @set_truncation
	.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
Lloh0:
	adrp	x23, _FMT_BIT_DEPTH_CONTROL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FMT_BIT_DEPTH_CONTROL@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh2:
	adrp	x22, _FMT_TRUNCATE_EN@GOTPAGE
Lloh3:
	ldr	x22, [x22, _FMT_TRUNCATE_EN@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh4:
	adrp	x21, _FMT_TRUNCATE_DEPTH@GOTPAGE
Lloh5:
	ldr	x21, [x21, _FMT_TRUNCATE_DEPTH@GOTPAGEOFF]
	ldr	w3, [x21]
Lloh6:
	adrp	x20, _FMT_TRUNCATE_MODE@GOTPAGE
Lloh7:
	ldr	x20, [x20, _FMT_TRUNCATE_MODE@GOTPAGEOFF]
	ldr	w5, [x20]
	mov	w2, #0
	mov	w4, #0
	mov	w6, #0
	bl	_REG_UPDATE_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_4
; %bb.1:
	ldr	w8, [x19, #8]
	cmp	w8, #2
	b.eq	LBB0_7
; %bb.2:
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.3:
	ldr	w0, [x23]
	ldr	w1, [x22]
	ldr	w3, [x21]
	ldr	w5, [x20]
	mov	w2, #1
	mov	w4, #1
	b	LBB0_8
LBB0_4:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w0, [x23]
	ldr	w1, [x22]
	ldr	w3, [x21]
	ldr	w4, [x19, #8]
	ldr	w5, [x20]
	ldr	w6, [x19, #24]
	mov	w2, #1
	b	LBB0_9
LBB0_6:
	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
LBB0_7:
	ldr	w0, [x23]
	ldr	w1, [x22]
	ldr	w3, [x21]
	ldr	w5, [x20]
	mov	w2, #1
	mov	w4, #2
LBB0_8:
	mov	w6, #0
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_FMT_BIT_DEPTH_CONTROL,4,2      ; @FMT_BIT_DEPTH_CONTROL
	.comm	_FMT_TRUNCATE_EN,4,2            ; @FMT_TRUNCATE_EN
	.comm	_FMT_TRUNCATE_DEPTH,4,2         ; @FMT_TRUNCATE_DEPTH
	.comm	_FMT_TRUNCATE_MODE,4,2          ; @FMT_TRUNCATE_MODE
	.comm	_PIXEL_ENCODING_YCBCR422,8,3    ; @PIXEL_ENCODING_YCBCR422
	.no_dead_strip	_set_truncation
.subsections_via_symbols
