	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_magic_getpath                  ## -- Begin function magic_getpath
	.p2align	4, 0x90
_magic_getpath:                         ## @magic_getpath
	.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	%rdi, %rax
	testq	%rdi, %rdi
	jne	LBB0_4
## %bb.1:
	movl	%esi, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	_FILE_LOAD@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_3
## %bb.5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_get_default_magic              ## TAILCALL
LBB0_3:
	movq	_MAGIC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MAGIC"

	.comm	_FILE_LOAD,4,2                  ## @FILE_LOAD
	.comm	_MAGIC,8,3                      ## @MAGIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_magic_getpath                  ; -- Begin function magic_getpath
	.p2align	2
_magic_getpath:                         ; @magic_getpath
	.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
	cbnz	x0, LBB0_5
; %bb.1:
	mov	x19, x1
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	cbnz	x0, LBB0_5
; %bb.2:
Lloh2:
	adrp	x8, _FILE_LOAD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FILE_LOAD@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_get_default_magic
LBB0_4:
Lloh5:
	adrp	x8, _MAGIC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAGIC@GOTPAGEOFF]
Lloh7:
	ldr	x0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MAGIC"

	.comm	_FILE_LOAD,4,2                  ; @FILE_LOAD
	.comm	_MAGIC,8,3                      ; @MAGIC
.subsections_via_symbols
