	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_expose
_handle_expose:                         ## @handle_expose
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	leaq	L_str(%rip), %rdi
	callq	_puts
	leaq	L_.str.1(%rip), %rdi
	callq	_draw_util_hex_to_color
	movl	%eax, %r13d
	leaq	L_.str.2(%rip), %rdi
	callq	_draw_util_hex_to_color
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rdi
	callq	_draw_util_hex_to_color
	movl	%eax, %r12d
	movq	_BORDER@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	_PADDING@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rbx
	addq	%rax, %rbx
	movq	_surface@GOTPCREL(%rip), %r14
	movq	(%r14), %r9
	movq	8(%r14), %r8
	movq	%r14, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_draw_util_rectangle
	movq	_BORDER@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	movq	(%r14), %r9
	movq	8(%r14), %r8
	movq	%rcx, %rax
	addq	%rcx, %rax
	subq	%rax, %r8
	subq	%rax, %r9
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%ecx, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_draw_util_rectangle
	movq	_prompt@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	_MAX_WIDTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subq	%rbx, %rax
	movq	%rax, (%rsp)
	movq	_surface@GOTPCREL(%rip), %rsi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movl	%ebx, %r8d
	movl	%ebx, %r9d
	callq	_draw_util_text
LBB0_2:
	movq	_input_position@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	jle	LBB0_4
## %bb.3:
	movq	_glyphs_ucs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_i3string_from_ucs2
	movq	%rax, %r14
	movq	_prompt_offset@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	addl	%ebx, %r8d
	movq	_MAX_WIDTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	subq	%rcx, %rax
	movq	%rax, (%rsp)
	movq	_surface@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movl	%ebx, %r9d
	callq	_draw_util_text
	movq	%r14, %rdi
	callq	_i3string_free
LBB0_4:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_xcb_flush
	movl	$1, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"#FF0000"

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

L_.str.3:                               ## @.str.3
	.asciz	"#000000"

	.comm	_BORDER,4,2                     ## @BORDER
	.comm	_PADDING,4,2                    ## @PADDING
	.comm	_surface,16,3                   ## @surface
	.comm	_prompt,8,3                     ## @prompt
	.comm	_MAX_WIDTH,8,3                  ## @MAX_WIDTH
	.comm	_input_position,8,3             ## @input_position
	.comm	_glyphs_ucs,4,2                 ## @glyphs_ucs
	.comm	_prompt_offset,4,2              ## @prompt_offset
L_str:                                  ## @str
	.asciz	"expose!"

	.no_dead_strip	_handle_expose
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_expose
_handle_expose:                         ; @handle_expose
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
Lloh0:
	adrp	x0, l_str@PAGE
Lloh1:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_draw_util_hex_to_color
	mov	x23, x0
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_draw_util_hex_to_color
	mov	x20, x0
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_draw_util_hex_to_color
	mov	x21, x0
Lloh8:
	adrp	x25, _BORDER@GOTPAGE
Lloh9:
	ldr	x25, [x25, _BORDER@GOTPAGEOFF]
	ldrsw	x8, [x25]
Lloh10:
	adrp	x9, _PADDING@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PADDING@GOTPAGEOFF]
Lloh12:
	ldrsw	x9, [x9]
	add	x22, x9, x8
Lloh13:
	adrp	x24, _surface@GOTPAGE
Lloh14:
	ldr	x24, [x24, _surface@GOTPAGEOFF]
	ldp	x5, x4, [x24]
	mov	x0, x24
	mov	x1, x23
	mov	w2, #0
	mov	w3, #0
	bl	_draw_util_rectangle
	ldrsw	x2, [x25]
	lsl	x8, x2, #1
	ldp	x10, x9, [x24]
	sub	x4, x9, x8
	sub	x5, x10, x8
	mov	x0, x24
	mov	x1, x21
	mov	x3, x2
	bl	_draw_util_rectangle
Lloh15:
	adrp	x8, _prompt@GOTPAGE
Lloh16:
	ldr	x8, [x8, _prompt@GOTPAGEOFF]
Lloh17:
	ldr	x0, [x8]
Lloh18:
	adrp	x24, _MAX_WIDTH@GOTPAGE
Lloh19:
	ldr	x24, [x24, _MAX_WIDTH@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x24]
	sub	x6, x8, x22
Lloh20:
	adrp	x1, _surface@GOTPAGE
Lloh21:
	ldr	x1, [x1, _surface@GOTPAGEOFF]
	mov	x2, x20
	mov	x3, x21
	mov	x4, x22
	mov	x5, x22
	bl	_draw_util_text
LBB0_2:
Lloh22:
	adrp	x8, _input_position@GOTPAGE
Lloh23:
	ldr	x8, [x8, _input_position@GOTPAGEOFF]
Lloh24:
	ldr	x1, [x8]
	cmp	x1, #1
	b.lt	LBB0_4
; %bb.3:
Lloh25:
	adrp	x8, _glyphs_ucs@GOTPAGE
Lloh26:
	ldr	x8, [x8, _glyphs_ucs@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_i3string_from_ucs2
	mov	x23, x0
Lloh28:
	adrp	x8, _prompt_offset@GOTPAGE
Lloh29:
	ldr	x8, [x8, _prompt_offset@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	add	w4, w8, w22
	ldr	x8, [x24]
	sub	x6, x8, w22, sxtw
Lloh31:
	adrp	x1, _surface@GOTPAGE
Lloh32:
	ldr	x1, [x1, _surface@GOTPAGEOFF]
	mov	x2, x20
	mov	x3, x21
	mov	x5, x22
	bl	_draw_util_text
	mov	x0, x23
	bl	_i3string_free
LBB0_4:
	mov	x0, x19
	bl	_xcb_flush
	mov	w0, #1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"#FF0000"

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

l_.str.3:                               ; @.str.3
	.asciz	"#000000"

	.comm	_BORDER,4,2                     ; @BORDER
	.comm	_PADDING,4,2                    ; @PADDING
	.comm	_surface,16,3                   ; @surface
	.comm	_prompt,8,3                     ; @prompt
	.comm	_MAX_WIDTH,8,3                  ; @MAX_WIDTH
	.comm	_input_position,8,3             ; @input_position
	.comm	_glyphs_ucs,4,2                 ; @glyphs_ucs
	.comm	_prompt_offset,4,2              ; @prompt_offset
l_str:                                  ; @str
	.asciz	"expose!"

	.no_dead_strip	_handle_expose
.subsections_via_symbols
