	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_soc_camera_apply_sensor_flags  ## -- Begin function soc_camera_apply_sensor_flags
	.p2align	4, 0x90
_soc_camera_apply_sensor_flags:         ## @soc_camera_apply_sensor_flags
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rsi, %rax
	movl	(%rdi), %r8d
	movq	_SOCAM_SENSOR_INVERT_HSYNC@GOTPCREL(%rip), %rdx
	testl	%r8d, (%rdx)
	je	LBB0_2
## %bb.1:
	movq	_SOCAM_HSYNC_ACTIVE_HIGH@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r9
	movq	_SOCAM_HSYNC_ACTIVE_LOW@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rsi, %rdi
	orq	%r9, %rdi
	movq	%rdi, %rcx
	andq	%rax, %rcx
	xorl	%edx, %edx
	cmpq	%rsi, %rcx
	cmoveq	%rdi, %rdx
	cmpq	%r9, %rcx
	cmoveq	%rdi, %rdx
	xorq	%rdx, %rax
LBB0_2:
	movq	_SOCAM_SENSOR_INVERT_VSYNC@GOTPCREL(%rip), %rcx
	testl	%r8d, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_SOCAM_VSYNC_ACTIVE_HIGH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	movq	_SOCAM_VSYNC_ACTIVE_LOW@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, %rsi
	orq	%r9, %rsi
	movq	%rsi, %rdi
	andq	%rax, %rdi
	xorl	%ecx, %ecx
	cmpq	%rdx, %rdi
	cmoveq	%rsi, %rcx
	cmpq	%r9, %rdi
	cmoveq	%rsi, %rcx
	xorq	%rcx, %rax
LBB0_4:
	movq	_SOCAM_SENSOR_INVERT_PCLK@GOTPCREL(%rip), %rcx
	testl	%r8d, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	_SOCAM_PCLK_SAMPLE_RISING@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	movq	_SOCAM_PCLK_SAMPLE_FALLING@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, %rsi
	orq	%r8, %rsi
	movq	%rsi, %rdi
	andq	%rax, %rdi
	xorl	%ecx, %ecx
	cmpq	%rdx, %rdi
	cmoveq	%rsi, %rcx
	cmpq	%r8, %rdi
	cmoveq	%rsi, %rcx
	xorq	%rcx, %rax
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCAM_SENSOR_INVERT_HSYNC,4,2  ## @SOCAM_SENSOR_INVERT_HSYNC
	.comm	_SOCAM_HSYNC_ACTIVE_HIGH,8,3    ## @SOCAM_HSYNC_ACTIVE_HIGH
	.comm	_SOCAM_HSYNC_ACTIVE_LOW,8,3     ## @SOCAM_HSYNC_ACTIVE_LOW
	.comm	_SOCAM_SENSOR_INVERT_VSYNC,4,2  ## @SOCAM_SENSOR_INVERT_VSYNC
	.comm	_SOCAM_VSYNC_ACTIVE_HIGH,8,3    ## @SOCAM_VSYNC_ACTIVE_HIGH
	.comm	_SOCAM_VSYNC_ACTIVE_LOW,8,3     ## @SOCAM_VSYNC_ACTIVE_LOW
	.comm	_SOCAM_SENSOR_INVERT_PCLK,4,2   ## @SOCAM_SENSOR_INVERT_PCLK
	.comm	_SOCAM_PCLK_SAMPLE_RISING,8,3   ## @SOCAM_PCLK_SAMPLE_RISING
	.comm	_SOCAM_PCLK_SAMPLE_FALLING,8,3  ## @SOCAM_PCLK_SAMPLE_FALLING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_soc_camera_apply_sensor_flags  ; -- Begin function soc_camera_apply_sensor_flags
	.p2align	2
_soc_camera_apply_sensor_flags:         ; @soc_camera_apply_sensor_flags
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _SOCAM_SENSOR_INVERT_HSYNC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SOCAM_SENSOR_INVERT_HSYNC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _SOCAM_HSYNC_ACTIVE_HIGH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SOCAM_HSYNC_ACTIVE_HIGH@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _SOCAM_HSYNC_ACTIVE_LOW@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SOCAM_HSYNC_ACTIVE_LOW@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	orr	x11, x10, x9
	and	x12, x11, x1
	cmp	x12, x10
	ccmp	x12, x9, #4, ne
	csel	x9, x11, xzr, eq
	eor	x1, x9, x1
LBB0_2:
Lloh9:
	adrp	x9, _SOCAM_SENSOR_INVERT_VSYNC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SOCAM_SENSOR_INVERT_VSYNC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh12:
	adrp	x9, _SOCAM_VSYNC_ACTIVE_HIGH@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SOCAM_VSYNC_ACTIVE_HIGH@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
Lloh15:
	adrp	x10, _SOCAM_VSYNC_ACTIVE_LOW@GOTPAGE
Lloh16:
	ldr	x10, [x10, _SOCAM_VSYNC_ACTIVE_LOW@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	orr	x11, x10, x9
	and	x12, x11, x1
	cmp	x12, x10
	ccmp	x12, x9, #4, ne
	csel	x9, x11, xzr, eq
	eor	x1, x9, x1
LBB0_4:
Lloh18:
	adrp	x9, _SOCAM_SENSOR_INVERT_PCLK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SOCAM_SENSOR_INVERT_PCLK@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh21:
	adrp	x8, _SOCAM_PCLK_SAMPLE_RISING@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SOCAM_PCLK_SAMPLE_RISING@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
Lloh24:
	adrp	x9, _SOCAM_PCLK_SAMPLE_FALLING@GOTPAGE
Lloh25:
	ldr	x9, [x9, _SOCAM_PCLK_SAMPLE_FALLING@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	orr	x10, x9, x8
	and	x11, x10, x1
	cmp	x11, x9
	ccmp	x11, x8, #4, ne
	csel	x8, x10, xzr, eq
	eor	x1, x8, x1
LBB0_6:
	mov	x0, x1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCAM_SENSOR_INVERT_HSYNC,4,2  ; @SOCAM_SENSOR_INVERT_HSYNC
	.comm	_SOCAM_HSYNC_ACTIVE_HIGH,8,3    ; @SOCAM_HSYNC_ACTIVE_HIGH
	.comm	_SOCAM_HSYNC_ACTIVE_LOW,8,3     ; @SOCAM_HSYNC_ACTIVE_LOW
	.comm	_SOCAM_SENSOR_INVERT_VSYNC,4,2  ; @SOCAM_SENSOR_INVERT_VSYNC
	.comm	_SOCAM_VSYNC_ACTIVE_HIGH,8,3    ; @SOCAM_VSYNC_ACTIVE_HIGH
	.comm	_SOCAM_VSYNC_ACTIVE_LOW,8,3     ; @SOCAM_VSYNC_ACTIVE_LOW
	.comm	_SOCAM_SENSOR_INVERT_PCLK,4,2   ; @SOCAM_SENSOR_INVERT_PCLK
	.comm	_SOCAM_PCLK_SAMPLE_RISING,8,3   ; @SOCAM_PCLK_SAMPLE_RISING
	.comm	_SOCAM_PCLK_SAMPLE_FALLING,8,3  ; @SOCAM_PCLK_SAMPLE_FALLING
.subsections_via_symbols
