	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wanxl_pci_remove_one
_wanxl_pci_remove_one:                  ## @wanxl_pci_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	%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, -48(%rbp)                 ## 8-byte Spill
	callq	_pci_get_drvdata
	movq	%rax, %r12
	cmpl	$0, (%rax)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	48(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_unregister_hdlc_device
	movq	48(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_free_netdev
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	40(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	movq	%r12, %rsi
	callq	_free_irq
LBB0_5:
	movq	%r12, %rdi
	callq	_wanxl_reset
	movq	_RX_QUEUE_LENGTH@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.6:
	xorl	%ebx, %ebx
	movq	_BUFFER_LENGTH@GOTPCREL(%rip), %r13
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %r14
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rcx
	cmpq	$0, (%rcx,%rbx,8)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	32(%r12), %edi
	movq	8(%r12), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	movl	(%r13), %edx
	movl	(%r14), %ecx
	callq	_pci_unmap_single
	movq	24(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_dev_kfree_skb
	movl	(%r15), %eax
	jmp	LBB0_9
LBB0_10:
	movq	16(%r12), %rdi
	testq	%rdi, %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_12
## %bb.11:
	callq	_iounmap
LBB0_12:
	movq	8(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.13:
	movl	4(%r12), %ecx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_pci_free_consistent
LBB0_14:
	movq	%rbx, %rdi
	callq	_pci_release_regions
	movq	%rbx, %rdi
	callq	_pci_disable_device
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_QUEUE_LENGTH,4,2            ## @RX_QUEUE_LENGTH
	.comm	_BUFFER_LENGTH,4,2              ## @BUFFER_LENGTH
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.no_dead_strip	_wanxl_pci_remove_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wanxl_pci_remove_one
_wanxl_pci_remove_one:                  ; @wanxl_pci_remove_one
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_pci_get_drvdata
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #48]
	lsl	x22, x21, #2
	ldr	w0, [x8, x22]
	bl	_unregister_hdlc_device
	ldr	x8, [x20, #48]
	ldr	w0, [x8, x22]
	bl	_free_netdev
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	x0, [x20, #40]
	cbz	x0, LBB0_5
; %bb.4:
	mov	x1, x20
	bl	_free_irq
LBB0_5:
	mov	x0, x20
	bl	_wanxl_reset
Lloh0:
	adrp	x21, _RX_QUEUE_LENGTH@GOTPAGE
Lloh1:
	ldr	x21, [x21, _RX_QUEUE_LENGTH@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.6:
	mov	x22, #0
Lloh2:
	adrp	x23, _BUFFER_LENGTH@GOTPAGE
Lloh3:
	ldr	x23, [x23, _BUFFER_LENGTH@GOTPAGEOFF]
Lloh4:
	adrp	x24, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh5:
	ldr	x24, [x24, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #24]
	ldr	x9, [x9, x22, lsl #3]
	cbz	x9, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x20, #32]
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	w1, [x8, x22, lsl #2]
	ldr	w2, [x23]
	ldr	w3, [x24]
	bl	_pci_unmap_single
	ldr	x8, [x20, #24]
	ldr	x0, [x8, x22, lsl #3]
	bl	_dev_kfree_skb
	ldr	w8, [x21]
	b	LBB0_7
LBB0_10:
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_12
; %bb.11:
	bl	_iounmap
LBB0_12:
	ldr	x2, [x20, #8]
	cbz	x2, LBB0_14
; %bb.13:
	ldr	w3, [x20, #4]
	mov	x0, x19
	mov	w1, #4
	bl	_pci_free_consistent
LBB0_14:
	mov	x0, x19
	bl	_pci_release_regions
	mov	x0, x19
	bl	_pci_disable_device
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_kfree
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_QUEUE_LENGTH,4,2            ; @RX_QUEUE_LENGTH
	.comm	_BUFFER_LENGTH,4,2              ; @BUFFER_LENGTH
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.no_dead_strip	_wanxl_pci_remove_one
.subsections_via_symbols
