	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_posix2_version                 ## -- Begin function posix2_version
	.p2align	4, 0x90
_posix2_version:                        ## @posix2_version
	.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	_DEFAULT_POSIX2_VERSION@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpb	$0, (%rax)
	je	LBB0_3
## %bb.2:
	leaq	-16(%rbp), %rsi
	movq	%rax, %rdi
	movl	$10, %edx
	callq	_strtol
	movq	-16(%rbp), %rcx
	cmpb	$0, (%rcx)
	cmoveq	%rax, %rbx
LBB0_3:
	movq	_INT_MIN@GOTPCREL(%rip), %rax
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rbx
	cmovlq	%rbx, %rcx
	movq	(%rax), %rax
	cmpq	%rax, %rbx
	cmovgel	%ecx, %eax
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEFAULT_POSIX2_VERSION,8,3     ## @DEFAULT_POSIX2_VERSION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_POSIX2_VERSION"

	.comm	_INT_MIN,8,3                    ## @INT_MIN
	.comm	_INT_MAX,8,3                    ## @INT_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_posix2_version                 ; -- Begin function posix2_version
	.p2align	2
_posix2_version:                        ; @posix2_version
	.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
Lloh0:
	adrp	x8, _DEFAULT_POSIX2_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEFAULT_POSIX2_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_3
; %bb.1:
	ldrb	w8, [x0]
	cbz	w8, LBB0_3
; %bb.2:
	add	x1, sp, #8
	mov	w2, #10
	bl	_strtol
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cmp	w8, #0
	csel	x19, x0, x19, eq
LBB0_3:
Lloh5:
	adrp	x8, _INT_MIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INT_MIN@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh9:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x19, x9
	csel	x9, x19, x9, lt
	cmp	x19, x8
	csel	w0, w8, w9, lt
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DEFAULT_POSIX2_VERSION,8,3     ; @DEFAULT_POSIX2_VERSION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_POSIX2_VERSION"

	.comm	_INT_MIN,8,3                    ; @INT_MIN
	.comm	_INT_MAX,8,3                    ; @INT_MAX
.subsections_via_symbols
