	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function menu_display_gdi_draw
_menu_display_gdi_draw:                 ## @menu_display_gdi_draw
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rsi), %r15
	movq	$0, -56(%rbp)
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.1:
	testq	%r15, %r15
	je	LBB0_16
## %bb.2:
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	js	LBB0_16
## %bb.3:
	cmpq	$0, 8(%rbx)
	js	LBB0_16
## %bb.4:
	cmpl	$2, 16(%rbx)
	jl	LBB0_16
## %bb.5:
	cmpl	$2, 20(%rbx)
	jl	LBB0_16
## %bb.6:
	movq	24(%rbx), %r12
	testq	%r12, %r12
	je	LBB0_16
## %bb.7:
	movl	(%r12), %eax
	cmpl	$2, %eax
	jl	LBB0_16
## %bb.8:
	movl	4(%r12), %ecx
	cmpl	$2, %ecx
	jl	LBB0_16
## %bb.9:
	movl	$32, -88(%rbp)
	movl	%eax, -84(%rbp)
	negl	%ecx
	movl	%ecx, -80(%rbp)
	movabsq	$17179869185, %rax              ## imm = 0x400000001
	movq	%rax, -76(%rbp)
	movq	$0, -64(%rbp)
	movq	_BI_RGB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	cmpq	$0, 16(%r15)
	je	LBB0_16
## %bb.10:
	movq	%rsi, %r14
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	jne	LBB0_12
## %bb.11:
	movl	32(%r15), %edi
	callq	_CreateCompatibleDC
	movq	%rax, %rdi
	movq	%rax, (%r15)
