	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fw_iso_buffer_map_dma          ## -- Begin function fw_iso_buffer_map_dma
	.p2align	4, 0x90
_fw_iso_buffer_map_dma:                 ## @fw_iso_buffer_map_dma
	.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
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	%edx, (%rdi)
	movl	4(%rdi), %ecx
	xorl	%esi, %esi
	movl	$0, %r13d
	testl	%ecx, %ecx
	jle	LBB0_6
## %bb.1:
	movl	%edx, %r14d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	16(%r12), %rax
	movl	(%rax,%r13,4), %esi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edx, %edx
	movl	%r14d, %r8d
	callq	_dma_map_page
	movl	%eax, %ebx
	movl	(%r15), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12), %rax
	movl	(%rax,%r13,4), %edi
	movl	%ebx, %esi
	callq	_set_page_private
	incq	%r13
	movslq	4(%r12), %rcx
	cmpq	%rcx, %r13
	jl	LBB0_2
	jmp	LBB0_5
LBB0_3:
	movl	4(%r12), %ecx
LBB0_5:
	xorl	%esi, %esi
LBB0_6:
	movl	%r13d, 8(%r12)
	movq	_ENOMEM@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	subl	(%rdx), %eax
	cmpl	%ecx, %r13d
	cmovgel	%esi, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fw_iso_buffer_map_dma          ; -- Begin function fw_iso_buffer_map_dma
	.p2align	2
_fw_iso_buffer_map_dma:                 ; @fw_iso_buffer_map_dma
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	str	w2, [x0]
	ldr	w8, [x0, #4]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x23, #0
Lloh0:
	adrp	x24, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PAGE_SIZE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	ldr	x8, [x19, #16]
	ldr	w1, [x8, x23, lsl #2]
	ldr	w3, [x24]
	mov	w2, #0
	mov	x4, x20
	bl	_dma_map_page
	mov	x22, x0
	ldr	w0, [x21]
	mov	x1, x22
	bl	_dma_mapping_error
	cbnz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #16]
	ldr	w0, [x8, x23, lsl #2]
	mov	x1, x22
	bl	_set_page_private
	add	x23, x23, #1
	ldrsw	x8, [x19, #4]
	cmp	x23, x8
	b.lt	LBB0_2
	b	LBB0_6
LBB0_4:
	mov	w23, #0
	b	LBB0_6
LBB0_5:
	ldr	w8, [x19, #4]
LBB0_6:
	str	w23, [x19, #8]
Lloh2:
	adrp	x9, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w23, w8
	csneg	w0, wzr, w9, ge
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
