	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xlib_update
_xlib_update:                           ## @xlib_update
	.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	_xlib_display@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_XLockDisplay
	movl	(%r15), %ebx
	movq	_xlib_window@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_DefaultGC
	movq	_ximage@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_g_screen_width@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r10d
	movq	_g_screen_height@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r11d
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%r11
	pushq	%r10
	pushq	$0
	pushq	$0
	callq	_XPutImage
	addq	$32, %rsp
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdx
	callq	_fprintf
LBB0_2:
	movl	(%r15), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_XUnlockDisplay                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_xlib_display,4,2               ## @xlib_display
	.comm	_xlib_window,4,2                ## @xlib_window
	.comm	_ximage,4,2                     ## @ximage
	.comm	_g_screen_width,4,2             ## @g_screen_width
	.comm	_g_screen_height,4,2            ## @g_screen_height
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"XPutImage %d\n"

	.no_dead_strip	_xlib_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xlib_update
_xlib_update:                           ; @xlib_update
	.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
Lloh0:
	adrp	x21, _xlib_display@GOTPAGE
Lloh1:
	ldr	x21, [x21, _xlib_display@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_XLockDisplay
	ldr	w19, [x21]
Lloh2:
	adrp	x8, _xlib_window@GOTPAGE
Lloh3:
	ldr	x8, [x8, _xlib_window@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_DefaultGC
	mov	x2, x0
Lloh5:
	adrp	x8, _ximage@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ximage@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x8, _g_screen_width@GOTPAGE
Lloh9:
	ldr	x8, [x8, _g_screen_width@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _g_screen_height@GOTPAGE
Lloh12:
	ldr	x9, [x9, _g_screen_height@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w8, w9, [sp]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_XPutImage
	cbz	x0, LBB0_2
; %bb.1:
	mov	x2, x0
Lloh14:
	adrp	x8, _stderr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_2:
	ldr	w0, [x21]
	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
	b	_XUnlockDisplay
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_xlib_display,4,2               ; @xlib_display
	.comm	_xlib_window,4,2                ; @xlib_window
	.comm	_ximage,4,2                     ; @ximage
	.comm	_g_screen_width,4,2             ; @g_screen_width
	.comm	_g_screen_height,4,2            ; @g_screen_height
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"XPutImage %d\n"

	.no_dead_strip	_xlib_update
.subsections_via_symbols
