	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_int_device_register       ## -- Begin function v4l2_int_device_register
	.p2align	4, 0x90
_v4l2_int_device_register:              ## @v4l2_int_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_v4l2_int_type_slave@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	movq	_ioctl_sort_cmp@GOTPCREL(%rip), %rcx
	movl	$4, %edx
	xorl	%r8d, %r8d
	callq	_sort
LBB0_2:
	movq	_mutex@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	addq	$8, %rbx
	movq	_int_list@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_list_add
	xorl	%eax, %eax
	callq	_v4l2_int_device_try_attach_all
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_v4l2_int_type_slave,8,3        ## @v4l2_int_type_slave
	.comm	_ioctl_sort_cmp,4,2             ## @ioctl_sort_cmp
	.comm	_mutex,4,2                      ## @mutex
	.comm	_int_list,4,2                   ## @int_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_int_device_register       ; -- Begin function v4l2_int_device_register
	.p2align	2
_v4l2_int_device_register:              ; @v4l2_int_device_register
	.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
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _v4l2_int_type_slave@GOTPAGE
Lloh1:
	ldr	x9, [x9, _v4l2_int_type_slave@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19, #16]
	ldp	w1, w0, [x8]
Lloh3:
	adrp	x3, _ioctl_sort_cmp@GOTPAGE
Lloh4:
	ldr	x3, [x3, _ioctl_sort_cmp@GOTPAGEOFF]
	mov	w2, #4
	mov	x4, #0
	bl	_sort
LBB0_2:
Lloh5:
	adrp	x20, _mutex@GOTPAGE
Lloh6:
	ldr	x20, [x20, _mutex@GOTPAGEOFF]
	mov	x0, x20
	bl	_mutex_lock
	add	x0, x19, #8
Lloh7:
	adrp	x1, _int_list@GOTPAGE
Lloh8:
	ldr	x1, [x1, _int_list@GOTPAGEOFF]
	bl	_list_add
	bl	_v4l2_int_device_try_attach_all
	mov	x0, x20
	bl	_mutex_unlock
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_v4l2_int_type_slave,8,3        ; @v4l2_int_type_slave
	.comm	_ioctl_sort_cmp,4,2             ; @ioctl_sort_cmp
	.comm	_mutex,4,2                      ; @mutex
	.comm	_int_list,4,2                   ; @int_list
.subsections_via_symbols
