	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function map_stacks_exec
_map_stacks_exec:                       ## @map_stacks_exec
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_max_stack_flags@GOTPCREL(%rip), %rax
	movq	_PF_X@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_stack_prot@GOTPCREL(%rip), %r14
	movq	_PROT_EXEC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%eax, (%r14)
	je	LBB0_2
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	%rdi, %rsi
	leaq	L_.str(%rip), %rdi
	callq	_get_program_var_addr
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	(%rbx), %ecx
	orl	%ecx, (%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_max_stack_flags,4,2            ## @max_stack_flags
	.comm	_PF_X,4,2                       ## @PF_X
	.comm	_stack_prot,4,2                 ## @stack_prot
	.comm	_PROT_EXEC,4,2                  ## @PROT_EXEC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"__pthread_map_stacks_exec"

	.no_dead_strip	_map_stacks_exec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function map_stacks_exec
_map_stacks_exec:                       ; @map_stacks_exec
	.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
Lloh0:
	adrp	x8, _max_stack_flags@GOTPAGE
Lloh1:
	ldr	x8, [x8, _max_stack_flags@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PF_X@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PF_X@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x19, _stack_prot@GOTPAGE
Lloh7:
	ldr	x19, [x19, _stack_prot@GOTPAGEOFF]
	ldr	w8, [x19]
Lloh8:
	adrp	x20, _PROT_EXEC@GOTPAGE
Lloh9:
	ldr	x20, [x20, _PROT_EXEC@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x1, x0
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_get_program_var_addr
	cbz	x0, LBB0_2
; %bb.4:
	ldr	w8, [x20]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x0
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_max_stack_flags,4,2            ; @max_stack_flags
	.comm	_PF_X,4,2                       ; @PF_X
	.comm	_stack_prot,4,2                 ; @stack_prot
	.comm	_PROT_EXEC,4,2                  ; @PROT_EXEC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"__pthread_map_stacks_exec"

	.no_dead_strip	_map_stacks_exec
.subsections_via_symbols
