	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function foreign_option
_foreign_option:                        ## @foreign_option
	.cfi_startproc
## %bb.0:
	testl	%edx, %edx
	jle	LBB0_11
## %bb.1:
	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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_gc_new
	movl	%eax, -64(%rbp)
	movq	_OPTION_PARM_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	-64(%rbp), %r12
	movq	%r12, %rsi
	callq	_alloc_buf_gc
	movl	%eax, -56(%rbp)
	movl	(%r13), %edi
	movq	%r12, %rsi
	callq	_alloc_buf_gc
	movl	%eax, -48(%rbp)
	movq	(%rbx), %rdx
	incq	%rdx
	leaq	L_.str(%rip), %rsi
	leaq	-56(%rbp), %rdi
	xorl	%eax, %eax
	callq	_buf_printf
	incq	(%rbx)
	movl	%eax, %ebx
	andl	$1, %ebx
	movl	%r14d, %r12d
	movl	$1, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r13d, %r13d
	leaq	-48(%rbp), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_buf_printf
	andl	%eax, %ebx
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	cmpq	%r14, %r12
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%r14,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r13d, %r13d
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	-48(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_buf_printf
	andl	%eax, %ebx
	movq	(%r15,%r14,8), %rdx
	jmp	LBB0_5
LBB0_7:
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.8:
	leaq	-56(%rbp), %rdi
	callq	_BSTR
	movl	%eax, %ebx
	leaq	-48(%rbp), %rdi
	callq	_BSTR
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_setenv_str
	jmp	LBB0_10
LBB0_9:
	movq	_M_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_msg
LBB0_10:
	leaq	-64(%rbp), %rdi
	callq	_gc_free
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
LBB0_11:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OPTION_PARM_SIZE,4,2           ## @OPTION_PARM_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"foreign_option_%d"

L_.str.1:                               ## @.str.1
	.asciz	" "

L_.str.2:                               ## @.str.2
	.asciz	"%s"

	.comm	_M_WARN,4,2                     ## @M_WARN
L_.str.3:                               ## @.str.3
	.asciz	"foreign_option: name/value overflow"

	.no_dead_strip	_foreign_option
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function foreign_option
_foreign_option:                        ; @foreign_option
	.cfi_startproc
; %bb.0:
	cmp	w2, #1
	b.lt	LBB0_11
; %bb.1:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	bl	_gc_new
	str	w0, [sp, #24]
Lloh0:
	adrp	x23, _OPTION_PARM_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _OPTION_PARM_SIZE@GOTPAGEOFF]
	ldr	w0, [x23]
	add	x1, sp, #24
	bl	_alloc_buf_gc
	str	w0, [sp, #16]
	ldr	w0, [x23]
	add	x1, sp, #24
	bl	_alloc_buf_gc
	str	w0, [sp, #8]
	ldr	x8, [x22]
	add	x8, x8, #1
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #16
	bl	_buf_printf
	and	w23, w0, #0x1
	ldr	x8, [x22]
	add	x8, x8, #1
	str	x8, [x22]
	mov	w24, w21
	mov	w8, #1
Lloh4:
	adrp	x21, l_.str.1@PAGE
Lloh5:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh6:
	adrp	x22, l_.str.2@PAGE
Lloh7:
	add	x22, x22, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x9, [sp]
	add	x0, sp, #8
	mov	x1, x22
	bl	_buf_printf
	mov	w8, #0
	and	w23, w0, w23
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #8
	subs	x24, x24, #1
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20]
	cbz	x9, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w8, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #8
	mov	x1, x21
	bl	_buf_printf
	and	w23, w0, w23
	ldr	x9, [x20]
	b	LBB0_2
LBB0_7:
	cbz	w23, LBB0_9
; %bb.8:
	add	x0, sp, #16
	bl	_BSTR
	mov	x20, x0
	add	x0, sp, #8
	bl	_BSTR
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_setenv_str
	b	LBB0_10
LBB0_9:
Lloh8:
	adrp	x8, _M_WARN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _M_WARN@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_msg
LBB0_10:
	add	x0, sp, #24
	bl	_gc_free
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
LBB0_11:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_OPTION_PARM_SIZE,4,2           ; @OPTION_PARM_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"foreign_option_%d"

l_.str.1:                               ; @.str.1
	.asciz	" "

l_.str.2:                               ; @.str.2
	.asciz	"%s"

	.comm	_M_WARN,4,2                     ; @M_WARN
l_.str.3:                               ; @.str.3
	.asciz	"foreign_option: name/value overflow"

	.no_dead_strip	_foreign_option
.subsections_via_symbols
