	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fw_iso_buffer_init             ## -- Begin function fw_iso_buffer_init
	.p2align	4, 0x90
_fw_iso_buffer_init:                    ## @fw_iso_buffer_init
	.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
	movl	%ecx, %ebx
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	%edx, (%rdi)
	movl	%ecx, 4(%rdi)
	leal	(,%rdx,8), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	cmpl	$0, (%r12)
	jle	LBB0_12
## %bb.2:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_GFP_DMA32@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	___GFP_ZERO@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	callq	_alloc_page
	movq	8(%r12), %rcx
	movq	%rax, (%rcx,%r13,8)
	movq	8(%r12), %rax
	movq	(%rax,%r13,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %edi
	movq	%rbx, %r14
	movl	(%rbx), %ecx
	xorl	%edx, %edx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_dma_map_page
	movl	%eax, %ebx
	movl	(%r15), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_5
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%r13,8), %rdi
	movl	%ebx, %esi
	callq	_set_page_private
	incq	%r13
	movslq	(%r12), %rax
	cmpq	%rax, %r13
	movq	%r14, %rbx
	jl	LBB0_3
LBB0_12:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_5:
	movq	8(%r12), %rax
	movq	(%rax,%r13,8), %rdi
	callq	___free_page
LBB0_6:
	testl	%r13d, %r13d
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_9
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_page_private
	movl	(%r15), %edi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %esi
	movl	%r14d, %ecx
	callq	_dma_unmap_page
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	___free_page
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_8
LBB0_9:
	movq	8(%r12), %rdi
	callq	_kfree
LBB0_10:
	movq	$0, 8(%r12)
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_GFP_DMA32,4,2                  ## @GFP_DMA32
	.comm	___GFP_ZERO,4,2                 ## @__GFP_ZERO
	.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_init             ; -- Begin function fw_iso_buffer_init
	.p2align	2
_fw_iso_buffer_init:                    ; @fw_iso_buffer_init
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x3
	mov	x21, x1
	mov	x19, x0
	stp	w2, w3, [x0]
	lsl	w0, w2, #3
Lloh0:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_kmalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_12
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x23, #0
Lloh2:
	adrp	x26, _GFP_DMA32@GOTPAGE
Lloh3:
	ldr	x26, [x26, _GFP_DMA32@GOTPAGEOFF]
Lloh4:
	adrp	x27, ___GFP_ZERO@GOTPAGE
Lloh5:
	ldr	x27, [x27, ___GFP_ZERO@GOTPAGEOFF]
Lloh6:
	adrp	x24, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x24, [x24, _PAGE_SIZE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w8, w9, w8
	ldr	w9, [x27]
	orr	w0, w8, w9
	bl	_alloc_page
	ldr	x8, [x19, #8]
	lsl	x9, x23, #3
	str	x0, [x8, x9]
	ldr	x8, [x19, #8]
	ldr	x1, [x8, x9]
	cbz	x1, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x21]
	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_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x23, lsl #3]
	mov	x1, x22
	bl	_set_page_private
	add	x23, x23, #1
	ldrsw	x8, [x19]
	cmp	x23, x8
	b.lt	LBB0_3
LBB0_6:
	mov	w0, #0
	b	LBB0_13
LBB0_7:
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x23, lsl #3]
	bl	___free_page
LBB0_8:
	cbz	w23, LBB0_11
; %bb.9:
	mov	x22, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	lsl	x25, x22, #3
	ldr	x0, [x8, x25]
	bl	_page_private
	mov	x1, x0
	ldr	w0, [x21]
	ldr	w2, [x24]
	mov	x3, x20
	bl	_dma_unmap_page
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x25]
	bl	___free_page
	add	x22, x22, #1
	cmp	x23, x22
	b.ne	LBB0_10
LBB0_11:
	ldr	x0, [x19, #8]
	bl	_kfree
LBB0_12:
	str	xzr, [x19, #8]
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_GFP_DMA32,4,2                  ; @GFP_DMA32
	.comm	___GFP_ZERO,4,2                 ; @__GFP_ZERO
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