LBB0_12:
	movq	24(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.13:
	callq	_SelectObject
	movq	%rax, 8(%r12)
	jmp	LBB0_15
LBB0_14:
	movl	32(%r15), %edi
	movl	16(%rbx), %esi
	movl	20(%rbx), %edx
	callq	_CreateCompatibleBitmap
	movq	%rax, 24(%r12)
	movq	(%r15), %rdi
	movq	%rax, %rsi
	callq	_SelectObject
	movq	%rax, 8(%r12)
	movq	(%r15), %rdi
	movl	16(%rbx), %ecx
	movl	20(%rbx), %r8d
	movl	(%r12), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	4(%r12), %r11d
	movl	16(%r12), %r13d
	movq	_DIB_RGB_COLORS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	movq	_SRCCOPY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r10d
	subq	$8, %rsp
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	pushq	%r10
	pushq	%rax
	leaq	-88(%rbp), %rax
	pushq	%rax
	pushq	%r13
	pushq	%r11
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	$0
	callq	_StretchDIBits
	addq	$64, %rsp
LBB0_15:
	movq	16(%r15), %rdi
	movq	24(%r15), %rsi
	callq	_SelectObject
	movq	%rax, 8(%r15)
	movq	(%r15), %r9
	movq	16(%r15), %rdi
	movq	(%rbx), %rsi
	movl	(%r14), %edx
	movl	20(%rbx), %r8d
	movl	8(%rbx), %eax
	addl	%r8d, %eax
	subl	%eax, %edx
	movl	16(%rbx), %ecx
	movq	_SRCCOPY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	pushq	%rax
	pushq	%r8
	pushq	%rcx
	pushq	$0
	pushq	$0
	callq	_StretchBlt
	addq	$48, %rsp
	movq	8(%r15), %rsi
	movq	16(%r15), %rdi
	callq	_SelectObject
	movq	(%r15), %rdi
	movq	8(%r12), %rsi
	callq	_SelectObject
LBB0_16:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BI_RGB,4,2                     ## @BI_RGB
	.comm	_DIB_RGB_COLORS,4,2             ## @DIB_RGB_COLORS
	.comm	_SRCCOPY,4,2                    ## @SRCCOPY
	.comm	_AC_SRC_ALPHA,4,2               ## @AC_SRC_ALPHA
	.comm	_AC_SRC_OVER,4,2                ## @AC_SRC_OVER
	.no_dead_strip	_menu_display_gdi_draw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function menu_display_gdi_draw
lCPI0_0:
	.long	1                               ; 0x1
	.long	4                               ; 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_menu_display_gdi_draw:                 ; @menu_display_gdi_draw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	ldr	x21, [x1, #8]
	str	xzr, [sp, #56]
	cbz	x0, LBB0_16
; %bb.1:
	cbz	x21, LBB0_16
; %bb.2:
	mov	x19, x0
	ldr	x8, [x0]
	tbnz	x8, #63, LBB0_16
; %bb.3:
	ldr	x8, [x19, #8]
	tbnz	x8, #63, LBB0_16
; %bb.4:
	ldr	w8, [x19, #16]
	cmp	w8, #2
	b.lt	LBB0_16
; %bb.5:
	ldr	w8, [x19, #20]
	cmp	w8, #2
	b.lt	LBB0_16
; %bb.6:
	ldr	x22, [x19, #24]
	cbz	x22, LBB0_16
; %bb.7:
	ldr	w8, [x22]
	cmp	w8, #2
	b.lt	LBB0_16
; %bb.8:
	ldr	w9, [x22, #4]
	cmp	w9, #2
	b.lt	LBB0_16
; %bb.9:
	mov	w10, #32
	stp	w10, w8, [sp, #24]
	neg	w8, w9
	str	w8, [sp, #32]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [sp, #36]
	str	xzr, [sp, #48]
Lloh2:
	adrp	x8, _BI_RGB@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BI_RGB@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #44]
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_16
; %bb.10:
	mov	x20, x1
	ldr	x0, [x21]
	cbnz	x0, LBB0_12
; %bb.11:
	ldr	w0, [x21, #32]
	bl	_CreateCompatibleDC
	str	x0, [x21]
LBB0_12:
	ldr	x1, [x22, #24]
Lloh5:
	adrp	x23, _SRCCOPY@GOTPAGE
Lloh6:
	ldr	x23, [x23, _SRCCOPY@GOTPAGEOFF]
	cbz	x1, LBB0_14
; %bb.13:
	bl	_SelectObject
	str	x0, [x22, #8]
	b	LBB0_15
LBB0_14:
	ldr	w0, [x21, #32]
	ldp	w1, w2, [x19, #16]
	bl	_CreateCompatibleBitmap
	mov	x1, x0
	str	x0, [x22, #24]
	ldr	x0, [x21]
	bl	_SelectObject
	str	x0, [x22, #8]
	ldr	x0, [x21]
	ldp	w3, w4, [x19, #16]
	ldp	w7, w8, [x22]
	ldr	w9, [x22, #16]
Lloh7:
	adrp	x10, _DIB_RGB_COLORS@GOTPAGE
Lloh8:
	ldr	x10, [x10, _DIB_RGB_COLORS@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	ldr	w11, [x23]
	stp	w10, w11, [sp, #16]
	add	x10, sp, #24
	str	x10, [sp, #8]
	stp	w8, w9, [sp]
	mov	w1, #0
	mov	w2, #0
	mov	w5, #0
	mov	w6, #0
	bl	_StretchDIBits
LBB0_15:
	ldp	x0, x1, [x21, #16]
	bl	_SelectObject
	str	x0, [x21, #8]
	ldr	x0, [x21, #16]
	ldr	x1, [x19]
	ldr	w8, [x20]
	ldr	w9, [x19, #8]
	ldp	w3, w4, [x19, #16]
	add	w9, w4, w9
	sub	w2, w8, w9
	ldr	x5, [x21]
	ldr	w8, [x23]
	stp	w4, w8, [sp, #4]
	str	w3, [sp]
	mov	w6, #0
	mov	w7, #0
	bl	_StretchBlt
	ldp	x1, x0, [x21, #8]
	bl	_SelectObject
	ldr	x0, [x21]
	ldr	x1, [x22, #8]
	bl	_SelectObject
LBB0_16:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_BI_RGB,4,2                     ; @BI_RGB
	.comm	_DIB_RGB_COLORS,4,2             ; @DIB_RGB_COLORS
	.comm	_SRCCOPY,4,2                    ; @SRCCOPY
	.comm	_AC_SRC_ALPHA,4,2               ; @AC_SRC_ALPHA
	.comm	_AC_SRC_OVER,4,2                ; @AC_SRC_OVER
	.no_dead_strip	_menu_display_gdi_draw
.subsections_via_symbols
