	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bus_dmamap_load_buffer        ## -- Begin function _bus_dmamap_load_buffer
	.p2align	4, 0x90
__bus_dmamap_load_buffer:               ## @_bus_dmamap_load_buffer
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movq	%r8, %r12
	movq	%rcx, %r15
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_maploads_total@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_counter_u64_add
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %eax
	movq	_DMAMAP_COHERENT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_maploads_coherent@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_counter_u64_add
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
LBB0_2:
	movq	16(%rbp), %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	_DMAMAP_DMAMEM_ALLOC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_maploads_dmamem@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_counter_u64_add
LBB0_4:
	cmpq	$0, 16(%rbp)
	jne	LBB0_6
## %bb.5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
LBB0_6:
	movq	_BUS_DMA_LOAD_MBUF@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_maploads_mbuf@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_counter_u64_add
	movq	_DMAMAP_CACHE_ALIGNED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, (%rcx)
LBB0_8:
	movq	_BUS_DMA_COULD_BOUNCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.9:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%r15, %r8
	movl	%r14d, %r9d
	callq	__bus_dmamap_count_pages
	cmpq	$0, 8(%rbx)
	je	LBB0_11
## %bb.10:
	movq	_maploads_bounced@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_counter_u64_add
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	__bus_dmamap_reserve_pages
	testl	%eax, %eax
	jne	LBB0_35
