	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zhack_spa_open
_zhack_spa_open:                        ## @zhack_spa_open
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rdi, %r14
	callq	_import_pool
	movq	_B_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_zfeature_checks_disable@GOTPCREL(%rip), %r12
	movl	%eax, (%r12)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_spa_open
	movq	_B_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%r12)
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %r15
	movq	_FTAG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	movl	%eax, %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%r14, %rcx
	movl	%eax, %r8d
	callq	_fatal
LBB0_2:
	movq	(%rbx), %rdi
	callq	_spa_version
	movq	_SPA_VERSION_FEATURES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_3
## %bb.4:
	movq	(%rbx), %rbx
	movq	_FTAG@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_spa_version
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r14, %rcx
	movl	%eax, %r8d
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fatal                          ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B_TRUE,4,2                     ## @B_TRUE
	.comm	_zfeature_checks_disable,4,2    ## @zfeature_checks_disable
	.comm	_B_FALSE,4,2                    ## @B_FALSE
	.comm	_FTAG,4,2                       ## @FTAG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot open '%s': %s"

	.comm	_SPA_VERSION_FEATURES,8,3       ## @SPA_VERSION_FEATURES
L_.str.1:                               ## @.str.1
	.asciz	"'%s' has version %d, features not enabled"

	.no_dead_strip	_zhack_spa_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zhack_spa_open
_zhack_spa_open:                        ; @zhack_spa_open
	.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	x20, x3
	mov	x21, x2
	mov	x19, x0
	bl	_import_pool
Lloh0:
	adrp	x8, _B_TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B_TRUE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x22, _zfeature_checks_disable@GOTPAGE
Lloh4:
	ldr	x22, [x22, _zfeature_checks_disable@GOTPAGEOFF]
	str	w8, [x22]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_spa_open
Lloh5:
	adrp	x8, _B_FALSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _B_FALSE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x22]
Lloh8:
	adrp	x23, _FTAG@GOTPAGE
Lloh9:
	ldr	x23, [x23, _FTAG@GOTPAGEOFF]
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x21, [x20]
	ldr	w22, [x23]
	bl	_strerror
	mov	x4, x0
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	mov	x3, x19
	bl	_fatal
LBB0_2:
	ldr	x0, [x20]
	bl	_spa_version
Lloh12:
	adrp	x8, _SPA_VERSION_FEATURES@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SPA_VERSION_FEATURES@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_4
; %bb.3:
	ldr	x20, [x20]
	ldr	w21, [x23]
	mov	x0, x20
	bl	_spa_version
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x4, x0
	mov	x0, x20
	mov	x1, x21
	mov	x3, x19
                                        ; kill: def $w4 killed $w4 killed $x4
	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	_fatal
LBB0_4:
	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	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_B_TRUE,4,2                     ; @B_TRUE
	.comm	_zfeature_checks_disable,4,2    ; @zfeature_checks_disable
	.comm	_B_FALSE,4,2                    ; @B_FALSE
	.comm	_FTAG,4,2                       ; @FTAG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot open '%s': %s"

	.comm	_SPA_VERSION_FEATURES,8,3       ; @SPA_VERSION_FEATURES
l_.str.1:                               ; @.str.1
	.asciz	"'%s' has version %d, features not enabled"

	.no_dead_strip	_zhack_spa_open
.subsections_via_symbols
