	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function plx_pci_del_card
_plx_pci_del_card:                      ## @plx_pci_del_card
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_pci_get_drvdata
	movq	%rax, %r13
	movq	_PLX_PCI_MAX_CHAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.1:
	leaq	8(%r14), %r15
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_free_sja1000dev
	movq	_PLX_PCI_MAX_CHAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	%eax, %rcx
	cmpq	%rcx, %r12
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rcx
	movq	(%rcx,%r12,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %edx
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	%rbx, %rdi
	callq	_unregister_sja1000dev
	movq	%rbx, %rdi
	callq	_netdev_priv
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_pci_iounmap
	jmp	LBB0_5
LBB0_7:
	movq	%r14, %rdi
	callq	*8(%r13)
	movq	(%r14), %rax
	movq	_PCI_DEVICE_ID_PLX_9056@GOTPCREL(%rip), %rcx
	movq	_MARATHON_PCIE_DEVICE_ID@GOTPCREL(%rip), %rdi
	movq	_PLX9056_INTCSR@GOTPCREL(%rip), %rdx
	movq	%rdx, %rsi
	cmpq	(%rdi), %rax
	je	LBB0_9
## %bb.8:
	movq	_PLX_INTCSR@GOTPCREL(%rip), %rsi
LBB0_9:
	cmpq	(%rcx), %rax
	cmoveq	%rdx, %rsi
	movq	(%rsi), %rsi
	addq	(%r13), %rsi
	xorl	%edi, %edi
	callq	_iowrite32
	movq	(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_pci_iounmap
LBB0_11:
	movq	%r13, %rdi
	callq	_kfree
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pci_disable_device             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PLX_PCI_MAX_CHAN,4,2           ## @PLX_PCI_MAX_CHAN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Removing %s\n"

	.comm	_PCI_DEVICE_ID_PLX_9056,8,3     ## @PCI_DEVICE_ID_PLX_9056
	.comm	_MARATHON_PCIE_DEVICE_ID,8,3    ## @MARATHON_PCIE_DEVICE_ID
	.comm	_PLX_INTCSR,8,3                 ## @PLX_INTCSR
	.comm	_PLX9056_INTCSR,8,3             ## @PLX9056_INTCSR
	.no_dead_strip	_plx_pci_del_card
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function plx_pci_del_card
_plx_pci_del_card:                      ; @plx_pci_del_card
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	bl	_pci_get_drvdata
	mov	x20, x0
Lloh0:
	adrp	x24, _PLX_PCI_MAX_CHAN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PLX_PCI_MAX_CHAN@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x25, #0
	add	x21, x19, #8
Lloh2:
	adrp	x22, l_.str@PAGE
Lloh3:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_free_sja1000dev
	ldr	w8, [x24]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	cmp	x25, w8, sxtw
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #16]
	ldr	x23, [x9, x25, lsl #3]
	cbz	x23, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x23]
	mov	x0, x21
	mov	x1, x22
	bl	_dev_info
	mov	x0, x23
	bl	_unregister_sja1000dev
	mov	x0, x23
	bl	_netdev_priv
	ldr	x1, [x0]
	cbz	x1, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_pci_iounmap
	b	LBB0_2
LBB0_7:
	ldr	x8, [x20, #8]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19]
Lloh4:
	adrp	x9, _PCI_DEVICE_ID_PLX_9056@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PCI_DEVICE_ID_PLX_9056@GOTPAGEOFF]
Lloh6:
	adrp	x10, _MARATHON_PCIE_DEVICE_ID@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MARATHON_PCIE_DEVICE_ID@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
Lloh10:
	adrp	x8, _PLX9056_INTCSR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PLX9056_INTCSR@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh12:
	adrp	x10, _PLX_INTCSR@GOTPAGE
Lloh13:
	ldr	x10, [x10, _PLX_INTCSR@GOTPAGEOFF]
	csel	x8, x8, x10, eq
	ldr	x8, [x8]
	add	x1, x8, x9
	mov	w0, #0
	bl	_iowrite32
	ldr	x1, [x20]
	cbz	x1, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_pci_iounmap
LBB0_9:
	mov	x0, x20
	bl	_kfree
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_pci_disable_device
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PLX_PCI_MAX_CHAN,4,2           ; @PLX_PCI_MAX_CHAN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Removing %s\n"

	.comm	_PCI_DEVICE_ID_PLX_9056,8,3     ; @PCI_DEVICE_ID_PLX_9056
	.comm	_MARATHON_PCIE_DEVICE_ID,8,3    ; @MARATHON_PCIE_DEVICE_ID
	.comm	_PLX_INTCSR,8,3                 ; @PLX_INTCSR
	.comm	_PLX9056_INTCSR,8,3             ; @PLX9056_INTCSR
	.no_dead_strip	_plx_pci_del_card
.subsections_via_symbols
