	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function __cxio_init_resource_fifo
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
LCPI0_1:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
LCPI0_2:
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
___cxio_init_resource_fifo:             ## @__cxio_init_resource_fifo
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -120(%rbp)                ## 4-byte Spill
	movl	%r8d, %r15d
	movl	%ecx, %r13d
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, -132(%rbp)
	movq	%rsi, %rdi
	callq	_spin_lock_init
	leal	(,%r14,4), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_kfifo_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.36:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_37:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_38
## %bb.35:
	movl	%r14d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r14, -144(%rbp)                ## 8-byte Spill
	movq	%rbx, -152(%rbp)                ## 8-byte Spill
	movl	%r15d, -124(%rbp)               ## 4-byte Spill
	movl	%r15d, %ebx
	addl	%r13d, %ebx
	jle	LBB0_4
## %bb.2:
	xorl	%r15d, %r15d
	leaq	-132(%rbp), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_kfifo_in
	incl	%r15d
	cmpl	%ebx, %r15d
	jl	LBB0_3
LBB0_4:
	cmpl	$0, -120(%rbp)                  ## 4-byte Folded Reload
	movl	%ebx, -128(%rbp)                ## 4-byte Spill
	je	LBB0_5
## %bb.8:
	xorl	%eax, %eax
	callq	_prandom_u32
	movl	%eax, -120(%rbp)                ## 4-byte Spill
	movq	_RANDOM_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	movq	-144(%rbp), %r15                ## 8-byte Reload
	jle	LBB0_20
## %bb.9:
	cmpl	$8, %eax
	jae	LBB0_11
## %bb.10:
	xorl	%ecx, %ecx
	jmp	LBB0_18
LBB0_5:
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	subl	-124(%rbp), %ebx                ## 4-byte Folded Reload
	movl	%r13d, -116(%rbp)
	cmpl	%r13d, %ebx
	jle	LBB0_26
## %bb.6:
	leaq	-116(%rbp), %r14
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_kfifo_in
	movl	-116(%rbp), %eax
	incl	%eax
	movl	%eax, -116(%rbp)
	cmpl	%ebx, %eax
	jl	LBB0_7
	jmp	LBB0_26
LBB0_11:
	movl	%eax, %ecx
	andl	$-8, %ecx
	movd	%r13d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%rcx), %rsi
	movq	%rsi, %rdx
	shrq	$3, %rdx
	incq	%rdx
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.13:
	movq	%rdx, %rdi
	andq	$-2, %rdi
	leal	4(%r13), %esi
	movd	%esi, %xmm1
	pshufd	$0, %xmm1, %xmm2                ## xmm2 = xmm1[0,0,0,0]
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [0,1,2,3]
	xorl	%esi, %esi
	movdqa	LCPI0_1(%rip), %xmm3            ## xmm3 = [8,8,8,8]
	movdqa	LCPI0_2(%rip), %xmm4            ## xmm4 = [16,16,16,16]
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm1, %xmm5
	paddd	%xmm0, %xmm5
	movdqa	%xmm2, %xmm6
	paddd	%xmm1, %xmm6
	movdqa	%xmm5, -112(%rbp,%rsi,4)
	movdqa	%xmm6, -96(%rbp,%rsi,4)
	movdqa	%xmm1, %xmm5
	paddd	%xmm3, %xmm5
	movdqa	%xmm2, %xmm6
	paddd	%xmm5, %xmm6
	paddd	%xmm0, %xmm5
	movdqa	%xmm5, -80(%rbp,%rsi,4)
	movdqa	%xmm6, -64(%rbp,%rsi,4)
	addq	$16, %rsi
	paddd	%xmm4, %xmm1
	addq	$-2, %rdi
	jne	LBB0_14
## %bb.15:
	testb	$1, %dl
	je	LBB0_17
