	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx319_get_hwcfg
_imx319_get_hwcfg:                      ## @imx319_get_hwcfg
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	$0, -48(%rbp)
	movq	_V4L2_MBUS_CSI2_DPHY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	callq	_dev_fwnode
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_fwnode_graph_get_next_endpoint
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r14
	leaq	-64(%rbp), %rsi
	movq	%rax, %rdi
	callq	_v4l2_fwnode_endpoint_alloc_parse
	testl	%eax, %eax
	je	LBB0_6
LBB0_3:
	xorl	%ebx, %ebx
LBB0_4:
	leaq	-64(%rbp), %rdi
	callq	_v4l2_fwnode_endpoint_free
	movq	%r14, %rdi
	callq	_fwnode_handle_put
LBB0_5:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.7:
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_dev_fwnode
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	movq	%rbx, %rdx
	callq	_fwnode_property_read_u32
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_4
LBB0_10:
	movl	(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	(%rbx), %rdx
	movq	_IMX319_EXT_CLK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_17
## %bb.11:
	movl	-64(%rbp), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	-64(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_18
## %bb.12:
	movl	%esi, 8(%rbx)
	incl	%esi
	movl	(%r12), %ecx
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_devm_kcalloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.13:
	cmpl	$0, -64(%rbp)
	je	LBB0_4
## %bb.14:
	movq	-56(%rbp), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	cmpl	$2, -64(%rbp)
	jb	LBB0_4
## %bb.15:
	movl	$1, %r12d
	leaq	L_.str.6(%rip), %r13
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rax
	movq	-56(%rbp), %rcx
	movl	(%rcx,%r12,4), %ecx
	movl	%ecx, (%rax,%r12,4)
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	incq	%r12
	movl	-64(%rbp), %eax
	cmpq	%rax, %r12
	jb	LBB0_16
	jmp	LBB0_4
LBB0_17:
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_4
LBB0_18:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_warn
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_MBUS_CSI2_DPHY,4,2        ## @V4L2_MBUS_CSI2_DPHY
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"clock-frequency"

L_.str.1:                               ## @.str.1
	.asciz	"can't get clock frequency"

L_.str.2:                               ## @.str.2
	.asciz	"ext clk: %d"

	.comm	_IMX319_EXT_CLK,8,3             ## @IMX319_EXT_CLK
L_.str.3:                               ## @.str.3
	.asciz	"external clock %d is not supported"

L_.str.4:                               ## @.str.4
	.asciz	"num of link freqs: %d"

L_.str.5:                               ## @.str.5
	.asciz	"no link frequencies defined"

L_.str.6:                               ## @.str.6
	.asciz	"link_freq[%d] = %lld"

	.no_dead_strip	_imx319_get_hwcfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx319_get_hwcfg
_imx319_get_hwcfg:                      ; @imx319_get_hwcfg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	stp	xzr, xzr, [sp, #16]
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _V4L2_MBUS_CSI2_DPHY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_MBUS_CSI2_DPHY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	bl	_dev_fwnode
	cbz	x0, LBB0_6
; %bb.1:
	mov	x1, #0
	bl	_fwnode_graph_get_next_endpoint
	cbz	x0, LBB0_6
; %bb.2:
	mov	x19, x0
	add	x1, sp, #8
	bl	_v4l2_fwnode_endpoint_alloc_parse
	cbnz	w0, LBB0_16
; %bb.3:
Lloh3:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x20
	mov	w1, #24
	bl	_devm_kzalloc
	mov	x21, x0
	cbz	x0, LBB0_17
; %bb.4:
	mov	x0, x20
	bl	_dev_fwnode
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_fwnode_property_read_u32
	cbz	w0, LBB0_7
; %bb.5:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_6:
	mov	x21, #0
	b	LBB0_18
LBB0_7:
	ldr	w2, [x21]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	ldr	x8, [x21]
Lloh11:
	adrp	x9, _IMX319_EXT_CLK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IMX319_EXT_CLK@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.8:
	ldr	w2, [sp, #8]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_19
; %bb.9:
	str	w8, [x21, #8]
	add	w1, w8, #1
	ldr	w3, [x22]
	mov	x0, x20
	mov	w2, #4
	bl	_devm_kcalloc
	str	x0, [x21, #16]
	cbz	x0, LBB0_16
; %bb.10:
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_17
; %bb.11:
	ldr	x8, [sp, #16]
	ldr	w8, [x8]
	str	w8, [x0]
	str	x8, [sp]
Lloh16:
	adrp	x1, l_.str.6@PAGE
Lloh17:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	mov	w2, #0
	bl	_dev_dbg
	ldr	w8, [sp, #8]
	cmp	w8, #2
	b.lo	LBB0_17
; %bb.12:
	mov	w22, #1
Lloh18:
	adrp	x23, l_.str.6@PAGE
Lloh19:
	add	x23, x23, l_.str.6@PAGEOFF
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #16]
	ldr	x9, [sp, #16]
	lsl	x10, x22, #2
	ldr	w9, [x9, x10]
	str	w9, [x8, x10]
	str	x9, [sp]
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	bl	_dev_dbg
	add	x22, x22, #1
	ldr	w8, [sp, #8]
	cmp	x22, x8
	b.lo	LBB0_13
	b	LBB0_17
LBB0_14:
	str	x8, [sp]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_15:
	mov	x0, x20
	bl	_dev_err
LBB0_16:
	mov	x21, #0
LBB0_17:
	add	x0, sp, #8
	bl	_v4l2_fwnode_endpoint_free
	mov	x0, x19
	bl	_fwnode_handle_put
LBB0_18:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_19:
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_MBUS_CSI2_DPHY,4,2        ; @V4L2_MBUS_CSI2_DPHY
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"clock-frequency"

l_.str.1:                               ; @.str.1
	.asciz	"can't get clock frequency"

l_.str.2:                               ; @.str.2
	.asciz	"ext clk: %d"

	.comm	_IMX319_EXT_CLK,8,3             ; @IMX319_EXT_CLK
l_.str.3:                               ; @.str.3
	.asciz	"external clock %d is not supported"

l_.str.4:                               ; @.str.4
	.asciz	"num of link freqs: %d"

l_.str.5:                               ; @.str.5
	.asciz	"no link frequencies defined"

l_.str.6:                               ; @.str.6
	.asciz	"link_freq[%d] = %lld"

	.no_dead_strip	_imx319_get_hwcfg
.subsections_via_symbols
