	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_c4iw_init_resource             ## -- Begin function c4iw_init_resource
	.p2align	4, 0x90
_c4iw_init_resource:                    ## @c4iw_init_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %r13d
	movl	%esi, %edx
	movq	%rdi, %r14
	movq	_C4IW_ID_TABLE_F_RANDOM@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$1, %ecx
	callq	_c4iw_id_table_alloc
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	movq	%r14, %rdi
	callq	_c4iw_init_qid_table
	testl	%eax, %eax
	jne	LBB0_10
## %bb.2:
	leaq	8(%r14), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%r13d, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_c4iw_id_table_alloc
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	leaq	12(%r14), %rdi
	xorl	%esi, %esi
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.5:
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_6
LBB0_4:
	movl	$1, %edx
	movl	$1, %ecx
LBB0_6:
	xorl	%r8d, %r8d
	callq	_c4iw_id_table_alloc
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	%r12, %rdi
	callq	_c4iw_id_table_free
LBB0_9:
	leaq	4(%r14), %rdi
	callq	_c4iw_id_table_free
LBB0_10:
	movq	%r14, %rdi
	callq	_c4iw_id_table_free
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_C4IW_ID_TABLE_F_RANDOM,4,2     ## @C4IW_ID_TABLE_F_RANDOM
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_c4iw_init_resource             ; -- Begin function c4iw_init_resource
	.p2align	2
_c4iw_init_resource:                    ; @c4iw_init_resource
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x2, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _C4IW_ID_TABLE_F_RANDOM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _C4IW_ID_TABLE_F_RANDOM@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
	mov	w1, #0
	mov	w3, #1
	bl	_c4iw_id_table_alloc
	cbnz	w0, LBB0_10
; %bb.1:
	mov	x0, x19
	bl	_c4iw_init_qid_table
	cbnz	w0, LBB0_9
; %bb.2:
	add	x20, x19, #8
	mov	x0, x20
	mov	w1, #0
	mov	x2, x22
	mov	w3, #1
	mov	w4, #0
	bl	_c4iw_id_table_alloc
	cbnz	w0, LBB0_8
; %bb.3:
	add	x0, x19, #12
	mov	w1, #0
	cbz	w21, LBB0_5
; %bb.4:
	mov	x2, x21
	mov	w3, #0
	b	LBB0_6
LBB0_5:
	mov	w2, #1
	mov	w3, #1
LBB0_6:
	mov	w4, #0
	bl	_c4iw_id_table_alloc
	cbz	w0, LBB0_11
; %bb.7:
	mov	x0, x20
	bl	_c4iw_id_table_free
LBB0_8:
	add	x0, x19, #4
	bl	_c4iw_id_table_free
LBB0_9:
	mov	x0, x19
	bl	_c4iw_id_table_free
LBB0_10:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_C4IW_ID_TABLE_F_RANDOM,4,2     ; @C4IW_ID_TABLE_F_RANDOM
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