LBB0_16:
	paddd	%xmm1, %xmm0
	leal	4(%r13), %edx
	movd	%edx, %xmm2
	pshufd	$0, %xmm2, %xmm2                ## xmm2 = xmm2[0,0,0,0]
	paddd	%xmm1, %xmm2
	movdqa	%xmm0, -112(%rbp,%rsi,4)
	movdqa	%xmm2, -96(%rbp,%rsi,4)
LBB0_17:
	cmpq	%rax, %rcx
	je	LBB0_20
LBB0_18:
	movl	%r13d, %edx
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	leal	(%rdx,%rcx), %esi
	movl	%esi, -112(%rbp,%rcx,4)
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_19
LBB0_20:
	addl	%eax, %r13d
	subl	-124(%rbp), %r15d               ## 4-byte Folded Reload
	cmpl	%r15d, %r13d
	jge	LBB0_21
## %bb.30:
	xorl	%r14d, %r14d
	cmpl	%eax, %r14d
	jl	LBB0_33
	.p2align	4, 0x90
LBB0_32:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_prandom_u32
	movl	%eax, -120(%rbp)                ## 4-byte Spill
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	leal	(%r14,%r14), %ecx
	movl	-120(%rbp), %eax                ## 4-byte Reload
	movl	%eax, %ebx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %ebx
	andl	$15, %ebx
	leaq	-112(,%rbx,4), %rsi
	addq	%rbp, %rsi
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_kfifo_in
	movl	%r13d, -112(%rbp,%rbx,4)
	incl	%r13d
	cmpl	%r15d, %r13d
	jge	LBB0_22
## %bb.34:                              ##   in Loop: Header=BB0_33 Depth=1
	incl	%r14d
	movq	_RANDOM_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r14d
	jge	LBB0_32
	jmp	LBB0_33
LBB0_21:
	movq	_RANDOM_SIZE@GOTPCREL(%rip), %r15
	testl	%eax, %eax
	jg	LBB0_24
	jmp	LBB0_26
LBB0_22:
	movq	_RANDOM_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_26
LBB0_24:
	xorl	%r14d, %r14d
	leaq	-112(%rbp), %rbx
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_kfifo_in
	incl	%r14d
	addq	$4, %rbx
	cmpl	(%r15), %r14d
	jl	LBB0_25
LBB0_26:
	xorl	%r14d, %r14d
	movl	$0, -116(%rbp)
	cmpl	$0, -128(%rbp)                  ## 4-byte Folded Reload
	jle	LBB0_37
## %bb.27:
	leaq	-132(%rbp), %r15
	movq	-152(%rbp), %rbx                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	movq	%rbx, %rcx
	callq	_kfifo_out_locked
	cmpl	$4, %eax
	jne	LBB0_37
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	movl	-116(%rbp), %eax
	incl	%eax
	movl	%eax, -116(%rbp)
	cmpl	-128(%rbp), %eax                ## 4-byte Folded Reload
	jl	LBB0_28
	jmp	LBB0_37
LBB0_12:
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [0,1,2,3]
	xorl	%esi, %esi
	testb	$1, %dl
	jne	LBB0_16
	jmp	LBB0_17
LBB0_38:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_RANDOM_SIZE,4,2                ## @RANDOM_SIZE
	.no_dead_strip	___cxio_init_resource_fifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function __cxio_init_resource_fifo
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
___cxio_init_resource_fifo:             ; @__cxio_init_resource_fifo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x24, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	str	wzr, [sp]
	mov	x0, x1
	bl	_spin_lock_init
	lsl	w1, w23, #2
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_kfifo_alloc
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_29
LBB0_2:
	add	w25, w21, w22
	cmp	w25, #1
	b.lt	LBB0_5
; %bb.3:
	mov	w26, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, sp
	mov	x0, x20
	mov	w2, #4
	bl	_kfifo_in
	add	w26, w26, #1
	cmp	w26, w25
	b.lt	LBB0_4
LBB0_5:
	cbz	w24, LBB0_9
; %bb.6:
	bl	_prandom_u32
	mov	x24, x0
Lloh9:
	adrp	x26, _RANDOM_SIZE@GOTPAGE
