	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aoa_fabric_layout_remove
_aoa_fabric_layout_remove:              ## @aoa_fabric_layout_remove
	.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
	movq	%rdi, %r14
	addq	$16, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	_MAX_CODECS_PER_BUS@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, (%rcx,%rbx,8)
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rcx
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_aoa_fabric_unlink_codec
	movq	16(%r12), %rcx
	movl	(%r15), %eax
	jmp	LBB0_4
LBB0_5:
	movq	%r12, %rdi
	addq	$12, %rdi
	callq	_list_del
	movq	_layouts_list_items@GOTPCREL(%rip), %rax
	decl	(%rax)
	movl	8(%r12), %edi
	callq	_of_node_put
	movq	(%r12), %rax
	movq	_AOA_NOTIFY_HEADPHONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	*8(%rax)
	movq	(%r12), %rax
	movq	_AOA_NOTIFY_LINE_OUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	*8(%rax)
	movq	(%r12), %rax
	movq	%r12, %rdi
	callq	*(%rax)
	movq	_layout_device@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	%r12, %rdi
	callq	_kfree
	movl	$-1, (%r14)
	movq	$0, 8(%r14)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_CODECS_PER_BUS,4,2         ## @MAX_CODECS_PER_BUS
	.comm	_layouts_list_items,4,2         ## @layouts_list_items
	.comm	_AOA_NOTIFY_HEADPHONE,4,2       ## @AOA_NOTIFY_HEADPHONE
	.comm	_AOA_NOTIFY_LINE_OUT,4,2        ## @AOA_NOTIFY_LINE_OUT
	.comm	_layout_device,8,3              ## @layout_device
	.no_dead_strip	_aoa_fabric_layout_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aoa_fabric_layout_remove
_aoa_fabric_layout_remove:              ; @aoa_fabric_layout_remove
	.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
	add	x0, x0, #16
	bl	_dev_get_drvdata
	mov	x20, x0
Lloh0:
	adrp	x21, _MAX_CODECS_PER_BUS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MAX_CODECS_PER_BUS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x22, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [x9, x22, lsl #3]
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #16]
	ldr	x0, [x9, x22, lsl #3]
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_aoa_fabric_unlink_codec
	ldr	x9, [x20, #16]
	ldr	w8, [x21]
	b	LBB0_2
LBB0_5:
	add	x0, x20, #12
	bl	_list_del
Lloh2:
	adrp	x8, _layouts_list_items@GOTPAGE
Lloh3:
	ldr	x8, [x8, _layouts_list_items@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	ldr	w0, [x20, #8]
	bl	_of_node_put
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
Lloh4:
	adrp	x9, _AOA_NOTIFY_HEADPHONE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _AOA_NOTIFY_HEADPHONE@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x9]
	mov	x0, x20
	mov	x2, #0
	mov	x3, #0
	blr	x8
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
Lloh7:
	adrp	x9, _AOA_NOTIFY_LINE_OUT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _AOA_NOTIFY_LINE_OUT@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x9]
	mov	x0, x20
	mov	x2, #0
	mov	x3, #0
	blr	x8
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
Lloh10:
	adrp	x8, _layout_device@GOTPAGE
Lloh11:
	ldr	x8, [x8, _layout_device@GOTPAGEOFF]
Lloh12:
	str	xzr, [x8]
	mov	x0, x20
	bl	_kfree
	mov	w8, #-1
	str	w8, [x19]
	str	xzr, [x19, #8]
	mov	w0, #0
	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 AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_CODECS_PER_BUS,4,2         ; @MAX_CODECS_PER_BUS
	.comm	_layouts_list_items,4,2         ; @layouts_list_items
	.comm	_AOA_NOTIFY_HEADPHONE,4,2       ; @AOA_NOTIFY_HEADPHONE
	.comm	_AOA_NOTIFY_LINE_OUT,4,2        ; @AOA_NOTIFY_LINE_OUT
	.comm	_layout_device,8,3              ; @layout_device
	.no_dead_strip	_aoa_fabric_layout_remove
.subsections_via_symbols
