	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hw_device_default_name
_hw_device_default_name:                ## @hw_device_default_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_av_hwdevice_get_type_name
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_strlen
	movq	%rax, %r15
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_av_malloc
	movq	%rax, -48(%rbp)
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r12
	leaq	L_.str(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	movq	%r14, %rcx
	movl	%ebx, %r8d
	callq	_snprintf
	movq	%r12, %rdi
	callq	_hw_device_get_by_name
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	cmpl	$1000, %ebx                     ## imm = 0x3E8
	jne	LBB0_3
## %bb.4:
	leaq	-48(%rbp), %rdi
	callq	_av_freep
LBB0_5:
	xorl	%r12d, %r12d
LBB0_6:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%d"

	.no_dead_strip	_hw_device_default_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hw_device_default_name
_hw_device_default_name:                ; @hw_device_default_name
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	bl	_av_hwdevice_get_type_name
	mov	x19, x0
	bl	_strlen
	add	x21, x0, #4
	mov	x0, x21
	bl	_av_malloc
	mov	x20, x0
	str	x0, [sp, #8]
	cbz	x0, LBB0_5
; %bb.1:
	mov	w22, #0
Lloh0:
	adrp	x23, l_.str@PAGE
Lloh1:
	add	x23, x23, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	mov	x3, x19
	mov	x4, x22
	bl	_snprintf
	mov	x0, x20
	bl	_hw_device_get_by_name
	cbz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w22, w22, #1
	cmp	w22, #1000
	b.ne	LBB0_2
; %bb.4:
	add	x0, sp, #8
	bl	_av_freep
	mov	x20, #0
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%d"

	.no_dead_strip	_hw_device_default_name
.subsections_via_symbols
