	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_btcx_riscmem_free              ## -- Begin function btcx_riscmem_free
	.p2align	4, 0x90
_btcx_riscmem_free:                     ## @btcx_riscmem_free
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpq	$0, 8(%rsi)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_memcnt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	decl	%esi
	movl	%esi, (%rax)
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	movl	16(%rbx), %esi
	movq	(%rbx), %rcx
	movq	8(%rbx), %rdx
	movq	%r14, %rdi
	callq	_pci_free_consistent
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_memset                         ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_memcnt,4,2                     ## @memcnt
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"btcx: riscmem free [%d] dma=%lx\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_btcx_riscmem_free              ; -- Begin function btcx_riscmem_free
	.p2align	2
_btcx_riscmem_free:                     ; @btcx_riscmem_free
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _memcnt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _memcnt@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w1, w9, #1
	str	w1, [x8]
	ldr	x2, [x19]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	ldr	w1, [x19, #16]
	ldp	x3, x2, [x19]
	mov	x0, x20
	bl	_pci_free_consistent
	mov	x0, x19
	mov	w1, #0
	mov	w2, #24
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_memset
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_memcnt,4,2                     ; @memcnt
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"btcx: riscmem free [%d] dma=%lx\n"

.subsections_via_symbols
