	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TOOLBAR_GetImageListForDrawing
_TOOLBAR_GetImageListForDrawing:        ## @TOOLBAR_GetImageListForDrawing
	.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	%rcx, %r12
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %rsi
	callq	_TOOLBAR_IsValidBitmapIndex
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_TOOLBAR_GetBitmapIndex
	movq	%rax, (%r12)
	testq	%rax, %rax
	js	LBB0_4
## %bb.7:
	cmpl	$128, %r15d
	je	LBB0_13
## %bb.8:
	cmpl	$129, %r15d
	je	LBB0_11
## %bb.9:
	cmpl	$130, %r15d
	jne	LBB0_12
## %bb.10:
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_GETHIMLID
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_GETDEFIMAGELIST
	testq	%rax, %rax
	jne	LBB0_17
	jmp	LBB0_15
LBB0_1:
	movq	(%rbx), %rdi
	movq	_I_IMAGENONE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_16
## %bb.2:
	callq	_HIWORD
	movl	%eax, %r15d
	movq	(%rbx), %rdi
	callq	_LOWORD
	movl	(%r14), %ecx
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_WARN
	jmp	LBB0_16
LBB0_4:
	movq	%rax, %rsi
	movq	_I_IMAGECALLBACK@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	(%rcx), %rsi
	je	LBB0_17
## %bb.5:
	movq	_I_IMAGENONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rsi
	je	LBB0_17
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	callq	_ERR
	jmp	LBB0_16
LBB0_13:
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_GETHIMLID
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_GETHOTIMAGELIST
	testq	%rax, %rax
	jne	LBB0_17
	jmp	LBB0_15
LBB0_11:
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_GETHIMLID
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_GETDISIMAGELIST
	testq	%rax, %rax
	jne	LBB0_17
	jmp	LBB0_15
LBB0_12:
	leaq	L_.str.2(%rip), %rdi
	callq	_FIXME
LBB0_15:
	leaq	L_.str.3(%rip), %rdi
	callq	_TRACE
LBB0_16:
	xorl	%eax, %eax
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I_IMAGENONE,8,3                ## @I_IMAGENONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bitmap for ID %d, index %d is not valid, number of bitmaps in imagelist: %d\n"

	.comm	_I_IMAGECALLBACK,8,3            ## @I_IMAGECALLBACK
L_.str.1:                               ## @.str.1
	.asciz	"TBN_GETDISPINFO returned invalid index %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Shouldn't reach here\n"

L_.str.3:                               ## @.str.3
	.asciz	"no image list\n"

	.no_dead_strip	_TOOLBAR_GetImageListForDrawing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TOOLBAR_GetImageListForDrawing
_TOOLBAR_GetImageListForDrawing:        ; @TOOLBAR_GetImageListForDrawing
	.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	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x1, [x1]
	bl	_TOOLBAR_IsValidBitmapIndex
	cbz	w0, LBB0_6
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_TOOLBAR_GetBitmapIndex
	str	x0, [x22]
	tbnz	x0, #63, LBB0_8
; %bb.2:
	cmp	w21, #128
	b.eq	LBB0_10
; %bb.3:
	cmp	w21, #129
	b.eq	LBB0_11
; %bb.4:
	cmp	w21, #130
	b.ne	LBB0_12
; %bb.5:
	ldr	x1, [x20]
	mov	x0, x19
	bl	_GETHIMLID
	mov	x1, x0
	mov	x0, x19
	bl	_GETDEFIMAGELIST
	cbnz	x0, LBB0_15
	b	LBB0_13
LBB0_6:
	ldr	x0, [x20]
Lloh0:
	adrp	x8, _I_IMAGENONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I_IMAGENONE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_14
; %bb.7:
	bl	_HIWORD
	mov	x21, x0
	ldr	x0, [x20]
	bl	_LOWORD
	mov	x2, x0
	ldr	w3, [x19]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_WARN
	b	LBB0_14
LBB0_8:
	mov	x1, x0
Lloh5:
	adrp	x8, _I_IMAGECALLBACK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I_IMAGECALLBACK@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _I_IMAGENONE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _I_IMAGENONE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.eq	LBB0_14
; %bb.9:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ERR
	b	LBB0_14
LBB0_10:
	ldr	x1, [x20]
	mov	x0, x19
	bl	_GETHIMLID
	mov	x1, x0
	mov	x0, x19
	bl	_GETHOTIMAGELIST
	cbnz	x0, LBB0_15
	b	LBB0_13
LBB0_11:
	ldr	x1, [x20]
	mov	x0, x19
	bl	_GETHIMLID
	mov	x1, x0
	mov	x0, x19
	bl	_GETDISIMAGELIST
	cbnz	x0, LBB0_15
	b	LBB0_13
LBB0_12:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_FIXME
LBB0_13:
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_TRACE
LBB0_14:
	mov	x0, #0
LBB0_15:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_I_IMAGENONE,8,3                ; @I_IMAGENONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bitmap for ID %d, index %d is not valid, number of bitmaps in imagelist: %d\n"

	.comm	_I_IMAGECALLBACK,8,3            ; @I_IMAGECALLBACK
l_.str.1:                               ; @.str.1
	.asciz	"TBN_GETDISPINFO returned invalid index %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Shouldn't reach here\n"

l_.str.3:                               ; @.str.3
	.asciz	"no image list\n"

	.no_dead_strip	_TOOLBAR_GetImageListForDrawing
.subsections_via_symbols
