	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv7842_set_format
_adv7842_set_format:                    ## @adv7842_set_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	%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	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_to_state
	movq	%rax, %r12
	movq	(%rbx), %rax
	movq	_ADV7842_PAD_SOURCE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	(%r12), %rax
	movq	_ADV7842_MODE_SDP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.10:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_adv7842_get_format             ## TAILCALL
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_3:
	leaq	16(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	16(%rbx), %esi
	movq	%r12, %rdi
	callq	_adv7842_format_info
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_MEDIA_BUS_FMT_YUYV8_2X8@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_adv7842_format_info
	movq	%rax, %r13
LBB0_5:
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_adv7842_fill_format
	movl	(%r13), %eax
	movl	%eax, 16(%rbx)
	movq	8(%rbx), %rax
	movq	_V4L2_SUBDEV_FORMAT_TRY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	(%rbx), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_v4l2_subdev_get_try_format
	movl	16(%rbx), %ecx
	movl	%ecx, (%rax)
	jmp	LBB0_8
LBB0_7:
	movq	%r13, 8(%r12)
	movq	%r12, %rdi
	callq	_adv7842_setup_format
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADV7842_PAD_SOURCE,8,3         ## @ADV7842_PAD_SOURCE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ADV7842_MODE_SDP,8,3           ## @ADV7842_MODE_SDP
	.comm	_MEDIA_BUS_FMT_YUYV8_2X8,4,2    ## @MEDIA_BUS_FMT_YUYV8_2X8
	.comm	_V4L2_SUBDEV_FORMAT_TRY,8,3     ## @V4L2_SUBDEV_FORMAT_TRY
	.no_dead_strip	_adv7842_set_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv7842_set_format
_adv7842_set_format:                    ; @adv7842_set_format
	.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, x2
	mov	x20, x1
	mov	x21, x0
	bl	_to_state
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _ADV7842_PAD_SOURCE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ADV7842_PAD_SOURCE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x22, x0
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _ADV7842_MODE_SDP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ADV7842_MODE_SDP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	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	_adv7842_get_format
LBB0_3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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_5:
	mov	x23, x19
	ldr	w1, [x23, #16]!
	mov	x0, x22
	bl	_adv7842_format_info
	mov	x24, x0
	cbnz	x0, LBB0_7
; %bb.6:
Lloh9:
	adrp	x8, _MEDIA_BUS_FMT_YUYV8_2X8@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MEDIA_BUS_FMT_YUYV8_2X8@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_adv7842_format_info
	mov	x24, x0
LBB0_7:
	mov	x0, x22
	mov	x1, x23
	bl	_adv7842_fill_format
	ldr	w8, [x24]
	str	w8, [x19, #16]
	ldr	x8, [x19, #8]
Lloh12:
	adrp	x9, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGE
Lloh13:
	ldr	x9, [x9, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	ldr	x2, [x19]
	mov	x0, x21
	mov	x1, x20
	bl	_v4l2_subdev_get_try_format
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [x19, #16]
	str	w9, [x8]
	b	LBB0_4
LBB0_9:
	str	x24, [x22, #8]
	mov	x0, x22
	bl	_adv7842_setup_format
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ADV7842_PAD_SOURCE,8,3         ; @ADV7842_PAD_SOURCE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ADV7842_MODE_SDP,8,3           ; @ADV7842_MODE_SDP
	.comm	_MEDIA_BUS_FMT_YUYV8_2X8,4,2    ; @MEDIA_BUS_FMT_YUYV8_2X8
	.comm	_V4L2_SUBDEV_FORMAT_TRY,8,3     ; @V4L2_SUBDEV_FORMAT_TRY
	.no_dead_strip	_adv7842_set_format
.subsections_via_symbols
