	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SDL_Android_NativeWindow_display_l ## -- Begin function SDL_Android_NativeWindow_display_l
	.p2align	4, 0x90
_SDL_Android_NativeWindow_display_l:    ## @SDL_Android_NativeWindow_display_l
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r15d
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.1:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.2:
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdx
	testq	%rsi, %rsi
	jle	LBB0_15
## %bb.3:
	testq	%rdx, %rdx
	jle	LBB0_15
## %bb.4:
	movq	%rdi, %r14
	callq	_ANativeWindow_getWidth
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_ANativeWindow_getHeight
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_ANativeWindow_getFormat
	movl	%eax, %r15d
	movl	%eax, -44(%rbp)
	movq	(%rbx), %rdi
	movl	$2, %esi
	callq	_IJKALIGN
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rdi
	movl	$2, %esi
	callq	_IJKALIGN
	movl	%eax, %r12d
	leaq	16(%rbx), %r13
	movl	16(%rbx), %edi
	callq	_native_window_get_desc
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_16
## %bb.5:
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movl	%r15d, -76(%rbp)                ## 4-byte Spill
	movl	%r15d, %edi
	callq	_native_window_get_desc
	movq	%rax, %r12
	testq	%rax, %rax
	movq	-112(%rbp), %r13                ## 8-byte Reload
	je	LBB0_7
## %bb.6:
	movq	(%r12), %rax
	cmpq	(%r13), %rax
	je	LBB0_9
LBB0_7:
	movq	%r12, -120(%rbp)                ## 8-byte Spill
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r10d
	subq	$8, %rsp
	leaq	L_.str.3(%rip), %rdi
	leaq	-44(%rbp), %rcx
	movl	-84(%rbp), %esi                 ## 4-byte Reload
	movl	-80(%rbp), %edx                 ## 4-byte Reload
	movl	-76(%rbp), %r8d                 ## 4-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	%r15d, %r9d
	pushq	%r10
	pushq	%rax
	movq	-104(%rbp), %r12                ## 8-byte Reload
	pushq	%r12
	callq	_ALOGD
	addq	$32, %rsp
	movq	(%r13), %rcx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_ANativeWindow_setBuffersGeometry
	testl	%eax, %eax
	js	LBB0_17
## %bb.8:
	movq	-120(%rbp), %r12                ## 8-byte Reload
	testq	%r12, %r12
	movq	-112(%rbp), %r13                ## 8-byte Reload
	je	LBB0_21
