	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load                           ## -- Begin function load
	.p2align	4, 0x90
_load:                                  ## @load
	.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	%rdi, %r14
	movq	%rsi, %rdi
	callq	_rxml_root_node
	movq	%rax, %rbx
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_rxml_node_attrib
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	leaq	L_.str.3(%rip), %rdi
	callq	_RARCH_LOG
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	-32(%rbp), %r15
	movq	%r15, %rdi
	callq	_scope_init
	movq	%r15, %rdi
	callq	_init_device_params
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_init_screen_params
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_init_screen_params
	leaq	-28(%rbp), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_load_top_level
	movl	-28(%rbp), %esi
	movq	%r14, %rdi
	callq	_view_array_init
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_load_views
	movq	%r15, %rdi
	callq	_scope_deinit
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mamelayout"

L_.str.1:                               ## @.str.1
	.asciz	"version"

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

L_.str.3:                               ## @.str.3
	.asciz	"video_layout: invalid MAME Layout file\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load                           ; -- Begin function load
	.p2align	2
_load:                                  ; @load
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	x0, x1
	bl	_rxml_root_node
	mov	x20, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_rxml_node_attrib
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_4
LBB0_2:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_RARCH_LOG
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	add	x0, sp, #12
	bl	_scope_init
	add	x0, sp, #12
	bl	_init_device_params
	add	x0, sp, #12
	mov	w1, #0
	bl	_init_screen_params
	add	x0, sp, #12
	mov	w1, #1
	bl	_init_screen_params
	add	x0, sp, #12
	add	x1, sp, #8
	mov	x2, x20
	bl	_load_top_level
	ldr	w1, [sp, #8]
	mov	x0, x19
	bl	_view_array_init
	add	x0, sp, #12
	mov	x1, x19
	mov	x2, x20
	bl	_load_views
	add	x0, sp, #12
	bl	_scope_deinit
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mamelayout"

l_.str.1:                               ; @.str.1
	.asciz	"version"

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

l_.str.3:                               ; @.str.3
	.asciz	"video_layout: invalid MAME Layout file\n"

.subsections_via_symbols
