	.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
	movq	_SOCAM_MASTER@GOTPCREL(%rip), %rcx
	movq	_SOCAM_HSYNC_ACTIVE_HIGH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	orq	(%rcx), %rax
	movq	_SOCAM_HSYNC_ACTIVE_LOW@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movq	_SOCAM_VSYNC_ACTIVE_HIGH@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movq	_SOCAM_VSYNC_ACTIVE_LOW@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movq	_SOCAM_PCLK_SAMPLE_RISING@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movq	_SOCAM_PCLK_SAMPLE_FALLING@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movq	_SOCAM_DATA_ACTIVE_HIGH@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movq	_SOCAM_DATA_ACTIVE_LOW@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rax, (%rdx)
	leal	-4(%rsi), %ecx
	cmpb	$11, %cl
	ja	LBB0_11
## %bb.1:
	movzbl	%cl, %ecx
	leaq	LJTI0_0(%rip), %r8
	movslq	(%r8,%rcx,4), %rcx
	addq	%r8, %rcx
	jmpq	*%rcx
LBB0_8:
	movq	_MX3_CAMERA_DATAWIDTH_4@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rdi)
	je	LBB0_12
## %bb.9:
	movq	_SOCAM_DATAWIDTH_4@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	jmp	LBB0_10
LBB0_11:
	movl	4(%rdi), %edi
	movzbl	%sil, %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	jmp	LBB0_12
LBB0_6:
	movq	_MX3_CAMERA_DATAWIDTH_8@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rdi)
	je	LBB0_12
## %bb.7:
	movq	_SOCAM_DATAWIDTH_8@GOTPCREL(%rip), %rcx
	movq	_SOCAM_DATAWIDTH_4@GOTPCREL(%rip), %rsi
	orq	(%rcx), %rax
	orq	(%rsi), %rax
	jmp	LBB0_10
LBB0_4:
	movq	_MX3_CAMERA_DATAWIDTH_10@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rdi)
	je	LBB0_12
## %bb.5:
	movq	_SOCAM_DATAWIDTH_10@GOTPCREL(%rip), %rcx
	movq	_SOCAM_DATAWIDTH_8@GOTPCREL(%rip), %rsi
	movq	_SOCAM_DATAWIDTH_4@GOTPCREL(%rip), %rdi
	orq	(%rcx), %rax
	orq	(%rsi), %rax
	orq	(%rdi), %rax
	jmp	LBB0_10
LBB0_2:
	movq	_MX3_CAMERA_DATAWIDTH_15@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rdi)
	je	LBB0_12
## %bb.3:
	movq	_SOCAM_DATAWIDTH_15@GOTPCREL(%rip), %rcx
	movq	_SOCAM_DATAWIDTH_10@GOTPCREL(%rip), %rsi
	movq	_SOCAM_DATAWIDTH_8@GOTPCREL(%rip), %rdi
	movq	_SOCAM_DATAWIDTH_4@GOTPCREL(%rip), %r8
	orq	(%rcx), %rax
	orq	(%rsi), %rax
	orq	(%rdi), %rax
	orq	(%r8), %rax
LBB0_10:
	movq	%rax, (%rdx)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_6
	.long	L0_0_set_11
	.long	L0_0_set_4
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_SOCAM_MASTER,8,3               ## @SOCAM_MASTER
	.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_PCLK_SAMPLE_RISING,8,3   ## @SOCAM_PCLK_SAMPLE_RISING
	.comm	_SOCAM_PCLK_SAMPLE_FALLING,8,3  ## @SOCAM_PCLK_SAMPLE_FALLING
	.comm	_SOCAM_DATA_ACTIVE_HIGH,8,3     ## @SOCAM_DATA_ACTIVE_HIGH
	.comm	_SOCAM_DATA_ACTIVE_LOW,8,3      ## @SOCAM_DATA_ACTIVE_LOW
	.comm	_MX3_CAMERA_DATAWIDTH_15,4,2    ## @MX3_CAMERA_DATAWIDTH_15
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SOCAM_DATAWIDTH_15,8,3         ## @SOCAM_DATAWIDTH_15
	.comm	_SOCAM_DATAWIDTH_10,8,3         ## @SOCAM_DATAWIDTH_10
	.comm	_SOCAM_DATAWIDTH_8,8,3          ## @SOCAM_DATAWIDTH_8
	.comm	_SOCAM_DATAWIDTH_4,8,3          ## @SOCAM_DATAWIDTH_4
	.comm	_MX3_CAMERA_DATAWIDTH_10,4,2    ## @MX3_CAMERA_DATAWIDTH_10
	.comm	_MX3_CAMERA_DATAWIDTH_8,4,2     ## @MX3_CAMERA_DATAWIDTH_8
	.comm	_MX3_CAMERA_DATAWIDTH_4,4,2     ## @MX3_CAMERA_DATAWIDTH_4
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported bus width %d\n"

	.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:
	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
	mov	x8, x1
