	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fst_remove_one
_fst_remove_one:                        ## @fst_remove_one
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_pci_get_drvdata
	movq	%rax, %r15
	cmpl	$0, (%rax)
	jle	LBB0_3
## %bb.1:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	56(%r15), %rdi
	addq	%r12, %rdi
	callq	_port_to_dev
	movq	%rax, %rdi
	callq	_unregister_hdlc_device
	incq	%rbx
	movslq	(%r15), %rax
	addq	$4, %r12
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	%r15, %rdi
	callq	_fst_disable_intr
	movl	52(%r15), %edi
	movq	%r15, %rsi
	callq	_free_irq
	movl	48(%r15), %edi
	callq	_iounmap
	movl	44(%r15), %edi
	callq	_iounmap
	movq	%r14, %rdi
	callq	_pci_release_regions
	movq	8(%r15), %rax
	movq	_FST_FAMILY_TXU@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_FST_MAX_MTU@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	40(%r15), %edx
	movl	32(%r15), %edi
	movl	36(%r15), %ecx
	callq	_pci_free_consistent
	movl	32(%r15), %edi
	movl	(%rbx), %esi
	movl	24(%r15), %ecx
	movl	28(%r15), %edx
	callq	_pci_free_consistent
LBB0_5:
	movq	_fst_card_array@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%r15), %rcx
	movq	$0, (%rax,%rcx,8)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FST_FAMILY_TXU,8,3             ## @FST_FAMILY_TXU
	.comm	_FST_MAX_MTU,4,2                ## @FST_MAX_MTU
	.comm	_fst_card_array,8,3             ## @fst_card_array
	.no_dead_strip	_fst_remove_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fst_remove_one
_fst_remove_one:                        ; @fst_remove_one
	.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	x20, x0
	bl	_pci_get_drvdata
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #56]
	add	x0, x8, x21
	bl	_port_to_dev
	bl	_unregister_hdlc_device
	add	x22, x22, #1
	ldrsw	x8, [x19]
	add	x21, x21, #4
	cmp	x22, x8
	b.lt	LBB0_2
LBB0_3:
	mov	x0, x19
	bl	_fst_disable_intr
	ldr	w0, [x19, #52]
	mov	x1, x19
	bl	_free_irq
	ldr	w0, [x19, #48]
	bl	_iounmap
	ldr	w0, [x19, #44]
	bl	_iounmap
	mov	x0, x20
	bl	_pci_release_regions
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _FST_FAMILY_TXU@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FST_FAMILY_TXU@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh3:
	adrp	x20, _FST_MAX_MTU@GOTPAGE
Lloh4:
	ldr	x20, [x20, _FST_MAX_MTU@GOTPAGEOFF]
	ldr	w1, [x20]
	ldp	w3, w2, [x19, #36]
	ldr	w0, [x19, #32]
	bl	_pci_free_consistent
	ldp	w2, w0, [x19, #28]
	ldr	w1, [x20]
	ldr	w3, [x19, #24]
	bl	_pci_free_consistent
LBB0_5:
Lloh5:
	adrp	x8, _fst_card_array@GOTPAGE
Lloh6:
	ldr	x8, [x8, _fst_card_array@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x9, [x19, #16]
	str	xzr, [x8, x9, lsl #3]
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_FST_FAMILY_TXU,8,3             ; @FST_FAMILY_TXU
	.comm	_FST_MAX_MTU,4,2                ; @FST_MAX_MTU
	.comm	_fst_card_array,8,3             ; @fst_card_array
	.no_dead_strip	_fst_remove_one
.subsections_via_symbols
