	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_platform_param
_test_platform_param:                   ## @test_platform_param
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %ecx
	movq	_PXA_CAMERA_MASTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ecx, %eax
	jne	LBB0_1
## %bb.2:
	movq	_SOCAM_SLAVE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_SOCAM_MASTER@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rax
	movq	_SOCAM_HSYNC_ACTIVE_HIGH@GOTPCREL(%rip), %rdi
	orq	(%rdi), %rax
	movq	_SOCAM_HSYNC_ACTIVE_LOW@GOTPCREL(%rip), %rdi
	orq	(%rdi), %rax
	movq	_SOCAM_VSYNC_ACTIVE_HIGH@GOTPCREL(%rip), %rdi
	orq	(%rdi), %rax
	movq	_SOCAM_VSYNC_ACTIVE_LOW@GOTPCREL(%rip), %rdi
	orq	(%rdi), %rax
	movq	_SOCAM_DATA_ACTIVE_HIGH@GOTPCREL(%rip), %rdi
	orq	(%rdi), %rax
	movq	_SOCAM_PCLK_SAMPLE_RISING@GOTPCREL(%rip), %rdi
	orq	(%rdi), %rax
	movq	_SOCAM_PCLK_SAMPLE_FALLING@GOTPCREL(%rip), %rdi
	orq	(%rdi), %rax
	movq	%rax, (%rdx)
	cmpb	$8, %sil
	je	LBB0_11
## %bb.4:
	cmpb	$9, %sil
	je	LBB0_9
## %bb.5:
	cmpb	$10, %sil
	jne	LBB0_13
## %bb.6:
	movq	_PXA_CAMERA_DATAWIDTH_10@GOTPCREL(%rip), %rsi
	testl	%ecx, (%rsi)
	je	LBB0_13
## %bb.7:
	movq	_SOCAM_DATAWIDTH_10@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_11:
	movq	_PXA_CAMERA_DATAWIDTH_8@GOTPCREL(%rip), %rsi
	testl	%ecx, (%rsi)
	je	LBB0_13
## %bb.12:
	movq	_SOCAM_DATAWIDTH_8@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_9:
	movq	_PXA_CAMERA_DATAWIDTH_9@GOTPCREL(%rip), %rsi
	testl	%ecx, (%rsi)
	je	LBB0_13
## %bb.10:
	movq	_SOCAM_DATAWIDTH_9@GOTPCREL(%rip), %rcx
LBB0_8:
	orq	(%rcx), %rax
	movq	%rax, (%rdx)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PXA_CAMERA_MASTER,4,2          ## @PXA_CAMERA_MASTER
	.comm	_SOCAM_MASTER,8,3               ## @SOCAM_MASTER
	.comm	_SOCAM_SLAVE,8,3                ## @SOCAM_SLAVE
	.comm	_SOCAM_HSYNC_ACTIVE_HIGH,8,3    ## @SOCAM_HSYNC_ACTIVE_HIGH
	.comm	_SOCAM_HSYNC_ACTIVE_LOW,8,3     ## @SOCAM_HSYNC_ACTIVE_LOW
	.comm	_SOCAM_VSYNC_ACTIVE_HIGH,8,3    ## @SOCAM_VSYNC_ACTIVE_HIGH
	.comm	_SOCAM_VSYNC_ACTIVE_LOW,8,3     ## @SOCAM_VSYNC_ACTIVE_LOW
	.comm	_SOCAM_DATA_ACTIVE_HIGH,8,3     ## @SOCAM_DATA_ACTIVE_HIGH
	.comm	_SOCAM_PCLK_SAMPLE_RISING,8,3   ## @SOCAM_PCLK_SAMPLE_RISING
	.comm	_SOCAM_PCLK_SAMPLE_FALLING,8,3  ## @SOCAM_PCLK_SAMPLE_FALLING
	.comm	_PXA_CAMERA_DATAWIDTH_10,4,2    ## @PXA_CAMERA_DATAWIDTH_10
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SOCAM_DATAWIDTH_10,8,3         ## @SOCAM_DATAWIDTH_10
	.comm	_PXA_CAMERA_DATAWIDTH_9,4,2     ## @PXA_CAMERA_DATAWIDTH_9
	.comm	_SOCAM_DATAWIDTH_9,8,3          ## @SOCAM_DATAWIDTH_9
	.comm	_PXA_CAMERA_DATAWIDTH_8,4,2     ## @PXA_CAMERA_DATAWIDTH_8
	.comm	_SOCAM_DATAWIDTH_8,8,3          ## @SOCAM_DATAWIDTH_8
	.no_dead_strip	_test_platform_param
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_platform_param
_test_platform_param:                   ; @test_platform_param
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _PXA_CAMERA_MASTER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PXA_CAMERA_MASTER@GOTPAGEOFF]
Lloh2:
	adrp	x10, _SOCAM_MASTER@GOTPAGE
