	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AppendAudioDeviceToList        ## -- Begin function AppendAudioDeviceToList
	.p2align	4, 0x90
_AppendAudioDeviceToList:               ## @AppendAudioDeviceToList
	.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	%rdi, %r14
	movl	(%rdi), %edi
	callq	_WideStringSize
	movq	%rax, %rbx
	addl	$4, %ebx
	xorl	%eax, %eax
	callq	_LockAudioDeviceList
	movq	_audio_device_list@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	movq	(%rdi), %rax
	movslq	%ebx, %rbx
	leaq	(%rax,%rbx), %rcx
	cmpq	8(%rdi), %rcx
	jle	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_UnlockAudioDeviceList
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	addq	%rax, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movq	(%r15), %rax
	incl	16(%rax)
	addq	%rbx, (%rax)
	xorl	%eax, %eax
	callq	_UnlockAudioDeviceList
	leaq	L_.str(%rip), %rdi
	callq	_logmsg
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_audio_device_list,8,3          ## @audio_device_list
	.comm	_FALSE,4,2                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device added to list\n"

	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AppendAudioDeviceToList        ; -- Begin function AppendAudioDeviceToList
	.p2align	2
_AppendAudioDeviceToList:               ; @AppendAudioDeviceToList
	.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, x0
	ldr	w0, [x0]
	bl	_WideStringSize
	add	w20, w0, #4
	bl	_LockAudioDeviceList
Lloh0:
	adrp	x21, _audio_device_list@GOTPAGE
Lloh1:
	ldr	x21, [x21, _audio_device_list@GOTPAGEOFF]
	ldr	x8, [x21]
	sxtw	x20, w20
	ldp	x9, x10, [x8]
	add	x11, x9, x20
	cmp	x11, x10
	b.le	LBB0_2
; %bb.1:
	bl	_UnlockAudioDeviceList
Lloh2:
	adrp	x8, _FALSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	add	x0, x8, x9
	mov	x1, x19
	mov	x2, x20
	bl	_memcpy
	ldr	x8, [x21]
	ldr	w9, [x8, #16]
	add	w9, w9, #1
	str	w9, [x8, #16]
	ldr	x9, [x8]
	add	x9, x9, x20
	str	x9, [x8]
	bl	_UnlockAudioDeviceList
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_logmsg
Lloh6:
	adrp	x8, _TRUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_audio_device_list,8,3          ; @audio_device_list
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device added to list\n"

	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
