	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_device_register_subdev    ## -- Begin function v4l2_device_register_subdev
	.p2align	4, 0x90
_v4l2_device_register_subdev:           ## @v4l2_device_register_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movq	24(%rbx), %rax
	cmpl	$0, (%rax)
	je	LBB0_3
## %bb.5:
	movq	%rdi, %r14
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	setne	%dil
	callq	_WARN_ON
	movl	20(%rbx), %edi
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	8(%r14), %edi
	movl	16(%rbx), %esi
	callq	_v4l2_ctrl_add_handler
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	%r14, 8(%rbx)
	movq	%r14, %rdi
	callq	_spin_lock
	leaq	4(%r14), %rsi
	movq	%rbx, %rdi
	callq	_list_add_tail
	movq	%r14, %rdi
	callq	_spin_unlock
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODEV,4,2                     ## @ENODEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_device_register_subdev    ; -- Begin function v4l2_device_register_subdev
	.p2align	2
_v4l2_device_register_subdev:           ; @v4l2_device_register_subdev
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_6
; %bb.2:
	ldr	x8, [x20, #24]
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.3:
	mov	x19, x0
	ldr	x8, [x20, #8]
	cmp	x8, #0
	cset	w0, ne
	bl	_WARN_ON
	ldr	w0, [x20, #20]
	bl	_try_module_get
	cbz	w0, LBB0_9
; %bb.4:
	ldr	w0, [x19, #8]
	ldr	w1, [x20, #16]
	bl	_v4l2_ctrl_add_handler
	cbnz	w0, LBB0_8
; %bb.5:
	str	x19, [x20, #8]
	mov	x0, x19
	bl	_spin_lock
	add	x1, x19, #4
	mov	x0, x20
	bl	_list_add_tail
	mov	x0, x19
	bl	_spin_unlock
	mov	w0, #0
	b	LBB0_8
LBB0_6:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODEV,4,2                     ; @ENODEV
.subsections_via_symbols
