	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function print_button
_print_button:                          ## @print_button
	.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
	movl	%r9d, %ebx
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r14d
	movl	%edx, -76(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_dlg_index_wchars
	movq	%rax, %r15
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_dlg_count_wchars
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	movq	_button_key_active_attr@GOTPCREL(%rip), %rcx
	cmoveq	_button_key_inactive_attr@GOTPCREL(%rip), %rcx
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	(%rcx), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	_button_label_active_attr@GOTPCREL(%rip), %rax
	cmoveq	_button_label_inactive_attr@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_button_inactive_attr@GOTPCREL(%rip), %rbx
	cmovneq	_button_active_attr@GOTPCREL(%rip), %rbx
	movq	%r13, %rdi
	movl	%r14d, -64(%rbp)                ## 4-byte Spill
	movl	%r14d, %esi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_wmove
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_dlg_attrset
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_waddstr
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	%r12d, -72(%rbp)                ## 4-byte Spill
	movl	%r12d, %esi
	callq	_dlg_attrset
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	jle	LBB0_8
## %bb.1:
	movl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$129, %r12d
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	callq	_dlg_attrset
	movq	_sHAD_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rsi
	addq	-96(%rbp), %rsi                 ## 8-byte Folded Reload
	subl	%ebx, %r13d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_waddnstr
	cmpq	%r14, -56(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r15,%r14,4), %rbx
	movl	4(%r15,%r14,4), %r13d
	incq	%r14
	cmpl	$128, %r12d
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$129, %r12d
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movsbl	(%rax,%rbx), %edi
	callq	_UCH
	movl	$129, %r12d
	cmpl	-76(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_dlg_attrset
	movl	$128, %r12d
	jmp	LBB0_7
LBB0_8:
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	movq	_button_active_attr@GOTPCREL(%rip), %rax
	jne	LBB0_10
## %bb.9:
	movq	_button_inactive_attr@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %esi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_dlg_attrset
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_waddstr
	leaq	L_.str.2(%rip), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	leal	(%rax,%rcx), %edx
	incl	%edx
	movq	%rbx, %rdi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wmove                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_button_key_active_attr,4,2     ## @button_key_active_attr
	.comm	_button_key_inactive_attr,4,2   ## @button_key_inactive_attr
	.comm	_button_label_active_attr,4,2   ## @button_label_active_attr
	.comm	_button_label_inactive_attr,4,2 ## @button_label_inactive_attr
	.comm	_button_active_attr,4,2         ## @button_active_attr
	.comm	_button_inactive_attr,4,2       ## @button_inactive_attr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"<"

	.comm	_sHAD_KEY,4,2                   ## @sHAD_KEY
L_.str.1:                               ## @.str.1
	.asciz	">"

L_.str.2:                               ## @.str.2
	.asciz	" "

	.no_dead_strip	_print_button
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function print_button
_print_button:                          ; @print_button
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x5
	mov	x22, x4
	mov	x20, x3
	mov	x23, x2
	mov	x24, x1
	mov	x21, x0
	mov	x0, x1
	bl	_dlg_index_wchars
	mov	x27, x0
	mov	x0, x24
	bl	_dlg_count_wchars
	mov	x28, x0
Lloh0:
	adrp	x8, _button_key_active_attr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _button_key_active_attr@GOTPAGEOFF]
Lloh2:
	adrp	x9, _button_key_inactive_attr@GOTPAGE
Lloh3:
	ldr	x9, [x9, _button_key_inactive_attr@GOTPAGEOFF]
	str	w19, [sp]                       ; 4-byte Folded Spill
	cmp	w19, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
Lloh4:
	adrp	x8, _button_label_active_attr@GOTPAGE
Lloh5:
	ldr	x8, [x8, _button_label_active_attr@GOTPAGEOFF]
Lloh6:
	adrp	x9, _button_label_inactive_attr@GOTPAGE
Lloh7:
	ldr	x9, [x9, _button_label_inactive_attr@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	w26, [x8]
Lloh8:
	adrp	x8, _button_active_attr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _button_active_attr@GOTPAGEOFF]
Lloh10:
	adrp	x9, _button_inactive_attr@GOTPAGE
Lloh11:
	ldr	x9, [x9, _button_inactive_attr@GOTPAGEOFF]
	csel	x19, x9, x8, eq
	mov	x0, x21
	stp	w22, w20, [sp, #4]              ; 8-byte Folded Spill
	mov	x1, x20
	mov	x2, x22
	bl	_wmove
	ldr	w1, [x19]
	mov	x0, x21
	bl	_dlg_attrset
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_waddstr
	mov	x0, x21
	mov	x1, x26
	bl	_dlg_attrset
	cmp	w28, #1
	b.lt	LBB0_9
; %bb.1:
	add	x27, x27, #4
	mov	w20, #129
Lloh14:
	adrp	x19, _sHAD_KEY@GOTPAGE
Lloh15:
	ldr	x19, [x19, _sHAD_KEY@GOTPAGEOFF]
	mov	w28, w28
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x26
	bl	_dlg_attrset
	ldr	w20, [x19]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x1, x24, x22
	sub	w2, w25, w22
	mov	x0, x21
	bl	_waddnstr
	add	x27, x27, #4
	subs	x28, x28, #1
	b.eq	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldursw	x22, [x27, #-4]
	ldr	w25, [x27]
	cmp	w20, #128
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w20, #129
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrsb	w0, [x24, x22]
	bl	_UCH
	cmp	w0, w23
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	bl	_dlg_attrset
	mov	w20, #128
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w20, #129
	b	LBB0_3
LBB0_9:
	ldr	w8, [sp]                        ; 4-byte Folded Reload
	cmp	w8, #0
Lloh16:
	adrp	x8, _button_active_attr@GOTPAGE
Lloh17:
	ldr	x8, [x8, _button_active_attr@GOTPAGEOFF]
Lloh18:
	adrp	x9, _button_inactive_attr@GOTPAGE
Lloh19:
	ldr	x9, [x9, _button_inactive_attr@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	mov	x0, x21
	bl	_dlg_attrset
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_waddstr
Lloh22:
	adrp	x8, l_.str.2@PAGE
Lloh23:
	add	x8, x8, l_.str.2@PAGEOFF
	ldp	w9, w1, [sp, #4]                ; 8-byte Folded Reload
	add	w8, w8, w9
	add	w2, w8, #1
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_wmove
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_button_key_active_attr,4,2     ; @button_key_active_attr
	.comm	_button_key_inactive_attr,4,2   ; @button_key_inactive_attr
	.comm	_button_label_active_attr,4,2   ; @button_label_active_attr
	.comm	_button_label_inactive_attr,4,2 ; @button_label_inactive_attr
	.comm	_button_active_attr,4,2         ; @button_active_attr
	.comm	_button_inactive_attr,4,2       ; @button_inactive_attr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"<"

	.comm	_sHAD_KEY,4,2                   ; @sHAD_KEY
l_.str.1:                               ; @.str.1
	.asciz	">"

l_.str.2:                               ; @.str.2
	.asciz	" "

	.no_dead_strip	_print_button
.subsections_via_symbols