Lloh3:
	ldr	x10, [x10, _SOCAM_MASTER@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x11, _SOCAM_SLAVE@GOTPAGE
Lloh6:
	ldr	x11, [x11, _SOCAM_SLAVE@GOTPAGEOFF]
	tst	w9, w8
	csel	x9, x11, x10, eq
	ldr	x9, [x9]
Lloh7:
	adrp	x10, _SOCAM_HSYNC_ACTIVE_HIGH@GOTPAGE
Lloh8:
	ldr	x10, [x10, _SOCAM_HSYNC_ACTIVE_HIGH@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	orr	x9, x9, x10
Lloh10:
	adrp	x10, _SOCAM_HSYNC_ACTIVE_LOW@GOTPAGE
Lloh11:
	ldr	x10, [x10, _SOCAM_HSYNC_ACTIVE_LOW@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	orr	x9, x9, x10
Lloh13:
	adrp	x10, _SOCAM_VSYNC_ACTIVE_HIGH@GOTPAGE
Lloh14:
	ldr	x10, [x10, _SOCAM_VSYNC_ACTIVE_HIGH@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	orr	x9, x9, x10
Lloh16:
	adrp	x10, _SOCAM_VSYNC_ACTIVE_LOW@GOTPAGE
Lloh17:
	ldr	x10, [x10, _SOCAM_VSYNC_ACTIVE_LOW@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	orr	x9, x9, x10
Lloh19:
	adrp	x10, _SOCAM_DATA_ACTIVE_HIGH@GOTPAGE
Lloh20:
	ldr	x10, [x10, _SOCAM_DATA_ACTIVE_HIGH@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	orr	x9, x9, x10
Lloh22:
	adrp	x10, _SOCAM_PCLK_SAMPLE_RISING@GOTPAGE
Lloh23:
	ldr	x10, [x10, _SOCAM_PCLK_SAMPLE_RISING@GOTPAGEOFF]
Lloh24:
	ldr	x10, [x10]
	orr	x9, x9, x10
Lloh25:
	adrp	x10, _SOCAM_PCLK_SAMPLE_FALLING@GOTPAGE
Lloh26:
	ldr	x10, [x10, _SOCAM_PCLK_SAMPLE_FALLING@GOTPAGEOFF]
Lloh27:
	ldr	x10, [x10]
	orr	x9, x9, x10
	str	x9, [x2]
	cmp	w1, #8
	b.eq	LBB0_5
; %bb.1:
	cmp	w1, #9
	b.eq	LBB0_7
; %bb.2:
	cmp	w1, #10
	b.ne	LBB0_10
; %bb.3:
Lloh28:
	adrp	x10, _PXA_CAMERA_DATAWIDTH_10@GOTPAGE
Lloh29:
	ldr	x10, [x10, _PXA_CAMERA_DATAWIDTH_10@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_10
; %bb.4:
	mov	w0, #0
Lloh31:
	adrp	x8, _SOCAM_DATAWIDTH_10@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SOCAM_DATAWIDTH_10@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
Lloh33:
	adrp	x10, _PXA_CAMERA_DATAWIDTH_8@GOTPAGE
Lloh34:
	ldr	x10, [x10, _PXA_CAMERA_DATAWIDTH_8@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_10
; %bb.6:
	mov	w0, #0
Lloh36:
	adrp	x8, _SOCAM_DATAWIDTH_8@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SOCAM_DATAWIDTH_8@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh38:
	adrp	x10, _PXA_CAMERA_DATAWIDTH_9@GOTPAGE
Lloh39:
	ldr	x10, [x10, _PXA_CAMERA_DATAWIDTH_9@GOTPAGEOFF]
Lloh40:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_10
; %bb.8:
	mov	w0, #0
Lloh41:
	adrp	x8, _SOCAM_DATAWIDTH_9@GOTPAGE
Lloh42:
	ldr	x8, [x8, _SOCAM_DATAWIDTH_9@GOTPAGEOFF]
LBB0_9:
	ldr	x8, [x8]
	orr	x8, x8, x9
	str	x8, [x2]
	ret
LBB0_10:
Lloh43:
	adrp	x8, _EINVAL@GOTPAGE
Lloh44:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_PXA_CAMERA_MASTER,4,2          ; @PXA_CAMERA_MASTER
	.comm	_SOCAM_MASTER,8,3               ; @SOCAM_MASTER
	.comm	_SOCAM_SLAVE,8,3                ; @SOCAM_SLAVE
	.comm	_SOCAM_HSYNC_ACTIVE_HIGH,8,3    ; @SOCAM_HSYNC_ACTIVE_HIGH
	.comm	_SOCAM_HSYNC_ACTIVE_LOW,8,3     ; @SOCAM_HSYNC_ACTIVE_LOW
	.comm	_SOCAM_VSYNC_ACTIVE_HIGH,8,3    ; @SOCAM_VSYNC_ACTIVE_HIGH
	.comm	_SOCAM_VSYNC_ACTIVE_LOW,8,3     ; @SOCAM_VSYNC_ACTIVE_LOW
	.comm	_SOCAM_DATA_ACTIVE_HIGH,8,3     ; @SOCAM_DATA_ACTIVE_HIGH
	.comm	_SOCAM_PCLK_SAMPLE_RISING,8,3   ; @SOCAM_PCLK_SAMPLE_RISING
	.comm	_SOCAM_PCLK_SAMPLE_FALLING,8,3  ; @SOCAM_PCLK_SAMPLE_FALLING
	.comm	_PXA_CAMERA_DATAWIDTH_10,4,2    ; @PXA_CAMERA_DATAWIDTH_10
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SOCAM_DATAWIDTH_10,8,3         ; @SOCAM_DATAWIDTH_10
	.comm	_PXA_CAMERA_DATAWIDTH_9,4,2     ; @PXA_CAMERA_DATAWIDTH_9
	.comm	_SOCAM_DATAWIDTH_9,8,3          ; @SOCAM_DATAWIDTH_9
	.comm	_PXA_CAMERA_DATAWIDTH_8,4,2     ; @PXA_CAMERA_DATAWIDTH_8
	.comm	_SOCAM_DATAWIDTH_8,8,3          ; @SOCAM_DATAWIDTH_8
	.no_dead_strip	_test_platform_param
.subsections_via_symbols
