	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TOOLBAR_IsValidBitmapIndex
_TOOLBAR_IsValidBitmapIndex:            ## @TOOLBAR_IsValidBitmapIndex
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_GETHIMLID
	movq	%rax, %r12
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_GETIBITMAP
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_GETDEFIMAGELIST
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	testq	%r14, %r14
	js	LBB0_5
## %bb.2:
	movl	%eax, %edi
	callq	_ImageList_GetImageCount
	movq	_TRUE@GOTPCREL(%rip), %rcx
	cmpq	%rax, %r14
	jl	LBB0_7
## %bb.3:
	movq	_I_IMAGECALLBACK@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_4
	jmp	LBB0_7
LBB0_5:
	movq	_I_IMAGECALLBACK@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_4
## %bb.6:
	movq	_TRUE@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_4:
	movq	_FALSE@GOTPCREL(%rip), %rcx
LBB0_7:
	movl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I_IMAGECALLBACK,8,3            ## @I_IMAGECALLBACK
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_TOOLBAR_IsValidBitmapIndex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TOOLBAR_IsValidBitmapIndex
_TOOLBAR_IsValidBitmapIndex:            ; @TOOLBAR_IsValidBitmapIndex
	.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	x19, x1
	mov	x21, x0
	bl	_GETHIMLID
	mov	x22, x0
	mov	x0, x21
	mov	x1, x19
	bl	_GETIBITMAP
	mov	x20, x0
	mov	x0, x21
	mov	x1, x22
	bl	_GETDEFIMAGELIST
	cbz	w0, LBB0_4
; %bb.1:
	tbnz	x20, #63, LBB0_4
; %bb.2:
	bl	_ImageList_GetImageCount
Lloh0:
	adrp	x8, _TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	cmp	x20, x0
	b.lt	LBB0_7
; %bb.3:
Lloh2:
	adrp	x9, _I_IMAGECALLBACK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _I_IMAGECALLBACK@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x9, x19
	b.ne	LBB0_6
	b	LBB0_7
LBB0_4:
Lloh5:
	adrp	x8, _I_IMAGECALLBACK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I_IMAGECALLBACK@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_6
; %bb.5:
Lloh8:
	adrp	x8, _TRUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x8, _FALSE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_I_IMAGECALLBACK,8,3            ; @I_IMAGECALLBACK
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_TOOLBAR_IsValidBitmapIndex
.subsections_via_symbols
