	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amd8111_pci_remove
_amd8111_pci_remove:                    ## @amd8111_pci_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_amd8111_pcis@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	cmpq	$0, 24(%rbx)
	je	LBB0_4
## %bb.1:
	movq	(%rdi), %rax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 56(%rbx)
	leaq	32(%rbx), %rbx
	jne	LBB0_2
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	(%rax), %edi
	callq	_edac_pci_del_device
	movq	16(%rbx), %rdi
	callq	_edac_pci_free_ctl_info
LBB0_7:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_9:
	movq	(%rbx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_pci_dev_put                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_amd8111_pcis,8,3               ## @amd8111_pcis
	.no_dead_strip	_amd8111_pci_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amd8111_pci_remove
_amd8111_pci_remove:                    ; @amd8111_pci_remove
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _amd8111_pcis@GOTPAGE
Lloh1:
	ldr	x8, [x8, _amd8111_pcis@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x8, [x0]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	ldr	x9, [x9]
	cmp	x9, x8
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x19, #56]
	add	x19, x19, #32
	cbnz	x9, LBB0_2
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w0, [x8]
	bl	_edac_pci_del_device
	ldr	x0, [x19, #16]
	bl	_edac_pci_free_ctl_info
LBB0_7:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	blr	x8
LBB0_9:
	ldr	x0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pci_dev_put
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_amd8111_pcis,8,3               ; @amd8111_pcis
	.no_dead_strip	_amd8111_pci_remove
.subsections_via_symbols
