	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pulse_add_detected_device
_pulse_add_detected_device:             ## @pulse_add_detected_device
	.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
	cmpl	$0, (%rdi)
	je	LBB0_1
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	$16, %edi
	callq	_av_mallocz
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_av_strdup
	movq	%rax, 8(%r14)
	movq	%r12, %rdi
	callq	_av_strdup
	movq	%rax, (%r14)
	cmpq	$0, 8(%r14)
	je	LBB0_5
## %bb.4:
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	8(%r15), %rsi
	leaq	4(%rsi), %rdi
	movq	%r14, %rdx
	callq	_av_dynarray_add_nofree
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jns	LBB0_8
	jmp	LBB0_6
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, (%r15)
	jmp	LBB0_8
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_6:
	movq	%r14, %rdi
	addq	$8, %rdi
	movl	%eax, (%r15)
	callq	_av_freep
	movq	%r14, %rdi
	callq	_av_freep
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_av_free                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_pulse_add_detected_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pulse_add_detected_device
_pulse_add_detected_device:             ; @pulse_add_detected_device
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_2
LBB0_1:
	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
LBB0_2:
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	mov	w0, #16
	bl	_av_mallocz
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
	mov	x0, x21
	bl	_av_strdup
	mov	x21, x20
	str	x0, [x21, #8]!
	mov	x0, x22
	bl	_av_strdup
	str	x0, [x20]
	ldr	x8, [x21]
	cmp	x8, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_6
; %bb.4:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_7
LBB0_5:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_AVERROR
	str	w0, [x19]
	b	LBB0_1
LBB0_6:
	ldr	x1, [x19, #8]
	add	x0, x1, #4
	mov	x2, x20
	bl	_av_dynarray_add_nofree
                                        ; kill: def $w0 killed $w0 def $x0
	tbz	w0, #31, LBB0_1
LBB0_7:
	str	w0, [x19]
	mov	x0, x21
	bl	_av_freep
	mov	x0, x20
	bl	_av_freep
	mov	x0, x20
	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
	b	_av_free
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_pulse_add_detected_device
.subsections_via_symbols
