	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smi_port_dma_free
_smi_port_dma_free:                     ## @smi_port_dma_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movl	(%rcx), %edi
	movq	_SMI_TS_DMA_BUF_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %ecx
	callq	_pci_free_consistent
	movq	(%rbx), %rax
	movq	$0, (%rax)
	movq	(%rbx), %rax
LBB0_2:
	movq	8(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.3:
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movl	(%rcx), %edi
	movq	_SMI_TS_DMA_BUF_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	4(%rax), %ecx
	callq	_pci_free_consistent
	movq	(%rbx), %rax
	movq	$0, 8(%rax)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMI_TS_DMA_BUF_SIZE,4,2        ## @SMI_TS_DMA_BUF_SIZE
	.no_dead_strip	_smi_port_dma_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smi_port_dma_free
_smi_port_dma_free:                     ; @smi_port_dma_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
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x2, [x8]
Lloh0:
	adrp	x20, _SMI_TS_DMA_BUF_SIZE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SMI_TS_DMA_BUF_SIZE@GOTPAGEOFF]
	cbz	x2, LBB0_2
; %bb.1:
	ldp	x9, x8, [x19, #8]
	ldr	w0, [x8]
	ldr	w1, [x20]
	ldr	w3, [x9]
	bl	_pci_free_consistent
	ldr	x8, [x19]
	str	xzr, [x8]
	ldr	x8, [x19]
LBB0_2:
	ldr	x2, [x8, #8]
	cbz	x2, LBB0_4
; %bb.3:
	ldp	x9, x8, [x19, #8]
	ldr	w0, [x8]
	ldr	w1, [x20]
	ldr	w3, [x9, #4]
	bl	_pci_free_consistent
	ldr	x8, [x19]
	str	xzr, [x8, #8]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SMI_TS_DMA_BUF_SIZE,4,2        ; @SMI_TS_DMA_BUF_SIZE
	.no_dead_strip	_smi_port_dma_free
.subsections_via_symbols
