	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_global_magic
_get_global_magic:                      ## @get_global_magic
	.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
	movl	%edi, %r14d
	xorl	%eax, %eax
	callq	_get_literal_global
	movq	_PATHSPEC_LITERAL@GOTPCREL(%rip), %r15
	movl	$0, %r12d
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r15), %r12d
LBB0_2:
	xorl	%eax, %eax
	callq	_get_glob_global
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	testl	%r14d, (%r15)
	jne	LBB0_5
## %bb.4:
	movq	_PATHSPEC_GLOB@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
LBB0_5:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_get_glob_global
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	xorl	%eax, %eax
	callq	_get_noglob_global
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_die
LBB0_8:
	xorl	%eax, %eax
	callq	_get_icase_global
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_PATHSPEC_ICASE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_10:
	orl	%r12d, %ebx
	movl	(%r15), %eax
	testl	%eax, %ebx
	je	LBB0_13
## %bb.11:
	notl	%eax
	testl	%eax, %ebx
	je	LBB0_13
## %bb.12:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_die
LBB0_13:
	xorl	%eax, %eax
	callq	_get_noglob_global
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	_PATHSPEC_GLOB@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_16
## %bb.15:
	orl	(%r15), %ebx
LBB0_16:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PATHSPEC_LITERAL,4,2           ## @PATHSPEC_LITERAL
	.comm	_PATHSPEC_GLOB,4,2              ## @PATHSPEC_GLOB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"global 'glob' and 'noglob' pathspec settings are incompatible"

	.comm	_PATHSPEC_ICASE,4,2             ## @PATHSPEC_ICASE
L_.str.1:                               ## @.str.1
	.asciz	"global 'literal' pathspec setting is incompatible with all other global pathspec settings"

	.no_dead_strip	_get_global_magic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_global_magic
_get_global_magic:                      ; @get_global_magic
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_get_literal_global
Lloh0:
	adrp	x21, _PATHSPEC_LITERAL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PATHSPEC_LITERAL@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	x0, #0
	csel	w20, wzr, w8, eq
	bl	_get_glob_global
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x21]
	tst	w8, w19
	b.eq	LBB0_5
LBB0_2:
	bl	_get_glob_global
	cbz	x0, LBB0_6
LBB0_3:
	bl	_get_noglob_global
	cbz	x0, LBB0_6
; %bb.4:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	bl	_die
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x8, _PATHSPEC_GLOB@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PATHSPEC_GLOB@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	orr	w20, w8, w20
	bl	_get_glob_global
	cbnz	x0, LBB0_3
LBB0_6:
	bl	_get_icase_global
Lloh7:
	adrp	x8, _PATHSPEC_ICASE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PATHSPEC_ICASE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w20, w8, w20
	ldr	w8, [x21]
	and	w9, w20, w8
	cmp	w9, #0
	bic	w8, w20, w8
	ccmp	w8, #0, #4, ne
	b.eq	LBB0_8
; %bb.7:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	bl	_die
LBB0_8:
	bl	_get_noglob_global
	cbz	x0, LBB0_11
; %bb.9:
Lloh12:
	adrp	x8, _PATHSPEC_GLOB@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PATHSPEC_GLOB@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w19
	b.ne	LBB0_11
; %bb.10:
	ldr	w8, [x21]
	orr	w20, w8, w20
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PATHSPEC_LITERAL,4,2           ; @PATHSPEC_LITERAL
	.comm	_PATHSPEC_GLOB,4,2              ; @PATHSPEC_GLOB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"global 'glob' and 'noglob' pathspec settings are incompatible"

	.comm	_PATHSPEC_ICASE,4,2             ; @PATHSPEC_ICASE
l_.str.1:                               ; @.str.1
	.asciz	"global 'literal' pathspec setting is incompatible with all other global pathspec settings"

	.no_dead_strip	_get_global_magic
.subsections_via_symbols
