	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_device_name
_parse_device_name:                     ## @parse_device_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
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	(%rcx), %r15
	movq	%rax, %rdi
	callq	_av_strdup
	leaq	L_.str(%rip), %rsi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_strtok
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r14
	leaq	8(%r15), %r12
	leaq	L_.str.2(%rip), %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, (%rcx)
	xorl	%edi, %edi
	leaq	L_.str(%rip), %rsi
	callq	_strtok
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strtok
	movq	%rax, %r13
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_strcmp
	movq	%r15, %rcx
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	movq	%r12, %rcx
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_6:
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.9:
	callq	_av_strdup
	movq	%rax, (%r15)
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	jne	LBB0_10
	jmp	LBB0_11
LBB0_7:
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
LBB0_10:
	callq	_av_strdup
	movq	%rax, 8(%r15)
LBB0_11:
	movl	$1, %ebx
LBB0_12:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_free
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"="

L_.str.1:                               ## @.str.1
	.asciz	":"

L_.str.2:                               ## @.str.2
	.asciz	"video"

L_.str.3:                               ## @.str.3
	.asciz	"audio"

	.no_dead_strip	_parse_device_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_device_name
_parse_device_name:                     ; @parse_device_name
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldp	x0, x8, [x0]
	ldr	x26, [x8]
	bl	_av_strdup
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strtok
	cbz	x0, LBB0_6
; %bb.1:
	mov	x24, x0
	add	x27, x26, #8
Lloh2:
	adrp	x20, l_.str.1@PAGE
Lloh3:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh4:
	adrp	x21, l_.str.2@PAGE
Lloh5:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh6:
	adrp	x22, l_.str@PAGE
Lloh7:
	add	x22, x22, l_.str@PAGEOFF
Lloh8:
	adrp	x23, l_.str.3@PAGE
Lloh9:
	add	x23, x23, l_.str.3@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	x25, [x8]
	mov	x0, #0
	mov	x1, x22
	bl	_strtok
	mov	x24, x0
	cbz	x0, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, #0
	mov	x1, x20
	bl	_strtok
	mov	x25, x0
	mov	x0, x24
	mov	x1, x21
	bl	_strcmp
	mov	x8, x26
	cbz	w0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x24
	mov	x1, x23
	bl	_strcmp
	mov	x8, x27
	cbz	w0, LBB0_2
; %bb.5:
	mov	w20, #0
	stp	xzr, xzr, [x26]
	b	LBB0_11
LBB0_6:
	ldr	x0, [x26]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_av_strdup
	str	x0, [x26]
	ldr	x0, [x26, #8]
	cbnz	x0, LBB0_9
	b	LBB0_10
LBB0_8:
	ldr	x0, [x26, #8]
	cbz	x0, LBB0_12
LBB0_9:
	bl	_av_strdup
	str	x0, [x26, #8]
LBB0_10:
	mov	w20, #1
LBB0_11:
	mov	x0, x19
	bl	_av_free
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	w20, #0
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"="

l_.str.1:                               ; @.str.1
	.asciz	":"

l_.str.2:                               ; @.str.2
	.asciz	"video"

l_.str.3:                               ; @.str.3
	.asciz	"audio"

	.no_dead_strip	_parse_device_name
.subsections_via_symbols
