	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fpga_remove
_fpga_remove:                           ## @fpga_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	%rdi, %r14
	callq	_pci_get_drvdata
	movq	%rax, %rbx
	movq	_IRQ_EN_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	xorl	%edi, %edi
	callq	_iowrite32
	movq	_FPGA_MODE@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	addq	(%rbx), %rsi
	movl	$1, %edi
	callq	_iowrite32
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	callq	_ioread32
	movq	%rbx, %rdi
	callq	_atm_remove
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	leaq	16(%rbx), %rdi
	callq	_tasklet_kill
	movq	(%r15), %rsi
	addq	(%rbx), %rsi
	xorl	%edi, %edi
	callq	_iowrite32
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	callq	_ioread32
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	callq	_pci_iounmap
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_pci_iounmap
	movq	%r14, %rdi
	callq	_pci_release_regions
	movq	%r14, %rdi
	callq	_pci_disable_device
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pci_set_drvdata
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_EN_ADDR,8,3                ## @IRQ_EN_ADDR
	.comm	_FPGA_MODE,8,3                  ## @FPGA_MODE
	.no_dead_strip	_fpga_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fpga_remove
_fpga_remove:                           ; @fpga_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
	bl	_pci_get_drvdata
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _IRQ_EN_ADDR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IRQ_EN_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_iowrite32
	ldr	x8, [x20]
Lloh3:
	adrp	x21, _FPGA_MODE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _FPGA_MODE@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	w0, #1
	bl	_iowrite32
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_ioread32
	mov	x0, x20
	bl	_atm_remove
	ldr	w0, [x19]
	mov	x1, x20
	bl	_free_irq
	add	x0, x20, #16
	bl	_tasklet_kill
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	w0, #0
	bl	_iowrite32
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_ioread32
	ldr	x1, [x20, #8]
	mov	x0, x19
	bl	_pci_iounmap
	ldr	x1, [x20]
	mov	x0, x19
	bl	_pci_iounmap
	mov	x0, x19
	bl	_pci_release_regions
	mov	x0, x19
	bl	_pci_disable_device
	mov	x0, x19
	mov	x1, #0
	bl	_pci_set_drvdata
	mov	x0, x20
	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
	b	_kfree
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_EN_ADDR,8,3                ; @IRQ_EN_ADDR
	.comm	_FPGA_MODE,8,3                  ; @FPGA_MODE
	.no_dead_strip	_fpga_remove
.subsections_via_symbols
