	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv7842_setup_format
_adv7842_setup_format:                  ## @adv7842_setup_format
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	12(%rdi), %r15
	movq	(%rdi), %rax
	xorl	%r14d, %r14d
	cmpq	$0, 16(%rax)
	movl	$0, %ecx
	je	LBB0_2
## %bb.1:
	movq	_ADV7842_RGB_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_2:
	movq	%r15, %rdi
	movl	$2, %esi
	movl	$2, %edx
	callq	_io_write_clr_set
	movq	(%rbx), %rax
	movl	8(%rbx), %edx
	orl	(%rax), %edx
	movq	%r15, %rdi
	movl	$3, %esi
	callq	_io_write
	movq	%rbx, %rdi
	callq	_adv7842_op_ch_sel
	movq	%r15, %rdi
	movl	$4, %esi
	movl	$224, %edx
	movl	%eax, %ecx
	callq	_io_write_clr_set
	movq	(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_4
## %bb.3:
	movq	_ADV7842_OP_SWAP_CB_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_4:
	movq	%r15, %rdi
	movl	$5, %esi
	movl	$1, %edx
	movl	%r14d, %ecx
	callq	_io_write_clr_set
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_rgb_quantization_range     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ADV7842_RGB_OUT,4,2            ## @ADV7842_RGB_OUT
	.comm	_ADV7842_OP_SWAP_CB_CR,4,2      ## @ADV7842_OP_SWAP_CB_CR
	.no_dead_strip	_adv7842_setup_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv7842_setup_format
_adv7842_setup_format:                  ; @adv7842_setup_format
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x20, x0, #12
	ldr	x8, [x0]
	ldr	x8, [x8, #16]
Lloh0:
	adrp	x9, _ADV7842_RGB_OUT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ADV7842_RGB_OUT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w3, wzr, w9, eq
	mov	x0, x20
	mov	w1, #2
	mov	w2, #2
	bl	_io_write_clr_set
	ldr	x8, [x19]
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w2, w9, w8
	mov	x0, x20
	mov	w1, #3
	bl	_io_write
	mov	x0, x19
	bl	_adv7842_op_ch_sel
	mov	x3, x0
	mov	x0, x20
	mov	w1, #4
	mov	w2, #224
	bl	_io_write_clr_set
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
Lloh3:
	adrp	x9, _ADV7842_OP_SWAP_CB_CR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ADV7842_OP_SWAP_CB_CR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w3, wzr, w9, eq
	mov	x0, x20
	mov	w1, #5
	mov	w2, #1
	bl	_io_write_clr_set
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_set_rgb_quantization_range
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ADV7842_RGB_OUT,4,2            ; @ADV7842_RGB_OUT
	.comm	_ADV7842_OP_SWAP_CB_CR,4,2      ; @ADV7842_OP_SWAP_CB_CR
	.no_dead_strip	_adv7842_setup_format
.subsections_via_symbols
