	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msnd_register                  ## -- Begin function msnd_register
	.p2align	4, 0x90
_msnd_register:                         ## @msnd_register
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MSND_MAX_DEVS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.4:
	movq	_devs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdx,%rcx,8)
	je	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_5
	jmp	LBB0_7
LBB0_1:
	xorl	%ecx, %ecx
LBB0_2:
	cmpl	%eax, %ecx
	jne	LBB0_3
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_3:
	movq	_devs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ecx, %ecx
	movq	%rdi, (%rax,%rcx,8)
	movq	_num_devs@GOTPCREL(%rip), %rax
	incl	(%rax)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSND_MAX_DEVS,4,2              ## @MSND_MAX_DEVS
	.comm	_devs,8,3                       ## @devs
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_num_devs,4,2                   ## @num_devs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msnd_register                  ; -- Begin function msnd_register
	.p2align	2
_msnd_register:                         ; @msnd_register
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _MSND_MAX_DEVS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSND_MAX_DEVS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x9, #0
Lloh3:
	adrp	x10, _devs@GOTPAGE
Lloh4:
	ldr	x10, [x10, _devs@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x9, lsl #3]
	cbz	x11, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_2
	b	LBB0_6
LBB0_4:
	mov	w9, #0
LBB0_5:
	cmp	w9, w8
	b.ne	LBB0_7
LBB0_6:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_7:
Lloh9:
	adrp	x10, _devs@GOTPAGE
Lloh10:
	ldr	x10, [x10, _devs@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	str	x0, [x10, w9, uxtw #3]
Lloh12:
	adrp	x9, _num_devs@GOTPAGE
Lloh13:
	ldr	x9, [x9, _num_devs@GOTPAGEOFF]
	ldr	w10, [x9]
	add	w10, w10, #1
	str	w10, [x9]
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MSND_MAX_DEVS,4,2              ; @MSND_MAX_DEVS
	.comm	_devs,8,3                       ; @devs
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_num_devs,4,2                   ; @num_devs
.subsections_via_symbols
