	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LISTBOX_SetFont
_LISTBOX_SetFont:                       ## @LISTBOX_SetFont
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, 8(%rdi)
	movl	4(%rdi), %edi
	movq	_DCX_CACHE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_GetDCEx
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %r15d
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.4:
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_SelectObject
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	leaq	-32(%rbp), %rcx
	movl	%r15d, %edi
	movl	$52, %edx
	callq	_GetTextExtentPointA
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.5:
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_SelectObject
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	callq	_ERR
	movl	$16, %eax
	jmp	LBB0_9
LBB0_3:
	leaq	L_.str(%rip), %rsi
	leaq	-32(%rbp), %rcx
	movl	%r15d, %edi
	movl	$52, %edx
	callq	_GetTextExtentPointA
LBB0_6:
	movl	4(%r14), %edi
	movl	%r15d, %esi
	callq	_ReleaseDC
	movslq	-32(%rbp), %rax
	imulq	$1321528399, %rax, %rax         ## imm = 0x4EC4EC4F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$35, %rax
	leal	(%rax,%rcx), %edx
	addl	%ecx, %eax
	incl	%eax
	shrl	$31, %eax
	addl	%edx, %eax
	incl	%eax
	sarl	%eax
	movl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_IS_OWNERDRAW
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movl	-28(%rbp), %edx
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_LISTBOX_SetItemHeight
LBB0_8:
	movl	-28(%rbp), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"

	.comm	_DCX_CACHE,4,2                  ## @DCX_CACHE
L_.str.1:                               ## @.str.1
	.asciz	"unable to get DC.\n"

	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_LISTBOX_SetFont
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LISTBOX_SetFont
_LISTBOX_SetFont:                       ; @LISTBOX_SetFont
	.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	x21, x1
	mov	x19, x0
	str	x1, [x0, #8]
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _DCX_CACHE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DCX_CACHE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_GetDCEx
	cbz	w0, LBB0_4
; %bb.1:
	mov	x20, x0
	cbz	x21, LBB0_5
; %bb.2:
	mov	x0, x20
	mov	x1, x21
	bl	_SelectObject
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #8
	mov	x0, x20
	mov	w2, #52
	bl	_GetTextExtentPointA
	cbz	x21, LBB0_6
; %bb.3:
	mov	x0, x20
	mov	x1, x21
	bl	_SelectObject
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ERR
	mov	w0, #16
	b	LBB0_9
LBB0_5:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #8
	mov	x0, x20
	mov	w2, #52
	bl	_GetTextExtentPointA
LBB0_6:
	ldr	w0, [x19, #4]
	mov	x1, x20
	bl	_ReleaseDC
	ldrsw	x8, [sp, #8]
	mov	w9, #60495
	movk	w9, #20164, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #35
	add	w8, w8, w9
	add	w9, w8, #1
	add	w10, w8, #2
	cmp	w9, #0
	csinc	w8, w10, w8, lt
	asr	w8, w8, #1
	str	w8, [x19]
	mov	x0, x19
	bl	_IS_OWNERDRAW
	cbnz	w0, LBB0_8
; %bb.7:
	ldr	w2, [sp, #12]
Lloh9:
	adrp	x8, _FALSE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_LISTBOX_SetItemHeight
LBB0_8:
	ldr	w0, [sp, #12]
LBB0_9:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"

	.comm	_DCX_CACHE,4,2                  ; @DCX_CACHE
l_.str.1:                               ; @.str.1
	.asciz	"unable to get DC.\n"

	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_LISTBOX_SetFont
.subsections_via_symbols