LBB0_11:
	movq	_KTR_BUSDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	32(%rax), %edx
	movl	24(%rax), %r8d
	movl	28(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_CTR3
	testq	%r15, %r15
	jle	LBB0_32
## %bb.12:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	24(%rcx), %rax
	movslq	16(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	leaq	(%rax,%rcx,8), %rax
	addq	$-24, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	movq	_kernel_pmap@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	sete	%dil
	callq	___predict_true
	testq	%rax, %rax
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r13, %rdi
	callq	_pmap_kextract
	movl	%eax, %r12d
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_pmap_extract
	movl	%eax, %r12d
	movq	_DMAMAP_COHERENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	andl	%eax, (%rcx)
	xorl	%r13d, %r13d
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	cltq
	subq	%rax, %r14
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rax
	cmpq	%rax, %r14
	cmovgeq	%rax, %r14
	cmpq	%r14, %r15
	cmovlq	%r15, %r14
	movq	_BUS_DMA_COULD_BOUNCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rcx)
	je	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 8(%rax)
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_run_filter
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movl	%r12d, %ecx
	movq	%r14, %r8
	callq	_add_bounce_page
	movl	%eax, %r12d
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	16(%rbx), %edi
	callq	_VM_PAGE_TO_PHYS
                                        ## kill: def $eax killed $eax def $rax
	addl	(%rbx), %eax
	movslq	4(%rbx), %rcx
	addl	%ecx, %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	addq	8(%rbx), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %eax
LBB0_22:                                ##   in Loop: Header=BB0_13 Depth=1
	testl	%eax, %eax
	je	LBB0_27
## %bb.23:                              ##   in Loop: Header=BB0_13 Depth=1
	testq	%r13, %r13
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpq	-88(%rbp), %r13                 ## 8-byte Folded Reload
	jne	LBB0_27
LBB0_25:                                ##   in Loop: Header=BB0_13 Depth=1
	testq	%r13, %r13
	jne	LBB0_29
## %bb.26:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	-60(%rbp), %r12d                ## 4-byte Folded Reload
	je	LBB0_29
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_13 Depth=1
	incl	%eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 16(%rcx)
	cltq
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rax, 16(%rcx)
	jl	LBB0_34
## %bb.28:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	leaq	24(%rbx), %r15
	movq	%r13, 32(%rbx)
	movl	%r14d, 28(%rbx)
	movl	%r12d, %edi
	callq	_PHYS_TO_VM_PAGE
	movl	%eax, 40(%rbx)
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	movl	%eax, 24(%rbx)
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	-112(%rbp), %r15                ## 8-byte Reload
LBB0_30:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	movq	%r14, %rcx
	movq	-96(%rbp), %r8                  ## 8-byte Reload
	movq	24(%rbp), %r9
	callq	__bus_dmamap_addseg
	testq	%rax, %rax
	je	LBB0_34
## %bb.31:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	addq	%rax, %r13
	subq	%rax, %r15
	movq	-104(%rbp), %r12                ## 8-byte Reload
	jg	LBB0_13
	jmp	LBB0_32
LBB0_29:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addl	%r14d, 4(%rax)
	jmp	LBB0_30
LBB0_32:
	testq	%r15, %r15
	je	LBB0_33
LBB0_34:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_bus_dmamap_unload
	movq	_EFBIG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_35
LBB0_33:
	xorl	%eax, %eax
LBB0_35:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_maploads_total,4,2             ## @maploads_total
	.comm	_DMAMAP_COHERENT,4,2            ## @DMAMAP_COHERENT
	.comm	_maploads_coherent,4,2          ## @maploads_coherent
	.comm	_DMAMAP_DMAMEM_ALLOC,4,2        ## @DMAMAP_DMAMEM_ALLOC
	.comm	_maploads_dmamem,4,2            ## @maploads_dmamem
	.comm	_BUS_DMA_LOAD_MBUF,4,2          ## @BUS_DMA_LOAD_MBUF
	.comm	_maploads_mbuf,4,2              ## @maploads_mbuf
	.comm	_DMAMAP_CACHE_ALIGNED,4,2       ## @DMAMAP_CACHE_ALIGNED
	.comm	_BUS_DMA_COULD_BOUNCE,4,2       ## @BUS_DMA_COULD_BOUNCE
	.comm	_maploads_bounced,4,2           ## @maploads_bounced
	.comm	_KTR_BUSDMA,4,2                 ## @KTR_BUSDMA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lowaddr= %d boundary= %d, alignment= %d"

	.comm	_kernel_pmap,8,3                ## @kernel_pmap
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.comm	_EFBIG,4,2                      ## @EFBIG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bus_dmamap_load_buffer        ; -- Begin function _bus_dmamap_load_buffer
	.p2align	2
__bus_dmamap_load_buffer:               ; @_bus_dmamap_load_buffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	stp	x7, x6, [sp, #16]               ; 16-byte Folded Spill
	mov	x26, x5
	mov	x24, x4
	mov	x21, x3
	mov	x25, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _maploads_total@GOTPAGE
Lloh1:
	ldr	x8, [x8, _maploads_total@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_counter_u64_add
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _DMAMAP_COHERENT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DMAMAP_COHERENT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _maploads_coherent@GOTPAGE
Lloh7:
	ldr	x8, [x8, _maploads_coherent@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_counter_u64_add
	ldr	w8, [x19]
LBB0_2:
Lloh9:
	adrp	x9, _DMAMAP_DMAMEM_ALLOC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DMAMAP_DMAMEM_ALLOC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _maploads_dmamem@GOTPAGE
Lloh13:
	ldr	x8, [x8, _maploads_dmamem@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_counter_u64_add
LBB0_4:
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	cbnz	x8, LBB0_6
; %bb.5:
	ldr	x8, [x19, #32]
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
LBB0_6:
Lloh15:
	adrp	x8, _BUS_DMA_LOAD_MBUF@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BUS_DMA_LOAD_MBUF@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w26
	b.eq	LBB0_8
; %bb.7:
Lloh18:
	adrp	x8, _maploads_mbuf@GOTPAGE
Lloh19:
	ldr	x8, [x8, _maploads_mbuf@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_counter_u64_add
Lloh21:
	adrp	x8, _DMAMAP_CACHE_ALIGNED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DMAMAP_CACHE_ALIGNED@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_8:
	ldr	w8, [x20]
Lloh24:
	adrp	x9, _BUS_DMA_COULD_BOUNCE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _BUS_DMA_COULD_BOUNCE@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.9:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	mov	x3, x25
	mov	x4, x21
	mov	x5, x26
	bl	__bus_dmamap_count_pages
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_11
; %bb.10:
Lloh27:
	adrp	x8, _maploads_bounced@GOTPAGE
Lloh28:
	ldr	x8, [x8, _maploads_bounced@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_counter_u64_add
	mov	x0, x20
	mov	x1, x19
	mov	x2, x26
	bl	__bus_dmamap_reserve_pages
	cbnz	w0, LBB0_35
LBB0_11:
Lloh30:
	adrp	x8, _KTR_BUSDMA@GOTPAGE
Lloh31:
	ldr	x8, [x8, _KTR_BUSDMA@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	ldp	w3, w2, [x20, #28]
	ldr	w4, [x20, #24]
Lloh33:
	adrp	x1, l_.str@PAGE
Lloh34:
	add	x1, x1, l_.str@PAGEOFF
	bl	_CTR3
	cmp	x21, #1
	b.lt	LBB0_32
; %bb.12:
	mov	x23, #0
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
	ldr	x8, [x19, #24]
	ldrsw	x9, [x19, #16]
	mov	w10, #24
	madd	x8, x9, x10, x8
	sub	x22, x8, #24
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
Lloh35:
	adrp	x8, _kernel_pmap@GOTPAGE
Lloh36:
	ldr	x8, [x8, _kernel_pmap@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	cmp	x8, x24
	cset	w0, eq
	bl	___predict_true
	cbz	x0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x25
	bl	_pmap_kextract
	mov	x26, x0
	mov	x28, x25
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x24
	mov	x1, x25
	bl	_pmap_extract
	mov	x26, x0
	mov	x28, #0
Lloh38:
	adrp	x8, _DMAMAP_COHERENT@GOTPAGE
Lloh39:
	ldr	x8, [x8, _DMAMAP_COHERENT@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
LBB0_16:                                ;   in Loop: Header=BB0_13 Depth=1
Lloh41:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
Lloh44:
	adrp	x9, _PAGE_MASK@GOTPAGE
Lloh45:
	ldr	x9, [x9, _PAGE_MASK@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	and	w9, w9, w26
	sub	x8, x8, w9, sxtw
	ldr	x9, [x20, #8]
	cmp	x8, x9
	csel	x8, x8, x9, lt
	cmp	x21, x8
	csel	x27, x21, x8, lt
	ldr	w8, [x20]
Lloh47:
	adrp	x9, _BUS_DMA_COULD_BOUNCE@GOTPAGE
Lloh48:
	ldr	x9, [x9, _BUS_DMA_COULD_BOUNCE@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x20
	mov	x1, x26
	bl	_run_filter
	cbz	x0, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x28
	mov	x3, x26
	mov	x4, x27
	bl	_add_bounce_page
	mov	x26, x0
	b	LBB0_29
LBB0_20:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x22, #16]
	bl	_VM_PAGE_TO_PHYS
	ldp	w8, w9, [x22]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	add	w8, w8, w0
	add	w8, w8, w9
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	ldr	x8, [x22, #8]
	add	x23, x8, x9
	ldr	w8, [x19, #16]
LBB0_22:                                ;   in Loop: Header=BB0_13 Depth=1
	cbz	w8, LBB0_27
; %bb.23:                               ;   in Loop: Header=BB0_13 Depth=1
	cbz	x28, LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_13 Depth=1
	cmp	x28, x23
	b.ne	LBB0_27
LBB0_25:                                ;   in Loop: Header=BB0_13 Depth=1
	cbnz	x28, LBB0_31
; %bb.26:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w26, w9
	b.eq	LBB0_31
LBB0_27:                                ;   in Loop: Header=BB0_13 Depth=1
	add	w8, w8, #1
	str	w8, [x19, #16]
	ldr	x9, [x20, #16]
	cmp	x9, w8, sxtw
	b.lt	LBB0_33
; %bb.28:                               ;   in Loop: Header=BB0_13 Depth=1
	str	x28, [x22, #32]
	str	w27, [x22, #28]
	mov	x0, x26
	bl	_PHYS_TO_VM_PAGE
Lloh50:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh51:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	and	w8, w8, w26
	str	w8, [x22, #24]!
	str	w0, [x22, #16]
LBB0_29:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x26
	mov	x3, x27
	ldp	x5, x4, [sp, #16]               ; 16-byte Folded Reload
	bl	__bus_dmamap_addseg
	cbz	x0, LBB0_33
; %bb.30:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x25, x0, x25
	sub	x21, x21, x0
	cmp	x21, #0
	b.gt	LBB0_13
	b	LBB0_32
LBB0_31:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x22, #4]
	add	w8, w8, w27
	str	w8, [x22, #4]
	b	LBB0_29
LBB0_32:
	cbz	x21, LBB0_34
LBB0_33:
	mov	x0, x20
	mov	x1, x19
	bl	_bus_dmamap_unload
Lloh53:
	adrp	x8, _EFBIG@GOTPAGE
Lloh54:
	ldr	x8, [x8, _EFBIG@GOTPAGEOFF]
Lloh55:
	ldr	w0, [x8]
	b	LBB0_35
LBB0_34:
	mov	w0, #0
LBB0_35:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_maploads_total,4,2             ; @maploads_total
	.comm	_DMAMAP_COHERENT,4,2            ; @DMAMAP_COHERENT
	.comm	_maploads_coherent,4,2          ; @maploads_coherent
	.comm	_DMAMAP_DMAMEM_ALLOC,4,2        ; @DMAMAP_DMAMEM_ALLOC
	.comm	_maploads_dmamem,4,2            ; @maploads_dmamem
	.comm	_BUS_DMA_LOAD_MBUF,4,2          ; @BUS_DMA_LOAD_MBUF
	.comm	_maploads_mbuf,4,2              ; @maploads_mbuf
	.comm	_DMAMAP_CACHE_ALIGNED,4,2       ; @DMAMAP_CACHE_ALIGNED
	.comm	_BUS_DMA_COULD_BOUNCE,4,2       ; @BUS_DMA_COULD_BOUNCE
	.comm	_maploads_bounced,4,2           ; @maploads_bounced
	.comm	_KTR_BUSDMA,4,2                 ; @KTR_BUSDMA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lowaddr= %d boundary= %d, alignment= %d"

	.comm	_kernel_pmap,8,3                ; @kernel_pmap
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.comm	_EFBIG,4,2                      ; @EFBIG
.subsections_via_symbols
