	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_device_register           ## -- Begin function v4l2_device_register
	.p2align	4, 0x90
_v4l2_device_register:                  ## @v4l2_device_register
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	28(%rsi), %rdi
	callq	_INIT_LIST_HEAD
	leaq	24(%rbx), %rdi
	callq	_spin_lock_init
	leaq	20(%rbx), %rdi
	callq	_v4l2_prio_init
	leaq	16(%rbx), %rdi
	callq	_kref_init
	movq	%r14, %rdi
	callq	_get_device
	movq	%r14, 8(%rbx)
	movq	(%rbx), %r15
	movl	(%r15), %eax
	testq	%r14, %r14
	je	LBB0_3
## %bb.5:
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	(%r14), %rax
	movq	(%rax), %r12
	movq	%r14, %rdi
	callq	_dev_name
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	$8, %esi
	movq	%r12, %rcx
	movq	%rax, %r8
	callq	_snprintf
LBB0_7:
	movq	%r14, %rdi
	callq	_dev_get_drvdata
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_dev_set_drvdata
	jmp	LBB0_9
LBB0_3:
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_9:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%r15d, %r15d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_device_register           ; -- Begin function v4l2_device_register
	.p2align	2
_v4l2_device_register:                  ; @v4l2_device_register
	.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
	cbz	x1, LBB0_8
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	add	x0, x1, #28
	bl	_INIT_LIST_HEAD
	add	x0, x19, #24
	bl	_spin_lock_init
	add	x0, x19, #20
	bl	_v4l2_prio_init
	add	x0, x19, #16
	bl	_kref_init
	mov	x0, x20
	bl	_get_device
	str	x20, [x19, #8]
	ldr	x21, [x19]
	ldr	w8, [x21]
	cbz	x20, LBB0_7
; %bb.2:
	cbnz	w8, LBB0_4
; %bb.3:
	ldr	x8, [x20]
	ldr	x22, [x8]
	mov	x0, x20
	bl	_dev_name
	mov	x4, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	w1, #8
	mov	x3, x22
	bl	_snprintf
LBB0_4:
	mov	x0, x20
	bl	_dev_get_drvdata
	cbnz	w0, LBB0_6
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	bl	_dev_set_drvdata
LBB0_6:
	mov	w0, #0
	b	LBB0_9
LBB0_7:
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_9
LBB0_8:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s %s"

.subsections_via_symbols
