	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt9m111_get_global_gain
_mt9m111_get_global_gain:               ## @mt9m111_get_global_gain
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	callq	_v4l2_get_subdevdata
	movq	_GLOBAL_GAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_reg_read
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movl	%eax, %edx
	andl	$47, %edx
	movl	%eax, %ecx
	shrl	$10, %ecx
	andb	$1, %cl
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	shrl	$9, %eax
	andb	$1, %al
	movl	%eax, %ecx
	shll	%cl, %edx
	movl	%edx, %eax
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GLOBAL_GAIN,4,2                ## @GLOBAL_GAIN
	.no_dead_strip	_mt9m111_get_global_gain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt9m111_get_global_gain
_mt9m111_get_global_gain:               ; @mt9m111_get_global_gain
	.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
	bl	_v4l2_get_subdevdata
Lloh0:
	adrp	x8, _GLOBAL_GAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GLOBAL_GAIN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_reg_read
	mov	w8, #47
	and	w8, w0, w8
	ubfx	w9, w0, #10, #1
	lsl	w8, w8, w9
	ubfx	w9, w0, #9, #1
	lsl	w8, w8, w9
	tst	w0, #0x80000000
	csel	w0, w0, w8, ne
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GLOBAL_GAIN,4,2                ; @GLOBAL_GAIN
	.no_dead_strip	_mt9m111_get_global_gain
.subsections_via_symbols
