	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fw_iso_resource_manage         ## -- Begin function fw_iso_resource_manage
	.p2align	4, 0x90
_fw_iso_resource_manage:                ## @fw_iso_resource_manage
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, %r13d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	callq	_spin_lock_irq
	movq	8(%rbx), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	testl	%r13d, %r13d
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_1
## %bb.8:
	movq	_CSR_REGISTER_BASE@GOTPCREL(%rip), %rax
	movq	_CSR_CHANNELS_AVAILABLE_HI@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	addq	(%rax), %r8
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	movl	%r13d, %ecx
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %r9d
	callq	_manage_channel
	movl	%eax, %r15d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%r15d, (%rax)
	testl	%r14d, %r14d
	setne	%r13b
	movl	%r14d, %r8d
	je	LBB0_2
## %bb.9:
	testl	%r15d, %r15d
	jns	LBB0_2
## %bb.10:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	jmp	LBB0_11
LBB0_1:
	negl	%r12d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%r12d, (%rax)
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	testl	%r8d, %r8d
	setne	%r13b
	movl	%r12d, %r15d
LBB0_2:
	movq	%rax, %r12
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_11
## %bb.3:
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_manage_bandwidth
	testl	%eax, %eax
	jns	LBB0_11
## %bb.4:
	movl	%eax, %r14d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	testb	%r13b, %r13b
	je	LBB0_11
## %bb.5:
	testl	%r15d, %r15d
	js	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r15d, %ecx
	callq	_deallocate_channel
LBB0_7:
	movl	%r14d, (%r12)
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CSR_REGISTER_BASE,8,3          ## @CSR_REGISTER_BASE
	.comm	_CSR_CHANNELS_AVAILABLE_HI,8,3  ## @CSR_CHANNELS_AVAILABLE_HI
	.comm	_CSR_CHANNELS_AVAILABLE_LO,8,3  ## @CSR_CHANNELS_AVAILABLE_LO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fw_iso_resource_manage         ; -- Begin function fw_iso_resource_manage
	.p2align	2
_fw_iso_resource_manage:                ; @fw_iso_resource_manage
	.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	x24, x5
	mov	x22, x4
	mov	x19, x3
	mov	x25, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x8]
	bl	_spin_lock_irq
	ldr	x8, [x21, #8]
	ldr	w23, [x8]
	mov	x0, x21
	bl	_spin_unlock_irq
	cbz	w25, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _CSR_REGISTER_BASE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CSR_REGISTER_BASE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _CSR_CHANNELS_AVAILABLE_HI@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CSR_CHANNELS_AVAILABLE_HI@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x4, x9, x8
	mov	x0, x21
	mov	x1, x23
	mov	x2, x20
	mov	x3, x25
	mov	x5, x24
	bl	_manage_channel
	mov	x25, x0
	str	w0, [x19]
	cmp	w24, #0
	cset	w26, ne
	cbz	w24, LBB0_5
; %bb.2:
	tbz	w25, #31, LBB0_5
; %bb.3:
	str	wzr, [x22]
	b	LBB0_11
LBB0_4:
	neg	w25, w26
	str	w25, [x19]
	cmp	w24, #0
	cset	w26, ne
LBB0_5:
	ldr	w3, [x22]
	cbz	w3, LBB0_11
; %bb.6:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x20
	mov	x4, x24
	bl	_manage_bandwidth
	tbz	w0, #31, LBB0_11
; %bb.7:
	str	wzr, [x22]
	cbz	w26, LBB0_11
; %bb.8:
	mov	x24, x0
	tbnz	w25, #31, LBB0_10
; %bb.9:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x20
	mov	x3, x25
	bl	_deallocate_channel
LBB0_10:
	str	w24, [x19]
LBB0_11:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CSR_REGISTER_BASE,8,3          ; @CSR_REGISTER_BASE
	.comm	_CSR_CHANNELS_AVAILABLE_HI,8,3  ; @CSR_CHANNELS_AVAILABLE_HI
	.comm	_CSR_CHANNELS_AVAILABLE_LO,8,3  ; @CSR_CHANNELS_AVAILABLE_LO
.subsections_via_symbols
