	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdl_lock_pixels                ## -- Begin function sdl_lock_pixels
	.p2align	4, 0x90
_sdl_lock_pixels:                       ## @sdl_lock_pixels
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_surface@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_SDL_LockSurface
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_fatal_error
LBB0_2:
	movq	(%rbx), %rax
	movl	8(%rax), %ecx
	movq	_sdl_pitch@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movq	(%rax), %rax
	movq	_sdl_pixels@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_surface,8,3                    ## @surface
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't lock surface"

	.comm	_sdl_pitch,4,2                  ## @sdl_pitch
	.comm	_sdl_pixels,8,3                 ## @sdl_pixels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdl_lock_pixels                ; -- Begin function sdl_lock_pixels
	.p2align	2
_sdl_lock_pixels:                       ; @sdl_lock_pixels
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _surface@GOTPAGE
Lloh1:
	ldr	x19, [x19, _surface@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_SDL_LockSurface
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fatal_error
LBB0_2:
	ldr	x8, [x19]
Lloh4:
	adrp	x9, _sdl_pitch@GOTPAGE
Lloh5:
	ldr	x9, [x9, _sdl_pitch@GOTPAGEOFF]
	ldr	w10, [x8, #8]
Lloh6:
	str	w10, [x9]
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _sdl_pixels@GOTPAGE
Lloh8:
	ldr	x9, [x9, _sdl_pixels@GOTPAGEOFF]
Lloh9:
	str	x8, [x9]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_surface,8,3                    ; @surface
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't lock surface"

	.comm	_sdl_pitch,4,2                  ; @sdl_pitch
	.comm	_sdl_pixels,8,3                 ; @sdl_pixels
.subsections_via_symbols
