	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_device_set_name           ## -- Begin function v4l2_device_set_name
	.p2align	4, 0x90
_v4l2_device_set_name:                  ## @v4l2_device_set_name
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	%rdx, %rdi
	callq	_atomic_inc_return
	movl	%eax, %ebx
	decl	%ebx
	movq	%r15, %rdi
	callq	_strlen
	cltq
	movb	-1(%rax,%r15), %al
	addb	$-48, %al
	cmpb	$10, %al
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmovbq	%rax, %rdx
	movl	$4, %esi
	movq	%r15, %rcx
	movl	%ebx, %r8d
	callq	_snprintf
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s-%d"

L_.str.1:                               ## @.str.1
	.asciz	"%s%d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_device_set_name           ; -- Begin function v4l2_device_set_name
	.p2align	2
_v4l2_device_set_name:                  ; @v4l2_device_set_name
	.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	x19, x1
	mov	x20, x0
	mov	x0, x2
	bl	_atomic_inc_return
	sub	w21, w0, #1
	mov	x0, x19
	bl	_strlen
	add	x8, x19, w0, sxtw
	ldurb	w8, [x8, #-1]
	sub	w8, w8, #48
	ldr	w0, [x20]
Lloh0:
	adrp	x9, l_.str.1@PAGE
Lloh1:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh2:
	adrp	x10, l_.str@PAGE
Lloh3:
	add	x10, x10, l_.str@PAGEOFF
	cmp	w8, #10
	csel	x2, x10, x9, lo
	mov	w1, #4
	mov	x3, x19
	mov	x4, x21
	bl	_snprintf
	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
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s-%d"

l_.str.1:                               ; @.str.1
	.asciz	"%s%d"

.subsections_via_symbols
