	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dma_free_coherent              ## -- Begin function dma_free_coherent
	.p2align	4, 0x90
_dma_free_coherent:                     ## @dma_free_coherent
	.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
	movq	%rdx, %rbx
	movq	_XCHAL_KSEG_CACHED_VADDR@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%rsi, %r14
	movq	_XCHAL_KSEG_BYPASS_VADDR@GOTPCREL(%rip), %rax
	subq	(%rax), %rbx
	js	LBB0_2
## %bb.1:
	movq	_XCHAL_KSEG_SIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jl	LBB0_3
LBB0_2:
	xorl	%eax, %eax
	callq	_BUG
LBB0_3:
	movq	%r14, %rdi
	callq	_get_order
	movq	%rbx, %rdi
	movl	%eax, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_free_pages                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_XCHAL_KSEG_CACHED_VADDR,8,3    ## @XCHAL_KSEG_CACHED_VADDR
	.comm	_XCHAL_KSEG_BYPASS_VADDR,8,3    ## @XCHAL_KSEG_BYPASS_VADDR
	.comm	_XCHAL_KSEG_SIZE,8,3            ## @XCHAL_KSEG_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dma_free_coherent              ; -- Begin function dma_free_coherent
	.p2align	2
_dma_free_coherent:                     ; @dma_free_coherent
	.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, x1
Lloh0:
	adrp	x8, _XCHAL_KSEG_CACHED_VADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XCHAL_KSEG_CACHED_VADDR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _XCHAL_KSEG_BYPASS_VADDR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _XCHAL_KSEG_BYPASS_VADDR@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x8, x8, x2
	subs	x20, x8, x9
	b.mi	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _XCHAL_KSEG_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XCHAL_KSEG_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x20, x8
	b.lt	LBB0_3
LBB0_2:
	bl	_BUG
LBB0_3:
	mov	x0, x19
	bl	_get_order
	mov	x1, x0
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_free_pages
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_XCHAL_KSEG_CACHED_VADDR,8,3    ; @XCHAL_KSEG_CACHED_VADDR
	.comm	_XCHAL_KSEG_BYPASS_VADDR,8,3    ; @XCHAL_KSEG_BYPASS_VADDR
	.comm	_XCHAL_KSEG_SIZE,8,3            ; @XCHAL_KSEG_SIZE
.subsections_via_symbols
