	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_async_register_fwnode_subdev ## -- Begin function v4l2_async_register_fwnode_subdev
	.p2align	4, 0x90
_v4l2_async_register_fwnode_subdev:     ## @v4l2_async_register_fwnode_subdev
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r14d
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	xorl	%edi, %edi
	testq	%r15, %r15
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_19:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %r12
	movq	%r15, %rdi
	callq	_dev_fwnode
	movq	%rax, %rdi
	callq	_fwnode_device_is_available
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r13
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_v4l2_async_notifier_init
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_9
## %bb.7:
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_13
## %bb.8:
	movl	%ecx, %r14d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%r13,4), %ecx
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_v4l2_async_notifier_parse_fwnode_endpoints_by_port
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%r13
	cmpq	%r13, %r14
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	jne	LBB0_12
	jmp	LBB0_13
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_9:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_v4l2_async_notifier_parse_fwnode_endpoints
	testl	%eax, %eax
	js	LBB0_10
LBB0_13:
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_v4l2_async_subdev_notifier_register
	testl	%eax, %eax
	js	LBB0_14
## %bb.15:
	movq	%r14, %rdi
	callq	_v4l2_async_register_subdev
	testl	%eax, %eax
	js	LBB0_17
## %bb.16:
	movq	%rbx, (%r14)
	xorl	%r15d, %r15d
	jmp	LBB0_19
LBB0_10:
	movl	%eax, %r15d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_14:
	movl	%eax, %r15d
	jmp	LBB0_18
LBB0_17:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_v4l2_async_notifier_unregister
LBB0_18:
	movq	%rbx, %rdi
	callq	_v4l2_async_notifier_cleanup
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_async_register_fwnode_subdev ; -- Begin function v4l2_async_register_fwnode_subdev
	.p2align	2
_v4l2_async_register_fwnode_subdev:     ; @v4l2_async_register_fwnode_subdev
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x4
	mov	x25, x3
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x24, [x0, #8]
	cmp	x24, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_4
LBB0_1:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_3:
	mov	x0, x25
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x24
	bl	_dev_fwnode
	bl	_fwnode_device_is_available
	cbz	w0, LBB0_1
; %bb.5:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	cbz	x0, LBB0_11
; %bb.6:
	mov	x20, x0
	bl	_v4l2_async_notifier_init
	cbz	x23, LBB0_12
; %bb.7:
	cbz	w25, LBB0_13
; %bb.8:
	mov	w26, w25
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x23]
	mov	x0, x24
	mov	x1, x20
	mov	x2, x22
	mov	x4, x21
	bl	_v4l2_async_notifier_parse_fwnode_endpoints_by_port
	tbnz	w0, #31, LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x23, x23, #4
	subs	x26, x26, #1
	b.ne	LBB0_9
	b	LBB0_13
LBB0_11:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_12:
	mov	x0, x24
	mov	x1, x20
	mov	x2, x22
	mov	x3, x21
	bl	_v4l2_async_notifier_parse_fwnode_endpoints
	tbnz	w0, #31, LBB0_16
LBB0_13:
	mov	x0, x19
	mov	x1, x20
	bl	_v4l2_async_subdev_notifier_register
	tbnz	w0, #31, LBB0_16
; %bb.14:
	mov	x0, x19
	bl	_v4l2_async_register_subdev
	tbnz	w0, #31, LBB0_17
; %bb.15:
	mov	w25, #0
	str	x20, [x19]
	b	LBB0_3
LBB0_16:
	mov	x25, x0
	b	LBB0_18
LBB0_17:
	mov	x25, x0
	mov	x0, x20
	bl	_v4l2_async_notifier_unregister
LBB0_18:
	mov	x0, x20
	bl	_v4l2_async_notifier_cleanup
	mov	x0, x20
	bl	_kfree
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