Lloh10:
	ldr	x26, [x26, _RANDOM_SIZE@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.7:
	cmp	w8, #16
	b.hs	LBB0_11
; %bb.8:
	mov	x9, #0
	b	LBB0_14
LBB0_9:
	str	w22, [sp, #4]
	sub	w21, w23, w21
	cmp	w21, w22
	b.le	LBB0_25
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #4
	mov	x0, x20
	mov	w2, #4
	bl	_kfifo_in
	ldr	w8, [sp, #4]
	add	w8, w8, #1
	str	w8, [sp, #4]
	cmp	w8, w21
	b.lt	LBB0_10
	b	LBB0_25
LBB0_11:
	and	x9, x8, #0xfffffff0
	dup.4s	v0, w22
	add	w10, w22, #4
	dup.4s	v1, w10
	add	w10, w22, #8
	dup.4s	v2, w10
	add	w10, w22, #12
	dup.4s	v3, w10
	add	x10, sp, #8
	add	x10, x10, #32
Lloh11:
	adrp	x11, lCPI0_0@PAGE
Lloh12:
	ldr	q4, [x11, lCPI0_0@PAGEOFF]
	movi.4s	v5, #16
	mov	x11, x9
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add.4s	v6, v4, v0
	add.4s	v7, v1, v4
	add.4s	v16, v2, v4
	add.4s	v17, v3, v4
	stp	q6, q7, [x10, #-32]
	stp	q16, q17, [x10], #64
	add.4s	v4, v4, v5
	subs	x11, x11, #16
	b.ne	LBB0_12
; %bb.13:
	cmp	x9, x8
	b.eq	LBB0_16
LBB0_14:
	add	w10, w22, w9
	add	x11, sp, #8
	add	x11, x11, x9, lsl #2
	sub	x9, x8, x9
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	str	w10, [x11], #4
	add	w10, w10, #1
	subs	x9, x9, #1
	b.ne	LBB0_15
LBB0_16:
	add	w22, w8, w22
	sub	w23, w23, w21
	cmp	w22, w23
	b.ge	LBB0_22
; %bb.17:
	mov	w28, #0
	add	x27, sp, #8
	cmp	w28, w8
	b.lt	LBB0_19
LBB0_18:
	bl	_prandom_u32
	mov	x24, x0
	mov	w28, #0
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	lsl	w8, w28, #1
	asr	w8, w24, w8
	and	w8, w8, #0xf
	add	x21, x27, w8, uxtw #2
	mov	x0, x20
	mov	x1, x21
	mov	w2, #4
	bl	_kfifo_in
	str	w22, [x21]
	add	w22, w22, #1
	cmp	w22, w23
	b.ge	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	add	w28, w28, #1
	ldr	w8, [x26]
	cmp	w28, w8
	b.ge	LBB0_18
	b	LBB0_19
LBB0_21:
	ldr	w8, [x26]
LBB0_22:
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.23:
	mov	w22, #0
	add	x21, sp, #8
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	w2, #4
	bl	_kfifo_in
	add	w22, w22, #1
	ldr	w8, [x26]
	add	x21, x21, #4
	cmp	w22, w8
	b.lt	LBB0_24
LBB0_25:
	str	wzr, [sp, #4]
	cmp	w25, #1
	b.lt	LBB0_28
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	mov	x1, sp
	mov	x0, x20
	mov	w2, #4
	mov	x3, x19
	bl	_kfifo_out_locked
	cmp	w0, #4
	b.ne	LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	ldr	w8, [sp, #4]
	add	w8, w8, #1
	str	w8, [sp, #4]
	cmp	w8, w25
	b.lt	LBB0_26
LBB0_28:
	mov	w0, #0
LBB0_29:
	ldr	x8, [sp, #72]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_31
; %bb.30:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_31:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_RANDOM_SIZE,4,2                ; @RANDOM_SIZE
	.no_dead_strip	___cxio_init_resource_fifo
.subsections_via_symbols
