	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ccdc_set_selection
_ccdc_set_selection:                    ## @ccdc_set_selection
	.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
	callq	_v4l2_get_subdevdata
	movq	%rax, %r15
	movq	(%rbx), %rax
	movq	_V4L2_SEL_TGT_CROP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	8(%rbx), %rax
	movq	_CCDC_PAD_SOURCE_OF@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_2
## %bb.4:
	movq	(%r15), %rax
	movq	_ISP_PIPELINE_STREAM_STOPPED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.6:
	movq	_V4L2_SEL_FLAG_KEEP_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rbx)
	je	LBB0_8
## %bb.7:
	movl	20(%rbx), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	___ccdc_get_crop
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	jmp	LBB0_9
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_8:
	movq	_CCDC_PAD_SINK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	20(%rbx), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	___ccdc_get_format
	leaq	24(%rbx), %rdx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_ccdc_try_crop
	movl	20(%rbx), %edx
	movl	24(%rbx), %r13d
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	___ccdc_get_crop
	movl	%r13d, (%rax)
	movq	(%r12), %rdx
	movl	20(%rbx), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	___ccdc_get_format
	movq	(%r12), %rdx
	movl	20(%rbx), %r8d
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rax, %rcx
	callq	_ccdc_try_format
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_SEL_TGT_CROP,8,3          ## @V4L2_SEL_TGT_CROP
	.comm	_CCDC_PAD_SOURCE_OF,8,3         ## @CCDC_PAD_SOURCE_OF
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ISP_PIPELINE_STREAM_STOPPED,8,3 ## @ISP_PIPELINE_STREAM_STOPPED
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_V4L2_SEL_FLAG_KEEP_CONFIG,4,2  ## @V4L2_SEL_FLAG_KEEP_CONFIG
	.comm	_CCDC_PAD_SINK,8,3              ## @CCDC_PAD_SINK
	.no_dead_strip	_ccdc_set_selection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ccdc_set_selection
_ccdc_set_selection:                    ; @ccdc_set_selection
	.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
	bl	_v4l2_get_subdevdata
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _V4L2_SEL_TGT_CROP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_SEL_TGT_CROP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x22, _CCDC_PAD_SOURCE_OF@GOTPAGE
Lloh4:
	ldr	x22, [x22, _CCDC_PAD_SOURCE_OF@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	mov	x21, x0
	ldr	x8, [x0]
Lloh5:
	adrp	x9, _ISP_PIPELINE_STREAM_STOPPED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ISP_PIPELINE_STREAM_STOPPED@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.3:
	ldr	w8, [x19, #16]
Lloh8:
	adrp	x9, _V4L2_SEL_FLAG_KEEP_CONFIG@GOTPAGE
Lloh9:
	ldr	x9, [x9, _V4L2_SEL_FLAG_KEEP_CONFIG@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.4:
	ldr	w2, [x19, #20]
	mov	x0, x21
	mov	x1, x20
	bl	___ccdc_get_crop
	mov	x8, x0
	mov	w0, #0
	ldr	w8, [x8]
	str	w8, [x19, #24]
	b	LBB0_7
LBB0_5:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
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
LBB0_8:
Lloh13:
	adrp	x8, _EBUSY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_6
LBB0_9:
Lloh15:
	adrp	x8, _CCDC_PAD_SINK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CCDC_PAD_SINK@GOTPAGEOFF]
Lloh17:
	ldr	x2, [x8]
	ldr	w3, [x19, #20]
	mov	x0, x21
	mov	x1, x20
	bl	___ccdc_get_format
	mov	x1, x0
	add	x2, x19, #24
	mov	x0, x21
	bl	_ccdc_try_crop
	ldp	w2, w23, [x19, #20]
	mov	x0, x21
	mov	x1, x20
	bl	___ccdc_get_crop
	str	w23, [x0]
	ldr	x2, [x22]
	ldr	w3, [x19, #20]
	mov	x0, x21
	mov	x1, x20
	bl	___ccdc_get_format
	mov	x3, x0
	ldr	x2, [x22]
	ldr	w4, [x19, #20]
	mov	x0, x21
	mov	x1, x20
	bl	_ccdc_try_format
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_SEL_TGT_CROP,8,3          ; @V4L2_SEL_TGT_CROP
	.comm	_CCDC_PAD_SOURCE_OF,8,3         ; @CCDC_PAD_SOURCE_OF
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ISP_PIPELINE_STREAM_STOPPED,8,3 ; @ISP_PIPELINE_STREAM_STOPPED
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_V4L2_SEL_FLAG_KEEP_CONFIG,4,2  ; @V4L2_SEL_FLAG_KEEP_CONFIG
	.comm	_CCDC_PAD_SINK,8,3              ; @CCDC_PAD_SINK
	.no_dead_strip	_ccdc_set_selection
.subsections_via_symbols
