	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_async_register_subdev_sensor_common ## -- Begin function v4l2_async_register_subdev_sensor_common
	.p2align	4, 0x90
_v4l2_async_register_subdev_sensor_common: ## @v4l2_async_register_subdev_sensor_common
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	xorl	%edi, %edi
	cmpl	$0, 8(%r15)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_v4l2_async_notifier_init
	movl	8(%r15), %edi
	movq	%r14, %rsi
	callq	_v4l2_async_notifier_parse_fwnode_sensor_common
	testl	%eax, %eax
	js	LBB0_11
## %bb.6:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_v4l2_async_subdev_notifier_register
	testl	%eax, %eax
	js	LBB0_11
## %bb.7:
	movq	%r15, %rdi
	callq	_v4l2_async_register_subdev
	testl	%eax, %eax
	js	LBB0_12
## %bb.8:
	movq	%r14, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_11:
	movl	%eax, %ebx
	jmp	LBB0_13
LBB0_12:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_v4l2_async_notifier_unregister
LBB0_13:
	movq	%r14, %rdi
	callq	_v4l2_async_notifier_cleanup
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_3
	.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_subdev_sensor_common ; -- Begin function v4l2_async_register_subdev_sensor_common
	.p2align	2
_v4l2_async_register_subdev_sensor_common: ; @v4l2_async_register_subdev_sensor_common
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
	ldr	w8, [x0, #8]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_3:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
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_9
; %bb.5:
	mov	x19, x0
	bl	_v4l2_async_notifier_init
	ldr	w0, [x20, #8]
	mov	x1, x19
	bl	_v4l2_async_notifier_parse_fwnode_sensor_common
	tbnz	w0, #31, LBB0_10
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	bl	_v4l2_async_subdev_notifier_register
	tbnz	w0, #31, LBB0_10
; %bb.7:
	mov	x0, x20
	bl	_v4l2_async_register_subdev
	tbnz	w0, #31, LBB0_11
; %bb.8:
	mov	w21, #0
	str	x19, [x20]
	b	LBB0_3
LBB0_9:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_10:
	mov	x21, x0
	b	LBB0_12
LBB0_11:
	mov	x21, x0
	mov	x0, x19
	bl	_v4l2_async_notifier_unregister
LBB0_12:
	mov	x0, x19
	bl	_v4l2_async_notifier_cleanup
	mov	x0, x19
	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