Lloh0:
	adrp	x9, _SOCAM_MASTER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SOCAM_MASTER@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _SOCAM_HSYNC_ACTIVE_HIGH@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SOCAM_HSYNC_ACTIVE_HIGH@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _SOCAM_HSYNC_ACTIVE_LOW@GOTPAGE
Lloh7:
	ldr	x11, [x11, _SOCAM_HSYNC_ACTIVE_LOW@GOTPAGEOFF]
	orr	x9, x10, x9
Lloh8:
	ldr	x10, [x11]
	orr	x9, x9, x10
Lloh9:
	adrp	x10, _SOCAM_VSYNC_ACTIVE_HIGH@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SOCAM_VSYNC_ACTIVE_HIGH@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	orr	x9, x9, x10
Lloh12:
	adrp	x10, _SOCAM_VSYNC_ACTIVE_LOW@GOTPAGE
Lloh13:
	ldr	x10, [x10, _SOCAM_VSYNC_ACTIVE_LOW@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
Lloh15:
	adrp	x11, _SOCAM_PCLK_SAMPLE_RISING@GOTPAGE
Lloh16:
	ldr	x11, [x11, _SOCAM_PCLK_SAMPLE_RISING@GOTPAGEOFF]
	orr	x9, x9, x10
Lloh17:
	ldr	x10, [x11]
	orr	x9, x9, x10
Lloh18:
	adrp	x10, _SOCAM_PCLK_SAMPLE_FALLING@GOTPAGE
Lloh19:
	ldr	x10, [x10, _SOCAM_PCLK_SAMPLE_FALLING@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	orr	x9, x9, x10
Lloh21:
	adrp	x10, _SOCAM_DATA_ACTIVE_HIGH@GOTPAGE
Lloh22:
	ldr	x10, [x10, _SOCAM_DATA_ACTIVE_HIGH@GOTPAGEOFF]
Lloh23:
	ldr	x10, [x10]
Lloh24:
	adrp	x11, _SOCAM_DATA_ACTIVE_LOW@GOTPAGE
Lloh25:
	ldr	x11, [x11, _SOCAM_DATA_ACTIVE_LOW@GOTPAGEOFF]
	orr	x9, x9, x10
Lloh26:
	ldr	x10, [x11]
	orr	x9, x9, x10
	str	x9, [x2]
	sub	w10, w1, #4
	cmp	w10, #11
	b.hi	LBB0_4
; %bb.1:
Lloh27:
	adrp	x11, lJTI0_0@PAGE
Lloh28:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_2
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_2:
	ldr	w8, [x0]
Lloh29:
	adrp	x10, _MX3_CAMERA_DATAWIDTH_4@GOTPAGE
Lloh30:
	ldr	x10, [x10, _MX3_CAMERA_DATAWIDTH_4@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_12
; %bb.3:
	mov	w0, #0
Lloh32:
	adrp	x8, _SOCAM_DATAWIDTH_4@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SOCAM_DATAWIDTH_4@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	orr	x8, x8, x9
	b	LBB0_11
LBB0_4:
	ldr	w0, [x0, #4]
Lloh35:
	adrp	x1, l_.str@PAGE
Lloh36:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x8
	bl	_dev_warn
	b	LBB0_12
LBB0_5:
	ldr	w8, [x0]
Lloh37:
	adrp	x10, _MX3_CAMERA_DATAWIDTH_8@GOTPAGE
Lloh38:
	ldr	x10, [x10, _MX3_CAMERA_DATAWIDTH_8@GOTPAGEOFF]
Lloh39:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_12
; %bb.6:
	mov	w0, #0
Lloh40:
	adrp	x8, _SOCAM_DATAWIDTH_8@GOTPAGE
Lloh41:
	ldr	x8, [x8, _SOCAM_DATAWIDTH_8@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
Lloh43:
	adrp	x10, _SOCAM_DATAWIDTH_4@GOTPAGE
Lloh44:
	ldr	x10, [x10, _SOCAM_DATAWIDTH_4@GOTPAGEOFF]
Lloh45:
	ldr	x10, [x10]
	orr	x8, x8, x9
	orr	x8, x8, x10
	b	LBB0_11
LBB0_7:
	ldr	w8, [x0]
Lloh46:
	adrp	x10, _MX3_CAMERA_DATAWIDTH_10@GOTPAGE
Lloh47:
	ldr	x10, [x10, _MX3_CAMERA_DATAWIDTH_10@GOTPAGEOFF]
Lloh48:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_12
; %bb.8:
	mov	w0, #0
Lloh49:
	adrp	x8, _SOCAM_DATAWIDTH_10@GOTPAGE
Lloh50:
	ldr	x8, [x8, _SOCAM_DATAWIDTH_10@GOTPAGEOFF]
Lloh51:
	ldr	x8, [x8]
Lloh52:
	adrp	x10, _SOCAM_DATAWIDTH_8@GOTPAGE
Lloh53:
	ldr	x10, [x10, _SOCAM_DATAWIDTH_8@GOTPAGEOFF]
Lloh54:
	adrp	x11, _SOCAM_DATAWIDTH_4@GOTPAGE
Lloh55:
	ldr	x11, [x11, _SOCAM_DATAWIDTH_4@GOTPAGEOFF]
Lloh56:
	ldr	x10, [x10]
Lloh57:
	ldr	x11, [x11]
	orr	x8, x8, x9
	orr	x8, x8, x10
	orr	x8, x8, x11
	b	LBB0_11
LBB0_9:
	ldr	w8, [x0]
Lloh58:
	adrp	x10, _MX3_CAMERA_DATAWIDTH_15@GOTPAGE
Lloh59:
	ldr	x10, [x10, _MX3_CAMERA_DATAWIDTH_15@GOTPAGEOFF]
Lloh60:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_12
; %bb.10:
	mov	w0, #0
Lloh61:
	adrp	x8, _SOCAM_DATAWIDTH_15@GOTPAGE
Lloh62:
	ldr	x8, [x8, _SOCAM_DATAWIDTH_15@GOTPAGEOFF]
Lloh63:
	ldr	x8, [x8]
Lloh64:
	adrp	x10, _SOCAM_DATAWIDTH_10@GOTPAGE
Lloh65:
	ldr	x10, [x10, _SOCAM_DATAWIDTH_10@GOTPAGEOFF]
Lloh66:
	ldr	x10, [x10]
Lloh67:
	adrp	x11, _SOCAM_DATAWIDTH_8@GOTPAGE
Lloh68:
	ldr	x11, [x11, _SOCAM_DATAWIDTH_8@GOTPAGEOFF]
Lloh69:
	ldr	x11, [x11]
Lloh70:
	adrp	x12, _SOCAM_DATAWIDTH_4@GOTPAGE
Lloh71:
	ldr	x12, [x12, _SOCAM_DATAWIDTH_4@GOTPAGEOFF]
Lloh72:
	ldr	x12, [x12]
	orr	x8, x8, x9
	orr	x8, x8, x10
	orr	x8, x8, x11
	orr	x8, x8, x12
LBB0_11:
	str	x8, [x2]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh73:
	adrp	x8, _EINVAL@GOTPAGE
Lloh74:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh75:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh56
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_SOCAM_MASTER,8,3               ; @SOCAM_MASTER
	.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_PCLK_SAMPLE_RISING,8,3   ; @SOCAM_PCLK_SAMPLE_RISING
	.comm	_SOCAM_PCLK_SAMPLE_FALLING,8,3  ; @SOCAM_PCLK_SAMPLE_FALLING
	.comm	_SOCAM_DATA_ACTIVE_HIGH,8,3     ; @SOCAM_DATA_ACTIVE_HIGH
	.comm	_SOCAM_DATA_ACTIVE_LOW,8,3      ; @SOCAM_DATA_ACTIVE_LOW
	.comm	_MX3_CAMERA_DATAWIDTH_15,4,2    ; @MX3_CAMERA_DATAWIDTH_15
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SOCAM_DATAWIDTH_15,8,3         ; @SOCAM_DATAWIDTH_15
	.comm	_SOCAM_DATAWIDTH_10,8,3         ; @SOCAM_DATAWIDTH_10
	.comm	_SOCAM_DATAWIDTH_8,8,3          ; @SOCAM_DATAWIDTH_8
	.comm	_SOCAM_DATAWIDTH_4,8,3          ; @SOCAM_DATAWIDTH_4
	.comm	_MX3_CAMERA_DATAWIDTH_10,4,2    ; @MX3_CAMERA_DATAWIDTH_10
	.comm	_MX3_CAMERA_DATAWIDTH_8,4,2     ; @MX3_CAMERA_DATAWIDTH_8
	.comm	_MX3_CAMERA_DATAWIDTH_4,4,2     ; @MX3_CAMERA_DATAWIDTH_4
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported bus width %d\n"

	.no_dead_strip	_test_platform_param
.subsections_via_symbols
