	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function close_card_oam
_close_card_oam:                        ## @close_card_oam
	.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
	cmpl	$31, (%rdi)
	jne	LBB0_1
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %r13
	leaq	20(%rdi), %r14
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r15d
	movzbl	(%r13), %ecx
	movl	$1, %eax
	shll	%cl, %eax
	cmpl	%eax, %r15d
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	$3, %edx
	callq	_VPCI2VC
	movq	24(%r13), %rcx
	cltq
	movq	(%rcx,%rax,8), %rbx
	movq	_SAR_SRAM_RCT_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	imulq	(%rbx), %r12
	addq	8(%r13), %r12
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	shlq	$2, %r12
	movq	_SAR_CMD_CLOSE_CONNECTION@GOTPCREL(%rip), %rax
	orq	(%rax), %r12
	movq	_SAR_REG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_writel
	movq	%r13, %rdi
	callq	_waitfor_idle
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_skb_queue_len
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r13), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DPRINTK
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_recycle_rx_pool_skb
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	$4, %edx
	callq	_VPCI2VC
	movq	24(%r13), %rcx
	cltq
	movq	(%rcx,%rax,8), %r12
	movq	_SAR_SRAM_RCT_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	imulq	(%r12), %rbx
	addq	8(%r13), %rbx
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	shlq	$2, %rbx
	movq	_SAR_CMD_CLOSE_CONNECTION@GOTPCREL(%rip), %rax
	orq	(%rax), %rbx
	movq	_SAR_REG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_writel
	movq	%r13, %rdi
	callq	_waitfor_idle
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_skb_queue_len
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r13), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DPRINTK
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_recycle_rx_pool_skb
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_SAR_SRAM_RCT_SIZE,8,3          ## @SAR_SRAM_RCT_SIZE
	.comm	_SAR_CMD_CLOSE_CONNECTION,8,3   ## @SAR_CMD_CLOSE_CONNECTION
	.comm	_SAR_REG_CMD,4,2                ## @SAR_REG_CMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: closing a VC with pending rx buffers.\n"

	.no_dead_strip	_close_card_oam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function close_card_oam
_close_card_oam:                        ; @close_card_oam
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0]
	cmp	w8, #31
	b.ne	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
	mov	w20, #0
Lloh0:
	adrp	x24, _SAR_SRAM_RCT_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SAR_SRAM_RCT_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x25, _SAR_CMD_CLOSE_CONNECTION@GOTPAGE
Lloh3:
	ldr	x25, [x25, _SAR_CMD_CLOSE_CONNECTION@GOTPAGEOFF]
	add	x21, x0, #20
Lloh4:
	adrp	x26, _SAR_REG_CMD@GOTPAGE
Lloh5:
	ldr	x26, [x26, _SAR_REG_CMD@GOTPAGEOFF]
	mov	w27, #1
Lloh6:
	adrp	x22, l_.str@PAGE
Lloh7:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w20, #1
	ldr	w8, [x19]
	lsl	w8, w27, w8
	cmp	w20, w8
	b.ge	LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	w2, #3
	bl	_VPCI2VC
	ldr	x8, [x19, #24]
	ldr	x23, [x8, w0, sxtw #3]
	ldr	x8, [x19, #8]
	ldr	x9, [x23], #8
	ldr	x10, [x24]
	madd	x28, x10, x9, x8
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x8, [x25]
	orr	x0, x8, x28, lsl #2
	ldr	w1, [x26]
	bl	_writel
	mov	x0, x19
	bl	_waitfor_idle
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	x0, x23
	bl	_skb_queue_len
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x19, #16]
	mov	x0, x22
	bl	_DPRINTK
	mov	x0, x19
	mov	x1, x23
	bl	_recycle_rx_pool_skb
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	w2, #4
	bl	_VPCI2VC
	ldr	x8, [x19, #24]
	ldr	x23, [x8, w0, sxtw #3]
	ldr	x8, [x19, #8]
	ldr	x9, [x23], #8
	ldr	x10, [x24]
	madd	x28, x10, x9, x8
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x8, [x25]
	orr	x0, x8, x28, lsl #2
	ldr	w1, [x26]
	bl	_writel
	mov	x0, x19
	bl	_waitfor_idle
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	x0, x23
	bl	_skb_queue_len
	cbz	x0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x19, #16]
	mov	x0, x22
	bl	_DPRINTK
	mov	x0, x19
	mov	x1, x23
	bl	_recycle_rx_pool_skb
	b	LBB0_3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SAR_SRAM_RCT_SIZE,8,3          ; @SAR_SRAM_RCT_SIZE
	.comm	_SAR_CMD_CLOSE_CONNECTION,8,3   ; @SAR_CMD_CLOSE_CONNECTION
	.comm	_SAR_REG_CMD,4,2                ; @SAR_REG_CMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: closing a VC with pending rx buffers.\n"

	.no_dead_strip	_close_card_oam
.subsections_via_symbols
