	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proc_arg                       ## -- Begin function proc_arg
	.p2align	4, 0x90
_proc_arg:                              ## @proc_arg
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movq	(%rsi), %r15
	movq	%r15, %rdi
	movl	$47, %esi
	callq	_strrchr
	leaq	1(%rax), %rcx
	testq	%rax, %rax
	cmoveq	%r15, %rcx
	movq	_prog@GOTPCREL(%rip), %rax
	movq	%rcx, (%rax)
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	movq	_tmp_dir@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	(%rcx), %rax
LBB0_2:
	movq	%rax, (%rcx)
	leaq	L_.str.1(%rip), %r15
	movq	_slot_map@GOTPCREL(%rip), %r12
	movq	_optarg@GOTPCREL(%rip), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$-1, %ecx
	cmpl	$97, %eax
	jne	LBB0_5
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, (%r12)
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_getopt
	cmpl	$109, %eax
	jle	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$115, %eax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$110, %eax
	jne	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ecx, %ecx
	movl	%ecx, (%r12)
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r13), %edi
	callq	_atoi
	testl	%eax, %eax
	js	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ecx
	movq	_CHAR_BIT@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	shlq	$2, %rdx
	cmpq	%rcx, %rdx
	jbe	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r12), %ecx
	cmpl	$-1, %ecx
	movl	$0, %edx
	cmovel	%edx, %ecx
	btsl	%eax, %ecx
	jmp	LBB0_13
LBB0_14:
	leaq	L_.str.2(%rip), %rsi
	xorl	%edi, %edi
	callq	_warnc
LBB0_15:
	xorl	%eax, %eax
	callq	_usage
	movl	$-1, %eax
	jmp	LBB0_16
LBB0_5:
	cmpl	$-1, %eax
	jne	LBB0_15
## %bb.6:
	xorl	%eax, %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_prog,8,3                       ## @prog
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TMPDIR"

	.comm	_tmp_dir,8,3                    ## @tmp_dir
L_.str.1:                               ## @.str.1
	.asciz	"ans:"

	.comm	_slot_map,4,2                   ## @slot_map
	.comm	_optarg,4,2                     ## @optarg
	.comm	_CHAR_BIT,4,2                   ## @CHAR_BIT
L_.str.2:                               ## @.str.2
	.asciz	"Invalid slot number."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proc_arg                       ; -- Begin function proc_arg
	.p2align	2
_proc_arg:                              ; @proc_arg
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x1]
	mov	x0, x21
	mov	w1, #47
	bl	_strrchr
	cmp	x0, #0
	csinc	x8, x21, x0, eq
Lloh0:
	adrp	x9, _prog@GOTPAGE
Lloh1:
	ldr	x9, [x9, _prog@GOTPAGEOFF]
Lloh2:
	str	x8, [x9]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
Lloh5:
	adrp	x8, _tmp_dir@GOTPAGE
Lloh6:
	ldr	x8, [x8, _tmp_dir@GOTPAGEOFF]
	ldr	x9, [x8]
	cmp	x0, #0
	csel	x9, x9, x0, eq
Lloh7:
	adrp	x21, l_.str.1@PAGE
Lloh8:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh9:
	adrp	x22, _slot_map@GOTPAGE
Lloh10:
	ldr	x22, [x22, _slot_map@GOTPAGEOFF]
	str	x9, [x8]
Lloh11:
	adrp	x23, _optarg@GOTPAGE
Lloh12:
	ldr	x23, [x23, _optarg@GOTPAGEOFF]
Lloh13:
	adrp	x24, _CHAR_BIT@GOTPAGE
Lloh14:
	ldr	x24, [x24, _CHAR_BIT@GOTPAGEOFF]
	mov	w25, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_getopt
	cmp	w0, #109
	b.le	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w0, #115
	b.eq	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w0, #110
	b.ne	LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w8, #0
	str	wzr, [x22]
	b	LBB0_1
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	cmp	w0, #97
	b.ne	LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w8, #-1
	str	w8, [x22]
	b	LBB0_1
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x23]
	bl	_atoi
	tbnz	w0, #31, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w8, w0
	ldrsw	x9, [x24]
	cmp	x8, x9, lsl #2
	b.hs	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x22]
	cmn	w8, #1
	csel	w8, wzr, w8, eq
	lsl	w9, w25, w0
	orr	w8, w8, w9
	str	w8, [x22]
	b	LBB0_1
LBB0_10:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #0
	bl	_warnc
LBB0_11:
	bl	_usage
	mov	w0, #-1
	b	LBB0_14
LBB0_12:
	cmn	w0, #1
	b.ne	LBB0_11
; %bb.13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_prog,8,3                       ; @prog
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TMPDIR"

	.comm	_tmp_dir,8,3                    ; @tmp_dir
l_.str.1:                               ; @.str.1
	.asciz	"ans:"

	.comm	_slot_map,4,2                   ; @slot_map
	.comm	_optarg,4,2                     ; @optarg
	.comm	_CHAR_BIT,4,2                   ; @CHAR_BIT
l_.str.2:                               ; @.str.2
	.asciz	"Invalid slot number."

.subsections_via_symbols
