	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5c73m3_get_platform_data
_s5c73m3_get_platform_data:             ## @s5c73m3_get_platform_data
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r15
	movq	(%r15), %r14
	movq	8(%r15), %rax
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	testq	%r14, %r14
	je	LBB0_1
## %bb.5:
	movq	_S5C73M3_CLK_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_devm_clk_get
	movl	%eax, 4(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.18:
	movl	4(%rbx), %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movl	8(%rax), %ecx
	movl	%ecx, (%rbx)
	movl	4(%rax), %ecx
	movq	8(%rbx), %rdx
	movq	_STBY@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	%ecx, (%rdx,%rsi,4)
	movl	(%rax), %eax
	movq	_RST@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rdx,%rcx,4)
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_S5C73M3_DEFAULT_MCLK_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, (%rbx)
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_info
LBB0_8:
	movq	%rbx, %rdi
	callq	_s5c73m3_parse_gpios
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_of_graph_get_next_endpoint
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_of_fwnode_handle
	leaq	-48(%rbp), %rsi
	movl	%eax, %edi
	callq	_v4l2_fwnode_endpoint_parse
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_of_node_put
	testl	%ebx, %ebx
	jne	LBB0_17
## %bb.13:
	movq	-48(%rbp), %rax
	movq	_V4L2_MBUS_CSI2_DPHY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.15:
	movq	-40(%rbp), %rax
	movq	_S5C73M3_MIPI_DATA_LANES@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.16:
	leaq	L_.str.5(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	jmp	LBB0_17
LBB0_2:
	leaq	L_.str(%rip), %rsi
LBB0_3:
	movq	%r15, %rdi
	callq	_dev_err
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_dev_warn
	jmp	LBB0_17
LBB0_14:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Platform data not specified\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_STBY,8,3                       ## @STBY
	.comm	_RST,8,3                        ## @RST
	.comm	_S5C73M3_CLK_NAME,4,2           ## @S5C73M3_CLK_NAME
L_.str.1:                               ## @.str.1
	.asciz	"clock-frequency"

	.comm	_S5C73M3_DEFAULT_MCLK_FREQ,4,2  ## @S5C73M3_DEFAULT_MCLK_FREQ
L_.str.2:                               ## @.str.2
	.asciz	"using default %u Hz clock frequency\n"

L_.str.3:                               ## @.str.3
	.asciz	"no endpoint defined for node: %pOF\n"

	.comm	_V4L2_MBUS_CSI2_DPHY,8,3        ## @V4L2_MBUS_CSI2_DPHY
L_.str.4:                               ## @.str.4
	.asciz	"unsupported bus type\n"

	.comm	_S5C73M3_MIPI_DATA_LANES,8,3    ## @S5C73M3_MIPI_DATA_LANES
L_.str.5:                               ## @.str.5
	.asciz	"falling back to 4 MIPI CSI-2 data lanes\n"

	.no_dead_strip	_s5c73m3_get_platform_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5c73m3_get_platform_data
_s5c73m3_get_platform_data:             ; @s5c73m3_get_platform_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x0
	ldr	x19, [x0, #16]
	ldp	x20, x8, [x19]
	stp	xzr, xzr, [sp, #16]
	cbz	x20, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _S5C73M3_CLK_NAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S5C73M3_CLK_NAME@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_devm_clk_get
	str	w0, [x21, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w0, [x21, #4]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_3:
	cbz	x8, LBB0_13
; %bb.4:
	mov	w20, #0
	ldr	w9, [x8, #8]
	str	w9, [x21]
	ldr	w9, [x8, #4]
	ldr	x10, [x21, #8]
Lloh3:
	adrp	x11, _STBY@GOTPAGE
Lloh4:
	ldr	x11, [x11, _STBY@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	str	w9, [x10, x11, lsl #2]
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _RST@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RST@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	str	w8, [x10, x9, lsl #2]
	b	LBB0_18
LBB0_5:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_of_property_read_u32
	cbz	x0, LBB0_7
; %bb.6:
Lloh11:
	adrp	x8, _S5C73M3_DEFAULT_MCLK_FREQ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _S5C73M3_DEFAULT_MCLK_FREQ@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x21]
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_7:
	mov	x0, x21
	bl	_s5c73m3_parse_gpios
	tbnz	w0, #31, LBB0_15
; %bb.8:
	mov	x0, x20
	mov	x1, #0
	bl	_of_graph_get_next_endpoint
	cbz	x0, LBB0_16
; %bb.9:
	mov	x21, x0
	bl	_of_fwnode_handle
	add	x1, sp, #16
	bl	_v4l2_fwnode_endpoint_parse
	mov	x20, x0
	mov	x0, x21
	bl	_of_node_put
	cbnz	w20, LBB0_18
; %bb.10:
	ldr	x8, [sp, #16]
Lloh16:
	adrp	x9, _V4L2_MBUS_CSI2_DPHY@GOTPAGE
Lloh17:
	ldr	x9, [x9, _V4L2_MBUS_CSI2_DPHY@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.11:
	ldr	x8, [sp, #24]
Lloh19:
	adrp	x9, _S5C73M3_MIPI_DATA_LANES@GOTPAGE
Lloh20:
	ldr	x9, [x9, _S5C73M3_MIPI_DATA_LANES@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_17
; %bb.12:
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	b	LBB0_17
LBB0_13:
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
LBB0_14:
	mov	x0, x19
	bl	_dev_err
LBB0_15:
Lloh26:
	adrp	x8, _EINVAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_18
LBB0_16:
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_warn
LBB0_17:
	mov	w20, #0
LBB0_18:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_19:
Lloh31:
	adrp	x1, l_.str.4@PAGE
Lloh32:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Platform data not specified\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_STBY,8,3                       ; @STBY
	.comm	_RST,8,3                        ; @RST
	.comm	_S5C73M3_CLK_NAME,4,2           ; @S5C73M3_CLK_NAME
l_.str.1:                               ; @.str.1
	.asciz	"clock-frequency"

	.comm	_S5C73M3_DEFAULT_MCLK_FREQ,4,2  ; @S5C73M3_DEFAULT_MCLK_FREQ
l_.str.2:                               ; @.str.2
	.asciz	"using default %u Hz clock frequency\n"

l_.str.3:                               ; @.str.3
	.asciz	"no endpoint defined for node: %pOF\n"

	.comm	_V4L2_MBUS_CSI2_DPHY,8,3        ; @V4L2_MBUS_CSI2_DPHY
l_.str.4:                               ; @.str.4
	.asciz	"unsupported bus type\n"

	.comm	_S5C73M3_MIPI_DATA_LANES,8,3    ; @S5C73M3_MIPI_DATA_LANES
l_.str.5:                               ; @.str.5
	.asciz	"falling back to 4 MIPI CSI-2 data lanes\n"

	.no_dead_strip	_s5c73m3_get_platform_data
.subsections_via_symbols
