	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function histo_set_selection
_histo_set_selection:                   ## @histo_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r15
	callq	_subdev_to_histo
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	_HISTO_PAD_SINK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	16(%rbx), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_vsp1_entity_get_pad_config
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	8(%rbx), %rcx
	movq	_V4L2_SEL_TGT_CROP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	callq	_histo_set_crop
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_5:
	movq	_V4L2_SEL_TGT_COMPOSE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	callq	_histo_set_compose
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HISTO_PAD_SINK,8,3             ## @HISTO_PAD_SINK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_SEL_TGT_CROP,8,3          ## @V4L2_SEL_TGT_CROP
	.comm	_V4L2_SEL_TGT_COMPOSE,8,3       ## @V4L2_SEL_TGT_COMPOSE
	.no_dead_strip	_histo_set_selection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function histo_set_selection
_histo_set_selection:                   ; @histo_set_selection
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	bl	_subdev_to_histo
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _HISTO_PAD_SINK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HISTO_PAD_SINK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x0
	bl	_mutex_lock
	ldr	w2, [x20, #16]
	mov	x0, x19
	mov	x1, x22
	bl	_vsp1_entity_get_pad_config
	cbz	x0, LBB0_7
; %bb.2:
	mov	x1, x0
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x9, _V4L2_SEL_TGT_CROP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_SEL_TGT_CROP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x21
	mov	x2, x20
	bl	_histo_set_crop
	mov	x20, x0
	b	LBB0_8
LBB0_4:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_9
LBB0_5:
Lloh9:
	adrp	x9, _V4L2_SEL_TGT_COMPOSE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _V4L2_SEL_TGT_COMPOSE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x21
	mov	x2, x20
	bl	_histo_set_compose
	mov	x20, x0
	b	LBB0_8
LBB0_7:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_8:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.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	_HISTO_PAD_SINK,8,3             ; @HISTO_PAD_SINK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_SEL_TGT_CROP,8,3          ; @V4L2_SEL_TGT_CROP
	.comm	_V4L2_SEL_TGT_COMPOSE,8,3       ; @V4L2_SEL_TGT_COMPOSE
	.no_dead_strip	_histo_set_selection
.subsections_via_symbols
