	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __ctrl_set_metering
___ctrl_set_metering:                   ## @__ctrl_set_metering
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	addl	$-128, %esi
	cmpl	$4, %esi
	jae	LBB0_1
## %bb.2:
	movslq	%esi, %rax
	leaq	l_switch.table.__ctrl_set_metering(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %edx
	movq	_IS_METERING_CONFIG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	___is_set_isp_metering
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISP_METERING_COMMAND_AVERAGE,4,2 ## @ISP_METERING_COMMAND_AVERAGE
	.comm	_ISP_METERING_COMMAND_CENTER,4,2 ## @ISP_METERING_COMMAND_CENTER
	.comm	_ISP_METERING_COMMAND_SPOT,4,2  ## @ISP_METERING_COMMAND_SPOT
	.comm	_ISP_METERING_COMMAND_MATRIX,4,2 ## @ISP_METERING_COMMAND_MATRIX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IS_METERING_CONFIG_CMD,4,2     ## @IS_METERING_CONFIG_CMD
	.no_dead_strip	___ctrl_set_metering
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.__ctrl_set_metering
l_switch.table.__ctrl_set_metering:
	.quad	_ISP_METERING_COMMAND_SPOT
	.quad	_ISP_METERING_COMMAND_MATRIX
	.quad	_ISP_METERING_COMMAND_CENTER
	.quad	_ISP_METERING_COMMAND_AVERAGE

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __ctrl_set_metering
___ctrl_set_metering:                   ; @__ctrl_set_metering
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	sub	w8, w1, #128
	cmp	w8, #4
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.__ctrl_set_metering@PAGE
Lloh1:
	add	x9, x9, l_switch.table.__ctrl_set_metering@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w2, [x8]
Lloh2:
	adrp	x8, _IS_METERING_CONFIG_CMD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IS_METERING_CONFIG_CMD@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	___is_set_isp_metering
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ISP_METERING_COMMAND_AVERAGE,4,2 ; @ISP_METERING_COMMAND_AVERAGE
	.comm	_ISP_METERING_COMMAND_CENTER,4,2 ; @ISP_METERING_COMMAND_CENTER
	.comm	_ISP_METERING_COMMAND_SPOT,4,2  ; @ISP_METERING_COMMAND_SPOT
	.comm	_ISP_METERING_COMMAND_MATRIX,4,2 ; @ISP_METERING_COMMAND_MATRIX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IS_METERING_CONFIG_CMD,4,2     ; @IS_METERING_CONFIG_CMD
	.no_dead_strip	___ctrl_set_metering
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.__ctrl_set_metering
l_switch.table.__ctrl_set_metering:
	.quad	_ISP_METERING_COMMAND_SPOT
	.quad	_ISP_METERING_COMMAND_MATRIX
	.quad	_ISP_METERING_COMMAND_CENTER
	.quad	_ISP_METERING_COMMAND_AVERAGE

.subsections_via_symbols
