	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function piix4_remove
_piix4_remove:                          ## @piix4_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_piix4_adapter_count@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jle	LBB0_5
## %bb.1:
	incq	%rbx
	movq	_piix4_main_adapters@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	decq	%rbx
	cmpq	$1, %rbx
	jbe	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %r15d
	movq	(%r14), %rax
	movq	(%rax,%r15,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_piix4_adap_remove
	movq	(%r14), %rax
	movq	$0, (%rax,%r15,8)
	jmp	LBB0_4
LBB0_5:
	movq	_piix4_aux_adapter@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_piix4_adap_remove
	movq	$0, (%rbx)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_piix4_adapter_count,4,2        ## @piix4_adapter_count
	.comm	_piix4_main_adapters,8,3        ## @piix4_main_adapters
	.comm	_piix4_aux_adapter,8,3          ## @piix4_aux_adapter
	.no_dead_strip	_piix4_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function piix4_remove
_piix4_remove:                          ; @piix4_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
Lloh0:
	adrp	x8, _piix4_adapter_count@GOTPAGE
Lloh1:
	ldr	x8, [x8, _piix4_adapter_count@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	add	x19, x8, #1
Lloh3:
	adrp	x20, _piix4_main_adapters@GOTPAGE
Lloh4:
	ldr	x20, [x20, _piix4_main_adapters@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	x19, x19, #1
	cmp	x19, #1
	b.ls	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w21, w19, #2
	ldr	x8, [x20]
	ldr	x0, [x8, w21, uxtw #3]
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_piix4_adap_remove
	ldr	x8, [x20]
	str	xzr, [x8, x21, lsl #3]
	b	LBB0_2
LBB0_5:
Lloh5:
	adrp	x19, _piix4_aux_adapter@GOTPAGE
Lloh6:
	ldr	x19, [x19, _piix4_aux_adapter@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_piix4_adap_remove
	str	xzr, [x19]
LBB0_7:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_piix4_adapter_count,4,2        ; @piix4_adapter_count
	.comm	_piix4_main_adapters,8,3        ; @piix4_main_adapters
	.comm	_piix4_aux_adapter,8,3          ; @piix4_aux_adapter
	.no_dead_strip	_piix4_remove
.subsections_via_symbols
