	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wanxl_close
_wanxl_close:                           ## @wanxl_close
	.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	_dev_to_port
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_hdlc_close
	movq	_DOORBELL_TO_CARD_CLOSE_0@GOTPCREL(%rip), %rax
	movl	(%r12), %ecx
	addl	(%rax), %ecx
	movl	$1, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	movq	16(%r12), %rax
	movq	_PLX_DOORBELL_TO_CARD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	8(%rax), %rsi
	callq	_writel
	movq	_jiffies@GOTPCREL(%rip), %rbx
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	addq	(%rbx), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_get_status
	cmpq	$0, 8(%rax)
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rsi
	movq	%r15, %rdi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_1
LBB0_3:
	movq	%r12, %rdi
	callq	_get_status
	cmpq	$0, 8(%rax)
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
LBB0_5:
	movq	%r14, %rdi
	callq	_netif_stop_queue
	movq	_TX_BUFFERS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_10
## %bb.6:
	xorl	%ebx, %ebx
	movq	_PACKET_EMPTY@GOTPCREL(%rip), %r15
	xorl	%r13d, %r13d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%r13
	movslq	(%r14), %rax
	addq	$8, %rbx
	cmpq	%rax, %r13
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_get_status
	movq	(%rax), %rax
	movq	(%r15), %rcx
	cmpq	%rcx, (%rax,%rbx,2)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rcx, (%rax,%rbx,2)
	movq	8(%r12), %rcx
	movq	16(%r12), %rdx
	movl	(%rdx), %edi
	movl	8(%rax,%rbx,2), %esi
	movq	(%rcx,%rbx), %rax
	movl	(%rax), %edx
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_pci_unmap_single
	movq	8(%r12), %rax
	movq	(%rax,%rbx), %rdi
	callq	_dev_kfree_skb
	jmp	LBB0_9
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DOORBELL_TO_CARD_CLOSE_0,4,2   ## @DOORBELL_TO_CARD_CLOSE_0
	.comm	_PLX_DOORBELL_TO_CARD,8,3       ## @PLX_DOORBELL_TO_CARD
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,8,3                         ## @HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to close port\n"

	.comm	_TX_BUFFERS,4,2                 ## @TX_BUFFERS
	.comm	_PACKET_EMPTY,8,3               ## @PACKET_EMPTY
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.no_dead_strip	_wanxl_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wanxl_close
_wanxl_close:                           ; @wanxl_close
	.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	x20, x0
	bl	_dev_to_port
	mov	x19, x0
	mov	x0, x20
	bl	_hdlc_close
Lloh0:
	adrp	x8, _DOORBELL_TO_CARD_CLOSE_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DOORBELL_TO_CARD_CLOSE_0@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19]
	add	w8, w9, w8
	mov	w9, #1
	lsl	w0, w9, w8
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
Lloh3:
	adrp	x9, _PLX_DOORBELL_TO_CARD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PLX_DOORBELL_TO_CARD@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh6:
	adrp	x22, _jiffies@GOTPAGE
Lloh7:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh8:
	adrp	x9, _HZ@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x21, x9, x8
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_get_status
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x1, [x22]
	mov	x0, x21
	bl	_time_after
	cbnz	x0, LBB0_1
LBB0_3:
	mov	x0, x19
	bl	_get_status
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_5
; %bb.4:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
LBB0_5:
	mov	x0, x20
	bl	_netif_stop_queue
Lloh13:
	adrp	x20, _TX_BUFFERS@GOTPAGE
Lloh14:
	ldr	x20, [x20, _TX_BUFFERS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.6:
	mov	x21, #0
	mov	x22, #0
Lloh15:
	adrp	x23, _PACKET_EMPTY@GOTPAGE
Lloh16:
	ldr	x23, [x23, _PACKET_EMPTY@GOTPAGEOFF]
Lloh17:
	adrp	x24, _PCI_DMA_TODEVICE@GOTPAGE
Lloh18:
	ldr	x24, [x24, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x20]
	add	x21, x21, #16
	cmp	x22, x8
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_get_status
	ldr	x8, [x0]
	ldr	x10, [x8, x21]
	ldr	x9, [x23]
	cmp	x10, x9
	b.eq	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x8, x21
	str	x9, [x8]
	ldp	x10, x9, [x19, #8]
	ldr	w0, [x9]
	ldr	w1, [x8, #8]
	lsl	x25, x22, #3
	ldr	x8, [x10, x25]
	ldr	w2, [x8]
	ldr	w3, [x24]
	bl	_pci_unmap_single
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x25]
	bl	_dev_kfree_skb
	b	LBB0_7
LBB0_10:
	mov	w0, #0
	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
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_DOORBELL_TO_CARD_CLOSE_0,4,2   ; @DOORBELL_TO_CARD_CLOSE_0
	.comm	_PLX_DOORBELL_TO_CARD,8,3       ; @PLX_DOORBELL_TO_CARD
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to close port\n"

	.comm	_TX_BUFFERS,4,2                 ; @TX_BUFFERS
	.comm	_PACKET_EMPTY,8,3               ; @PACKET_EMPTY
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.no_dead_strip	_wanxl_close
.subsections_via_symbols
