	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scif_loopb_msg_handler         ## -- Begin function scif_loopb_msg_handler
	.p2align	4, 0x90
_scif_loopb_msg_handler:                ## @scif_loopb_msg_handler
	.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
	movq	%rsi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	leaq	4(%r14), %r13
	movq	_scif_info@GOTPCREL(%rip), %rax
	leaq	8(%rax), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	4(%rbx), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_scif_rb_get_next
	cmpl	$4, %eax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_spin_lock
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_list_add_tail
	movq	%r13, %rdi
	callq	_spin_unlock
	movq	_scif_info@GOTPCREL(%rip), %rsi
	movl	4(%rsi), %edi
	callq	_queue_work
	movq	%r14, %rdi
	callq	_scif_rb_update_read_ptr
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kmalloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_6
LBB0_3:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_kfree
	movq	%r14, %rdi
	callq	_scif_rb_update_read_ptr
LBB0_6:
	movl	%r15d, %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	_scif_info,12,2                 ## @scif_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scif_loopb_msg_handler         ; -- Begin function scif_loopb_msg_handler
	.p2align	2
_scif_loopb_msg_handler:                ; @scif_loopb_msg_handler
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
Lloh0:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w0, #8
	bl	_kmalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
	add	x20, x19, #4
Lloh2:
	adrp	x21, _scif_info@GOTPAGE
Lloh3:
	ldr	x21, [x21, _scif_info@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, x22, #4
	mov	x0, x19
	mov	w2, #4
	bl	_scif_rb_get_next
	cmp	w0, #4
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_spin_lock
	add	x1, x21, #8
	mov	x0, x22
	bl	_list_add_tail
	mov	x0, x20
	bl	_spin_unlock
	ldr	w0, [x21, #4]
	mov	x1, x21
	bl	_queue_work
	mov	x0, x19
	bl	_scif_rb_update_read_ptr
	ldr	w1, [x24]
	mov	w0, #8
	bl	_kmalloc
	mov	x22, x0
	cbnz	x0, LBB0_2
LBB0_4:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_6
LBB0_5:
	mov	x23, x0
	mov	x0, x22
	bl	_kfree
	mov	x0, x19
	bl	_scif_rb_update_read_ptr
LBB0_6:
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_scif_info,12,2                 ; @scif_info
.subsections_via_symbols
