	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BG_FindItemByClassName         ## -- Begin function BG_FindItemByClassName
	.p2align	4, 0x90
_BG_FindItemByClassName:                ## @BG_FindItemByClassName
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_bg_itemlist@GOTPCREL(%rip), %r15
	movq	(%r15), %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	addq	$8, %rbx
	movq	%r14, %rsi
	callq	_Q_stricmp
	testl	%eax, %eax
	jne	LBB0_1
	jmp	LBB0_6
LBB0_3:
	leaq	-28(%rbp), %rsi
	movq	%r14, %rdi
	callq	_dmlab_finditem
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	xorl	%eax, %eax
	callq	_BG_UpdateItems
	movq	_bg_defaultNumItems@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movslq	-28(%rbp), %rbx
	addq	%rax, %rbx
	shlq	$3, %rbx
	addq	(%r15), %rbx
	jmp	LBB0_6
LBB0_4:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bg_itemlist,8,3                ## @bg_itemlist
	.comm	_bg_defaultNumItems,4,2         ## @bg_defaultNumItems
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BG_FindItemByClassName         ; -- Begin function BG_FindItemByClassName
	.p2align	2
_BG_FindItemByClassName:                ; @BG_FindItemByClassName
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
Lloh0:
	adrp	x21, _bg_itemlist@GOTPAGE
Lloh1:
	ldr	x21, [x21, _bg_itemlist@GOTPAGEOFF]
	ldr	x19, [x21]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #8]!
	cbz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x1, x20
	bl	_Q_stricmp
	cbnz	w0, LBB0_1
	b	LBB0_6
LBB0_3:
	add	x1, sp, #12
	mov	x0, x20
	bl	_dmlab_finditem
	cbz	x0, LBB0_5
; %bb.4:
	bl	_BG_UpdateItems
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _bg_defaultNumItems@GOTPAGE
Lloh3:
	ldr	x9, [x9, _bg_defaultNumItems@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	ldr	w10, [sp, #12]
	add	w9, w10, w9
	add	x19, x8, w9, sxtw #3
	b	LBB0_6
LBB0_5:
	mov	x19, #0
LBB0_6:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_bg_itemlist,8,3                ; @bg_itemlist
	.comm	_bg_defaultNumItems,4,2         ; @bg_defaultNumItems
.subsections_via_symbols
