	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_remove
_pci_remove:                            ## @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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_pci_get_drvdata
	movq	%rax, %rbx
	movq	_OHCI1394_HCControlSet@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_reg_read
	movq	_OHCI1394_HCControl_LPS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_OHCI1394_IntMaskClear@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_reg_write
	movq	%rbx, %rdi
	callq	_flush_writes
LBB0_2:
	leaq	80(%rbx), %rdi
	callq	_cancel_work_sync
	leaq	60(%rbx), %rdi
	callq	_fw_core_remove_card
	movq	%rbx, %rdi
	callq	_software_reset
	movl	4(%r14), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	movq	(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.3:
	cmpq	8(%rbx), %rdx
	je	LBB0_5
## %bb.4:
	movq	_CONFIG_ROM_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	60(%rbx), %edi
	movl	76(%rbx), %ecx
	callq	_dma_free_coherent
LBB0_5:
	movq	8(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.6:
	movq	_CONFIG_ROM_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	60(%rbx), %edi
	movl	72(%rbx), %ecx
	callq	_dma_free_coherent
LBB0_7:
	leaq	68(%rbx), %rdi
	callq	_ar_context_release
	leaq	64(%rbx), %rdi
	callq	_ar_context_release
	movl	60(%rbx), %edi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%rbx), %rdx
	movl	56(%rbx), %ecx
	callq	_dma_free_coherent
	leaq	52(%rbx), %rdi
	callq	_context_release
	movq	%rbx, %rdi
	addq	$48, %rdi
	callq	_context_release
	movq	40(%rbx), %rdi
	callq	_kfree
	movq	32(%rbx), %rdi
	callq	_kfree
	movq	%r14, %rdi
	callq	_pci_disable_msi
	movl	24(%rbx), %esi
	movq	%r14, %rdi
	callq	_pci_iounmap
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pci_release_region
	movq	%r14, %rdi
	callq	_pci_disable_device
	movq	%rbx, %rdi
	callq	_kfree
	movq	%r14, %rdi
	callq	_pmac_ohci_off
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_notice                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OHCI1394_HCControlSet,4,2      ## @OHCI1394_HCControlSet
	.comm	_OHCI1394_HCControl_LPS,4,2     ## @OHCI1394_HCControl_LPS
	.comm	_OHCI1394_IntMaskClear,4,2      ## @OHCI1394_IntMaskClear
	.comm	_CONFIG_ROM_SIZE,4,2            ## @CONFIG_ROM_SIZE
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"removed fw-ohci device\n"

	.no_dead_strip	_pci_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_remove
_pci_remove:                            ; @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
	mov	x19, x0
	bl	_pci_get_drvdata
	mov	x20, x0
Lloh0:
	adrp	x8, _OHCI1394_HCControlSet@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OHCI1394_HCControlSet@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_reg_read
Lloh3:
	adrp	x8, _OHCI1394_HCControl_LPS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OHCI1394_HCControl_LPS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _OHCI1394_IntMaskClear@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OHCI1394_IntMaskClear@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #-1
	bl	_reg_write
	mov	x0, x20
	bl	_flush_writes
LBB0_2:
	add	x0, x20, #80
	bl	_cancel_work_sync
	add	x0, x20, #60
	bl	_fw_core_remove_card
	mov	x0, x20
	bl	_software_reset
	ldr	w0, [x19, #4]
	mov	x1, x20
	bl	_free_irq
	ldr	x2, [x20]
	cbz	x2, LBB0_5
; %bb.3:
	ldr	x8, [x20, #8]
	cmp	x2, x8
	b.eq	LBB0_5
; %bb.4:
	ldr	w0, [x20, #60]
Lloh9:
	adrp	x8, _CONFIG_ROM_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CONFIG_ROM_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w3, [x20, #76]
	bl	_dma_free_coherent
LBB0_5:
	ldr	x2, [x20, #8]
	cbz	x2, LBB0_7
; %bb.6:
	ldr	w0, [x20, #60]
Lloh12:
	adrp	x8, _CONFIG_ROM_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CONFIG_ROM_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w3, [x20, #72]
	bl	_dma_free_coherent
LBB0_7:
	add	x0, x20, #68
	bl	_ar_context_release
	add	x0, x20, #64
	bl	_ar_context_release
Lloh15:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	x2, [x20, #16]
	ldp	w3, w0, [x20, #56]
	bl	_dma_free_coherent
	add	x0, x20, #52
	bl	_context_release
	add	x0, x20, #48
	bl	_context_release
	ldr	x0, [x20, #40]
	bl	_kfree
	ldr	x0, [x20, #32]
	bl	_kfree
	mov	x0, x19
	bl	_pci_disable_msi
	ldr	w1, [x20, #24]
	mov	x0, x19
	bl	_pci_iounmap
	mov	x0, x19
	mov	w1, #0
	bl	_pci_release_region
	mov	x0, x19
	bl	_pci_disable_device
	mov	x0, x20
	bl	_kfree
	mov	x0, x19
	bl	_pmac_ohci_off
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_notice
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_OHCI1394_HCControlSet,4,2      ; @OHCI1394_HCControlSet
	.comm	_OHCI1394_HCControl_LPS,4,2     ; @OHCI1394_HCControl_LPS
	.comm	_OHCI1394_IntMaskClear,4,2      ; @OHCI1394_IntMaskClear
	.comm	_CONFIG_ROM_SIZE,4,2            ; @CONFIG_ROM_SIZE
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"removed fw-ohci device\n"

	.no_dead_strip	_pci_remove
.subsections_via_symbols
