	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fw_iso_buffer_alloc            ## -- Begin function fw_iso_buffer_alloc
	.p2align	4, 0x90
_fw_iso_buffer_alloc:                   ## @fw_iso_buffer_alloc
	.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	%esi, %ebx
	movq	%rdi, %r13
	movl	$0, (%rdi)
	movq	$0, 16(%rdi)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%esi, %edi
	movl	$8, %esi
	callq	_kmalloc_array
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	xorl	%r14d, %r14d
	movl	$0, %eax
	testl	%ebx, %ebx
	jle	LBB0_6
## %bb.2:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %r14d
	xorl	%ebx, %ebx
	movq	_GFP_DMA32@GOTPCREL(%rip), %r15
	movq	___GFP_ZERO@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	orl	(%r12), %edi
	callq	_alloc_page
	movq	8(%r13), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	8(%r13), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_3
## %bb.5:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	xorl	%r14d, %r14d
LBB0_6:
	movl	%eax, (%r13)
	jmp	LBB0_10
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_8:
	movl	%ebx, (%r13)
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_fw_iso_buffer_destroy
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_9:
	subl	(%rax), %r14d
LBB0_10:
	movl	%r14d, %eax
	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	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_DMA32,4,2                  ## @GFP_DMA32
	.comm	___GFP_ZERO,4,2                 ## @__GFP_ZERO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fw_iso_buffer_alloc            ; -- Begin function fw_iso_buffer_alloc
	.p2align	2
_fw_iso_buffer_alloc:                   ; @fw_iso_buffer_alloc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	str	wzr, [x0]
	str	xzr, [x0, #16]
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x1
	mov	w1, #8
	bl	_kmalloc_array
	str	x0, [x19, #8]
	cbz	x0, LBB0_8
; %bb.1:
	cmp	w20, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x22, #0
Lloh2:
	adrp	x23, _GFP_DMA32@GOTPAGE
Lloh3:
	ldr	x23, [x23, _GFP_DMA32@GOTPAGEOFF]
Lloh4:
	adrp	x24, ___GFP_ZERO@GOTPAGE
Lloh5:
	ldr	x24, [x24, ___GFP_ZERO@GOTPAGEOFF]
	mov	w25, w20
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	ldr	w9, [x23]
	orr	w8, w9, w8
	ldr	w9, [x24]
	orr	w0, w8, w9
	bl	_alloc_page
	ldr	x8, [x19, #8]
	lsl	x9, x22, #3
	str	x0, [x8, x9]
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x9]
	cbz	x8, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	cmp	x25, x22
	b.ne	LBB0_3
	b	LBB0_6
LBB0_5:
	mov	w20, #0
LBB0_6:
	mov	w0, #0
	str	w20, [x19]
	b	LBB0_9
LBB0_7:
	str	w22, [x19]
	mov	x0, x19
	mov	x1, #0
	bl	_fw_iso_buffer_destroy
LBB0_8:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_DMA32,4,2                  ; @GFP_DMA32
	.comm	___GFP_ZERO,4,2                 ; @__GFP_ZERO
.subsections_via_symbols
