	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_event_get_location             ## -- Begin function event_get_location
	.p2align	4, 0x90
_event_get_location:                    ## @event_get_location
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	testl	%esi, %esi
	jne	LBB0_1
## %bb.2:
	movq	_photo_type__location@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_photo_type__original_location@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r15d
	cmpl	$-1, %r15d
	je	LBB0_9
## %bb.4:
	movq	(%rdi), %r13
	movq	8(%rdi), %r12
	movq	_types@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_PHOTO_TYPE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%r15d, %rbx
	shlq	$2, %rbx
	addq	(%rax,%rcx,8), %rbx
	testq	%r13, %r13
	je	LBB0_6
## %bb.5:
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_has_field
	testq	%rax, %rax
	jne	LBB0_8
LBB0_6:
	testq	%r12, %r12
	je	LBB0_9
## %bb.7:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_has_field
	movq	%r12, %r13
	testq	%rax, %rax
	je	LBB0_9
LBB0_8:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_GET_RAW
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_RAW_LEN
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RAW_DATA                       ## TAILCALL
LBB0_9:
	movl	$0, (%r14)
	leaq	L_.str(%rip), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_photo_type__original_location,4,2 ## @photo_type__original_location
	.comm	_photo_type__location,4,2       ## @photo_type__location
	.comm	_types,8,3                      ## @types
	.comm	_PHOTO_TYPE,8,3                 ## @PHOTO_TYPE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_event_get_location             ; -- Begin function event_get_location
	.p2align	2
_event_get_location:                    ; @event_get_location
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
Lloh0:
	adrp	x8, _photo_type__original_location@GOTPAGE
Lloh1:
	ldr	x8, [x8, _photo_type__original_location@GOTPAGEOFF]
Lloh2:
	adrp	x9, _photo_type__location@GOTPAGE
Lloh3:
	ldr	x9, [x9, _photo_type__location@GOTPAGEOFF]
	cmp	w1, #0
	csel	x8, x9, x8, eq
	ldr	w20, [x8]
	cmn	w20, #1
	b.eq	LBB0_7
; %bb.1:
	ldp	x22, x21, [x0]
Lloh4:
	adrp	x8, _types@GOTPAGE
Lloh5:
	ldr	x8, [x8, _types@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _PHOTO_TYPE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PHOTO_TYPE@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	ldr	x23, [x8, x9, lsl #3]
	cbz	x22, LBB0_3
; %bb.2:
	mov	x0, x22
	mov	x1, x20
	bl	_has_field
	cbnz	x0, LBB0_5
LBB0_3:
	cbz	x21, LBB0_7
; %bb.4:
	mov	x0, x21
	mov	x1, x20
	bl	_has_field
	mov	x22, x21
	cbz	x0, LBB0_7
LBB0_5:
	add	x1, x23, w20, sxtw #2
	mov	x0, x22
	bl	_GET_RAW
	cbz	x0, LBB0_7
; %bb.6:
	mov	x20, x0
	bl	_RAW_LEN
	str	w0, [x19]
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_RAW_DATA
LBB0_7:
	str	wzr, [x19]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_photo_type__original_location,4,2 ; @photo_type__original_location
	.comm	_photo_type__location,4,2       ; @photo_type__location
	.comm	_types,8,3                      ; @types
	.comm	_PHOTO_TYPE,8,3                 ; @PHOTO_TYPE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

.subsections_via_symbols
