	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cio2_parse_firmware
_cio2_parse_firmware:                   ## @cio2_parse_firmware
	.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, %r12
	movq	_CIO2_NUM_PORTS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_12
## %bb.1:
	leaq	8(%r12), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	movq	_CIO2_NUM_PORTS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jae	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, -56(%rbp)
	movq	_V4L2_MBUS_CSI2_DPHY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	(%r12), %rdi
	callq	_dev_fwnode
	movq	_FWNODE_GRAPH_ENDPOINT_NEXT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %edi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_fwnode_graph_get_endpoint_by_id
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r13
	movq	%rax, %rdi
	leaq	-56(%rbp), %rsi
	callq	_v4l2_fwnode_endpoint_parse
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$12, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r14
	movl	-52(%rbp), %eax
	movl	%eax, 8(%r14)
	movl	-56(%rbp), %eax
	movl	%eax, 4(%r14)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_v4l2_async_notifier_add_fwnode_remote_subdev
	testl	%eax, %eax
	jne	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_fwnode_handle_put
	jmp	LBB0_11
LBB0_12:
	leaq	8(%r12), %rsi
	movq	_cio2_async_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r12)
	leaq	16(%r12), %rdi
	callq	_v4l2_async_notifier_register
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:
	movl	%eax, %r15d
	movq	(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_15
LBB0_13:
	xorl	%r15d, %r15d
	jmp	LBB0_15
LBB0_4:
	movl	%eax, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_9
LBB0_8:
	movl	%eax, %r15d
LBB0_9:
	movq	%r13, %rdi
	callq	_fwnode_handle_put
	movq	%r14, %rdi
	callq	_kfree
LBB0_15:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CIO2_NUM_PORTS,4,2             ## @CIO2_NUM_PORTS
	.comm	_V4L2_MBUS_CSI2_DPHY,4,2        ## @V4L2_MBUS_CSI2_DPHY
	.comm	_FWNODE_GRAPH_ENDPOINT_NEXT,4,2 ## @FWNODE_GRAPH_ENDPOINT_NEXT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_cio2_async_ops,4,2             ## @cio2_async_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to register async notifier : %d\n"

	.no_dead_strip	_cio2_parse_firmware
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cio2_parse_firmware
_cio2_parse_firmware:                   ; @cio2_parse_firmware
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x25, _CIO2_NUM_PORTS@GOTPAGE
Lloh1:
	ldr	x25, [x25, _CIO2_NUM_PORTS@GOTPAGEOFF]
	ldr	w8, [x25]
	cbz	w8, LBB0_8
; %bb.1:
	mov	w20, #0
	add	x21, x19, #8
Lloh2:
	adrp	x26, _V4L2_MBUS_CSI2_DPHY@GOTPAGE
Lloh3:
	ldr	x26, [x26, _V4L2_MBUS_CSI2_DPHY@GOTPAGEOFF]
Lloh4:
	adrp	x27, _FWNODE_GRAPH_ENDPOINT_NEXT@GOTPAGE
Lloh5:
	ldr	x27, [x27, _FWNODE_GRAPH_ENDPOINT_NEXT@GOTPAGEOFF]
Lloh6:
	adrp	x28, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x28, [x28, _GFP_KERNEL@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w20, w20, #1
	ldr	w8, [x25]
	cmp	w20, w8
	b.hs	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [sp]
	ldr	w8, [x26]
	str	w8, [sp, #8]
	ldr	x0, [x19]
	bl	_dev_fwnode
	ldr	w3, [x27]
	mov	x1, x20
	mov	w2, #0
	bl	_fwnode_graph_get_endpoint_by_id
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x0
	mov	x1, sp
	bl	_v4l2_fwnode_endpoint_parse
	cbnz	w0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x28]
	mov	w0, #12
	bl	_kzalloc
	mov	x24, x0
	cbz	x0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	d0, [sp]
	stur	d0, [x24, #4]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x24
	bl	_v4l2_async_notifier_add_fwnode_remote_subdev
	cbnz	w0, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_fwnode_handle_put
	b	LBB0_2
LBB0_8:
Lloh8:
	adrp	x8, _cio2_async_ops@GOTPAGE
Lloh9:
	ldr	x8, [x8, _cio2_async_ops@GOTPAGEOFF]
	mov	x1, x19
	str	x8, [x1, #8]!
	add	x0, x1, #8
	bl	_v4l2_async_notifier_register
	mov	x23, x0
	cbz	w0, LBB0_14
; %bb.9:
	ldr	x0, [x19]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_dev_err
	b	LBB0_14
LBB0_10:
	mov	x23, x0
	mov	x24, #0
	b	LBB0_13
LBB0_11:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_13
LBB0_12:
	mov	x23, x0
LBB0_13:
	mov	x0, x22
	bl	_fwnode_handle_put
	mov	x0, x24
	bl	_kfree
LBB0_14:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CIO2_NUM_PORTS,4,2             ; @CIO2_NUM_PORTS
	.comm	_V4L2_MBUS_CSI2_DPHY,4,2        ; @V4L2_MBUS_CSI2_DPHY
	.comm	_FWNODE_GRAPH_ENDPOINT_NEXT,4,2 ; @FWNODE_GRAPH_ENDPOINT_NEXT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_cio2_async_ops,4,2             ; @cio2_async_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to register async notifier : %d\n"

	.no_dead_strip	_cio2_parse_firmware
.subsections_via_symbols
