	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function macio_add_reg
_macio_add_reg:                         ## @macio_add_reg
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, -60(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-72(%rbp), %rcx
	movl	$16, %edx
	callq	_OF_getprop_alloc_multi
	cmpl	$-1, %eax
	je	LBB0_17
## %bb.1:
	movl	%eax, %r14d
	movq	-72(%rbp), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
LBB0_14:
	testl	%r14d, %r14d
	jle	LBB0_17
## %bb.15:
	movl	%r14d, %r14d
	movl	$8, %r15d
	xorl	%ebx, %ebx
	movq	_SYS_RES_MEMORY@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	-72(%rbp), %rax
	movq	-8(%rax,%r15), %rcx
	movq	(%rax,%r15), %r9
	leaq	(%r9,%rcx), %r8
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_resource_list_add
	incq	%rbx
	addq	$16, %r15
	cmpq	%rbx, %r14
	jne	LBB0_16
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r15, %rdi
	callq	_OF_child
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	leaq	L_.str.1(%rip), %r13
	leaq	-56(%rbp), %r15
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_OF_peer
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	$8, %ecx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_OF_getprop
	testl	%eax, %eax
	jle	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_7
	jmp	LBB0_9
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_3:
	xorl	%ebx, %ebx
LBB0_10:
	leaq	L_.str.3(%rip), %rsi
	leaq	-60(%rbp), %rdx
	movl	$4, %ecx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_OF_getprop
	testl	%eax, %eax
	jle	LBB0_14
## %bb.11:
	movl	-60(%rbp), %eax
	cmpl	$76, %eax
	je	LBB0_13
## %bb.12:
	cmpl	$36, %eax
	jne	LBB0_14
LBB0_13:
	movq	%r15, %rdi
	callq	_OF_parent
	leaq	L_.str(%rip), %rsi
	leaq	-88(%rbp), %rcx
	movq	%rax, %rdi
	movl	$16, %edx
	callq	_OF_getprop_alloc_multi
	movq	-72(%rbp), %rax
	movq	-88(%rbp), %rcx
	movups	(%rcx), %xmm0
	movups	%xmm0, (%rax)
	movq	16(%rcx), %rdx
	movq	%rdx, 16(%rax)
	movq	24(%rax), %rdx
	addq	16(%rcx), %rdx
	movq	%rdx, 32(%rax)
	jmp	LBB0_14
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reg"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"layout-id"

	.comm	_SYS_RES_MEMORY,4,2             ## @SYS_RES_MEMORY
	.no_dead_strip	_macio_add_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function macio_add_reg
_macio_add_reg:                         ; @macio_add_reg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	str	wzr, [sp, #28]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #40
	mov	w2, #16
	bl	_OF_getprop_alloc_multi
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	x8, [sp, #40]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
LBB0_2:
	cmp	w20, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x22, #0
	mov	w21, #0
	mov	w8, w20
	lsl	x20, x8, #4
Lloh5:
	adrp	x23, _SYS_RES_MEMORY@GOTPAGE
Lloh6:
	ldr	x23, [x23, _SYS_RES_MEMORY@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	ldr	x8, [sp, #40]
	add	x8, x8, x22
	ldp	x3, x5, [x8]
	add	x4, x5, x3
	mov	x0, x19
	mov	x2, x21
	bl	_resource_list_add
	add	w21, w21, #1
	add	x22, x22, #16
	cmp	x20, x22
	b.ne	LBB0_4
LBB0_5:
	ldr	x8, [sp, #56]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.6:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_7:
	mov	x0, x21
	bl	_OF_child
	mov	x22, x0
	cbz	x0, LBB0_12
; %bb.8:
	mov	w25, #8
	add	x26, sp, #48
Lloh10:
	adrp	x23, l_.str.1@PAGE
Lloh11:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh12:
	adrp	x24, l_.str.2@PAGE
Lloh13:
	add	x24, x24, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x22
	bl	_OF_peer
	mov	x22, x0
	cbz	x0, LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	stp	x26, x25, [sp]
	mov	x0, x22
	mov	x1, x23
	bl	_OF_getprop
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x0, sp, #48
	mov	x1, x24
	bl	_strcmp
	cbnz	x0, LBB0_9
LBB0_12:
	mov	w8, #4
	add	x9, sp, #28
	stp	x9, x8, [sp]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_OF_getprop
	cmp	w0, #1
	b.lt	LBB0_2
; %bb.13:
	ldr	w8, [sp, #28]
	cmp	w8, #76
	b.eq	LBB0_15
; %bb.14:
	cmp	w8, #36
	b.ne	LBB0_2
LBB0_15:
	mov	x0, x21
	bl	_OF_parent
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #32
	mov	w2, #16
	bl	_OF_getprop_alloc_multi
	ldp	x9, x8, [sp, #32]
	ldr	q0, [x9]
	str	q0, [x8]
	ldr	x10, [x9, #16]
	str	x10, [x8, #16]
	ldr	x9, [x9, #16]
	ldr	x10, [x8, #24]
	add	x9, x10, x9
	str	x9, [x8, #32]
	b	LBB0_2
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reg"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"layout-id"

	.comm	_SYS_RES_MEMORY,4,2             ; @SYS_RES_MEMORY
	.no_dead_strip	_macio_add_reg
.subsections_via_symbols