LBB0_9:
	leaq	-72(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ANativeWindow_lock
	testl	%eax, %eax
	js	LBB0_18
## %bb.10:
	movl	-72(%rbp), %edx
	movl	-68(%rbp), %ecx
	cmpl	-56(%rbp), %edx                 ## 4-byte Folded Reload
	movq	-104(%rbp), %r15                ## 8-byte Reload
	jne	LBB0_20
## %bb.11:
	cmpl	%r15d, %ecx
	jne	LBB0_20
## %bb.12:
	leaq	-72(%rbp), %rdi
	movq	%rbx, %rsi
	callq	*8(%r12)
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_ANativeWindow_unlockAndPost
	testl	%eax, %eax
	jns	LBB0_24
## %bb.13:
	movl	%eax, %ebx
	leaq	L_.str.8(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_ALOGE
	movl	%ebx, %r15d
	jmp	LBB0_24
LBB0_14:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_ALOGE
	jmp	LBB0_24
LBB0_15:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_ALOGE
	jmp	LBB0_24
LBB0_16:
	movl	(%r13), %esi
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_22
LBB0_17:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_19
LBB0_18:
	movl	%eax, %r15d
	leaq	L_.str.6(%rip), %rdi
LBB0_19:
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_ALOGE
	jmp	LBB0_24
LBB0_20:
	leaq	-64(%rbp), %r8
	movl	-64(%rbp), %r9d
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %r10d
	leaq	L_.str.7(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	pushq	%r10
	pushq	%rbx
	pushq	%r15
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	pushq	%rbx
	callq	_ALOGE
	addq	$32, %rsp
	movq	%r14, %rdi
	callq	_ANativeWindow_unlockAndPost
	movq	(%r13), %rcx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_ANativeWindow_setBuffersGeometry
	jmp	LBB0_23
LBB0_21:
	movl	-44(%rbp), %esi
	leaq	L_.str.5(%rip), %rdi
LBB0_22:
	xorl	%eax, %eax
	callq	_ALOGE
LBB0_23:
	movl	$-1, %r15d
LBB0_24:
	movl	%r15d, %eax
	addq	$88, %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:                                 ## @.str
	.asciz	"SDL_Android_NativeWindow_display_l: NULL overlay"

L_.str.1:                               ## @.str.1
	.asciz	"SDL_Android_NativeWindow_display_l: invalid overlay dimensions(%d, %d)"

L_.str.2:                               ## @.str.2
	.asciz	"SDL_Android_NativeWindow_display_l: unknown overlay format: %d"

L_.str.3:                               ## @.str.3
	.asciz	"ANativeWindow_setBuffersGeometry: w=%d, h=%d, f=%.4s(0x%x) => w=%d, h=%d, f=%.4s(0x%x)"

L_.str.4:                               ## @.str.4
	.asciz	"SDL_Android_NativeWindow_display_l: ANativeWindow_setBuffersGeometry: failed %d"

L_.str.5:                               ## @.str.5
	.asciz	"SDL_Android_NativeWindow_display_l: unknown hal format %d"

L_.str.6:                               ## @.str.6
	.asciz	"SDL_Android_NativeWindow_display_l: ANativeWindow_lock: failed %d"

L_.str.7:                               ## @.str.7
	.asciz	"unexpected native window buffer (%p)(w:%d, h:%d, fmt:'%.4s'0x%x), expecting (w:%d, h:%d, fmt:'%.4s'0x%x)"

L_.str.8:                               ## @.str.8
	.asciz	"SDL_Android_NativeWindow_display_l: ANativeWindow_unlockAndPost: failed %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SDL_Android_NativeWindow_display_l ; -- Begin function SDL_Android_NativeWindow_display_l
	.p2align	2
_SDL_Android_NativeWindow_display_l:    ; @SDL_Android_NativeWindow_display_l
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	cbz	x0, LBB0_21
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_4
; %bb.2:
	ldp	x8, x9, [x20]
	cmp	x8, #1
	ccmp	x9, #0, #4, ge
	b.gt	LBB0_5
; %bb.3:
	stp	x8, x9, [sp]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_20
LBB0_4:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_20
LBB0_5:
	mov	x19, x0
	bl	_ANativeWindow_getWidth
	mov	x25, x0
	mov	x0, x19
	bl	_ANativeWindow_getHeight
	mov	x27, x0
	mov	x0, x19
	bl	_ANativeWindow_getFormat
	mov	x28, x0
	stur	w0, [x29, #-84]
	ldr	x0, [x20]
	mov	w1, #2
	bl	_IJKALIGN
	mov	x21, x0
	ldr	x0, [x20, #8]
	mov	w1, #2
	bl	_IJKALIGN
	mov	x22, x0
	mov	x24, x20
	ldr	w0, [x24, #16]!
	bl	_native_window_get_desc
	cbz	x0, LBB0_15
; %bb.6:
	mov	x23, x0
	mov	x0, x28
	bl	_native_window_get_desc
	mov	x26, x0
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x8, [x26]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_10
LBB0_8:
	ldr	w8, [x24]
	str	w8, [sp]
Lloh4:
	adrp	x0, l_.str.3@PAGE
Lloh5:
	add	x0, x0, l_.str.3@PAGEOFF
	sub	x3, x29, #84
	mov	x1, x25
	mov	x2, x27
	mov	x4, x28
	mov	x5, x21
	mov	x6, x22
	mov	x7, x24
	bl	_ALOGD
	ldr	x3, [x23]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_ANativeWindow_setBuffersGeometry
	tbnz	w0, #31, LBB0_16
; %bb.9:
	cbz	x26, LBB0_19
LBB0_10:
	add	x1, sp, #80
	mov	x0, x19
	mov	x2, #0
	bl	_ANativeWindow_lock
	tbnz	w0, #31, LBB0_17
; %bb.11:
	ldp	w8, w9, [sp, #80]
	cmp	w8, w21
	b.ne	LBB0_18
; %bb.12:
	cmp	w9, w22
	b.ne	LBB0_18
; %bb.13:
	ldr	x8, [x26, #8]
	add	x0, sp, #80
	mov	x1, x20
	blr	x8
	mov	x25, x0
	mov	x0, x19
	bl	_ANativeWindow_unlockAndPost
	tbz	w0, #31, LBB0_22
; %bb.14:
	mov	x19, x0
	str	x19, [sp]
Lloh6:
	adrp	x0, l_.str.8@PAGE
Lloh7:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_ALOGE
	mov	x25, x19
	b	LBB0_22
LBB0_15:
	ldr	w8, [x24]
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_20
LBB0_16:
	mov	x25, x0
	str	x25, [sp]
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_ALOGE
	b	LBB0_22
LBB0_17:
	mov	x25, x0
	str	x25, [sp]
Lloh12:
	adrp	x0, l_.str.6@PAGE
Lloh13:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_ALOGE
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
	b	LBB0_22
LBB0_18:
	add	x10, sp, #80
	add	x10, x10, #8
	ldr	w11, [sp, #88]
	ldr	w12, [x24]
	stp	x24, x12, [sp, #56]
	stp	x21, x22, [sp, #40]
	stp	x10, x11, [sp, #24]
	stp	x8, x9, [sp, #8]
Lloh14:
	adrp	x0, l_.str.7@PAGE
Lloh15:
	add	x0, x0, l_.str.7@PAGEOFF
	str	x19, [sp]
	bl	_ALOGE
	mov	x0, x19
	bl	_ANativeWindow_unlockAndPost
	ldr	x3, [x23]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_ANativeWindow_setBuffersGeometry
	b	LBB0_21
LBB0_19:
	ldur	w8, [x29, #-84]
	str	x8, [sp]
Lloh16:
	adrp	x0, l_.str.5@PAGE
Lloh17:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_20:
	bl	_ALOGE
LBB0_21:
	mov	w25, #-1
LBB0_22:
	mov	x0, x25
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SDL_Android_NativeWindow_display_l: NULL overlay"

l_.str.1:                               ; @.str.1
	.asciz	"SDL_Android_NativeWindow_display_l: invalid overlay dimensions(%d, %d)"

l_.str.2:                               ; @.str.2
	.asciz	"SDL_Android_NativeWindow_display_l: unknown overlay format: %d"

l_.str.3:                               ; @.str.3
	.asciz	"ANativeWindow_setBuffersGeometry: w=%d, h=%d, f=%.4s(0x%x) => w=%d, h=%d, f=%.4s(0x%x)"

l_.str.4:                               ; @.str.4
	.asciz	"SDL_Android_NativeWindow_display_l: ANativeWindow_setBuffersGeometry: failed %d"

l_.str.5:                               ; @.str.5
	.asciz	"SDL_Android_NativeWindow_display_l: unknown hal format %d"

l_.str.6:                               ; @.str.6
	.asciz	"SDL_Android_NativeWindow_display_l: ANativeWindow_lock: failed %d"

l_.str.7:                               ; @.str.7
	.asciz	"unexpected native window buffer (%p)(w:%d, h:%d, fmt:'%.4s'0x%x), expecting (w:%d, h:%d, fmt:'%.4s'0x%x)"

l_.str.8:                               ; @.str.8
	.asciz	"SDL_Android_NativeWindow_display_l: ANativeWindow_unlockAndPost: failed %d"

.subsections_via_symbols
