	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_iso_resource
_init_iso_resource:                     ## @init_iso_resource
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rsi), %rax
	movq	(%rsi), %rcx
	orq	%rax, %rcx
	je	LBB0_2
## %bb.1:
	movq	_BANDWIDTH_AVAILABLE_INITIAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_2
## %bb.3:
	movq	%rsi, %r14
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$80, %edi
	callq	_kmalloc
	movq	%rax, %r15
	movl	(%rbx), %esi
	movl	$80, %edi
	callq	_kmalloc
	movq	%rax, %r12
	movl	(%rbx), %esi
	movl	$80, %edi
	callq	_kmalloc
	movq	%rax, %r13
	testq	%r15, %r15
	je	LBB0_6
## %bb.4:
	testq	%r12, %r12
	je	LBB0_6
## %bb.5:
	testq	%r13, %r13
	je	LBB0_6
## %bb.8:
	leaq	72(%r15), %rdi
	movq	_iso_resource_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, 64(%r15)
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, (%r15)
	movl	$-1, 4(%r15)
	movups	(%r14), %xmm0
	movups	%xmm0, 8(%r15)
	movq	%r12, 56(%r15)
	movq	%r13, 48(%r15)
	movl	20(%r14), %eax
	movl	%eax, 44(%r12)
	movq	_FW_CDEV_EVENT_ISO_RESOURCE_ALLOCATED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 40(%r12)
	movl	%eax, 44(%r13)
	movq	_FW_CDEV_EVENT_ISO_RESOURCE_DEALLOCATED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r13)
	movq	_ISO_RES_ALLOC@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_11
## %bb.9:
	movq	_release_iso_resource@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r15, %rsi
	addq	$24, %rsi
	movq	%rax, 32(%r15)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_add_client_resource
	testl	%eax, %eax
	jns	LBB0_12
## %bb.10:
	movl	%eax, %ebx
	jmp	LBB0_7
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movq	%r15, %rdi
	callq	_kfree
	movq	%r12, %rdi
	callq	_kfree
	movq	%r13, %rdi
	callq	_kfree
	jmp	LBB0_13
LBB0_11:
	movq	$0, 32(%r15)
	movl	$-1, 24(%r15)
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_schedule_iso_resource
LBB0_12:
	movl	24(%r15), %eax
	movl	%eax, 16(%r14)
	xorl	%ebx, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BANDWIDTH_AVAILABLE_INITIAL,8,3 ## @BANDWIDTH_AVAILABLE_INITIAL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_iso_resource_work,4,2          ## @iso_resource_work
	.comm	_FW_CDEV_EVENT_ISO_RESOURCE_ALLOCATED,4,2 ## @FW_CDEV_EVENT_ISO_RESOURCE_ALLOCATED
	.comm	_FW_CDEV_EVENT_ISO_RESOURCE_DEALLOCATED,4,2 ## @FW_CDEV_EVENT_ISO_RESOURCE_DEALLOCATED
	.comm	_ISO_RES_ALLOC,4,2              ## @ISO_RES_ALLOC
	.comm	_release_iso_resource,8,3       ## @release_iso_resource
	.no_dead_strip	_init_iso_resource
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_iso_resource
_init_iso_resource:                     ; @init_iso_resource
	.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
	ldp	x8, x9, [x1]
	orr	x8, x8, x9
Lloh0:
	adrp	x10, _BANDWIDTH_AVAILABLE_INITIAL@GOTPAGE
Lloh1:
	ldr	x10, [x10, _BANDWIDTH_AVAILABLE_INITIAL@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x8, #0
	ccmp	x9, x10, #0, ne
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_2:
	mov	x24, x2
	mov	x19, x1
	mov	x21, x0
Lloh6:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	w0, #80
	bl	_kmalloc
	mov	x20, x0
	ldr	w1, [x25]
	mov	w0, #80
	bl	_kmalloc
	mov	x22, x0
	ldr	w1, [x25]
	mov	w0, #80
	bl	_kmalloc
	mov	x23, x0
	cmp	x20, #0
	ccmp	x22, #0, #4, ne
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_5
; %bb.3:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_4:
	mov	x0, x20
	bl	_kfree
	mov	x0, x22
	bl	_kfree
	mov	x0, x23
	bl	_kfree
	b	LBB0_10
LBB0_5:
	add	x0, x20, #72
Lloh11:
	adrp	x8, _iso_resource_work@GOTPAGE
Lloh12:
	ldr	x8, [x8, _iso_resource_work@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	str	x21, [x20, #64]
	mov	w8, #-1
	stp	w24, w8, [x20]
	ldr	q0, [x19]
	stur	q0, [x20, #8]
	stp	x23, x22, [x20, #48]
	ldr	w9, [x19, #20]
Lloh14:
	adrp	x10, _FW_CDEV_EVENT_ISO_RESOURCE_ALLOCATED@GOTPAGE
Lloh15:
	ldr	x10, [x10, _FW_CDEV_EVENT_ISO_RESOURCE_ALLOCATED@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	stp	w10, w9, [x22, #40]
Lloh17:
	adrp	x10, _FW_CDEV_EVENT_ISO_RESOURCE_DEALLOCATED@GOTPAGE
Lloh18:
	ldr	x10, [x10, _FW_CDEV_EVENT_ISO_RESOURCE_DEALLOCATED@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	stp	w10, w9, [x23, #40]
Lloh20:
	adrp	x9, _ISO_RES_ALLOC@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ISO_RES_ALLOC@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	w9, w24
	b.ne	LBB0_8
; %bb.6:
Lloh23:
	adrp	x8, _release_iso_resource@GOTPAGE
Lloh24:
	ldr	x8, [x8, _release_iso_resource@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	add	x1, x20, #24
	str	x8, [x20, #32]
	ldr	w2, [x25]
	mov	x0, x21
	bl	_add_client_resource
	tbz	w0, #31, LBB0_9
; %bb.7:
	mov	x21, x0
	b	LBB0_4
LBB0_8:
	str	xzr, [x20, #32]
	str	w8, [x20, #24]
	mov	x0, x20
	mov	w1, #0
	bl	_schedule_iso_resource
LBB0_9:
	mov	w21, #0
	ldr	w8, [x20, #24]
	str	w8, [x19, #16]
LBB0_10:
	mov	x0, x21
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_BANDWIDTH_AVAILABLE_INITIAL,8,3 ; @BANDWIDTH_AVAILABLE_INITIAL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_iso_resource_work,4,2          ; @iso_resource_work
	.comm	_FW_CDEV_EVENT_ISO_RESOURCE_ALLOCATED,4,2 ; @FW_CDEV_EVENT_ISO_RESOURCE_ALLOCATED
	.comm	_FW_CDEV_EVENT_ISO_RESOURCE_DEALLOCATED,4,2 ; @FW_CDEV_EVENT_ISO_RESOURCE_DEALLOCATED
	.comm	_ISO_RES_ALLOC,4,2              ; @ISO_RES_ALLOC
	.comm	_release_iso_resource,8,3       ; @release_iso_resource
	.no_dead_strip	_init_iso_resource
.subsections_via_symbols
