	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad9389b_csc_rgb_full2limit
_ad9389b_csc_rgb_full2limit:            ## @ad9389b_csc_rgb_full2limit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ad9389b_csc_conversion_mode
	subq	$8, %rsp
	movq	%rbx, %rdi
	movl	$3532, %esi                     ## imm = 0xDCC
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$256, %r8d                      ## imm = 0x100
	xorl	%r9d, %r9d
	pushq	$256                            ## imm = 0x100
	pushq	$3532                           ## imm = 0xDCC
	pushq	$0
	pushq	$0
	pushq	$256                            ## imm = 0x100
	pushq	$0
	pushq	$3532                           ## imm = 0xDCC
	callq	_ad9389b_csc_coeff
	addq	$64, %rsp
	movl	$2, %r14d
	movl	$1, %ecx
	jmp	LBB0_3
LBB0_1:
	movl	$4, %r14d
	xorl	%ecx, %ecx
LBB0_3:
	movq	%rbx, %rdi
	movl	$59, %esi
	movl	$254, %edx
	callq	_ad9389b_wr_and_or
	movq	%rbx, %rdi
	movl	$205, %esi
	movl	$249, %edx
	movl	%r14d, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ad9389b_wr_and_or              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ad9389b_csc_rgb_full2limit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad9389b_csc_rgb_full2limit
_ad9389b_csc_rgb_full2limit:            ; @ad9389b_csc_rgb_full2limit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	cbz	w1, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	bl	_ad9389b_csc_conversion_mode
	mov	w8, #256
	str	w8, [sp, #16]
	mov	x9, #15169824489472
	stp	x8, x9, [sp]
	mov	x0, x19
	mov	w1, #3532
	mov	w2, #0
	mov	w3, #0
	mov	w4, #256
	mov	w5, #0
	mov	w6, #3532
	mov	w7, #0
	bl	_ad9389b_csc_coeff
	mov	w20, #2
	mov	w3, #1
	b	LBB0_3
LBB0_2:
	mov	w3, #0
	mov	w20, #4
LBB0_3:
	mov	x0, x19
	mov	w1, #59
	mov	w2, #254
	bl	_ad9389b_wr_and_or
	mov	x0, x19
	mov	w1, #205
	mov	w2, #249
	mov	x3, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_ad9389b_wr_and_or
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ad9389b_csc_rgb_full2limit
.subsections_via_symbols
