	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CreateOptsFile
_CreateOptsFile:                        ## @CreateOptsFile
	.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	%rdx, %r12
	movq	%rsi, %r14
	movl	%edi, %r15d
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_fputs
	cmpl	$2, %r15d
	jl	LBB0_5
## %bb.3:
	movl	%r15d, %r12d
	movl	$1, %ebx
	leaq	L_.str.4(%rip), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%rbx,8), %rdx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_fprintf
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_4
LBB0_5:
	movl	$10, %edi
	movq	%r13, %rsi
	callq	_fputc
	movq	%r13, %rdi
	callq	_fclose
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str.2(%rip), %rsi
LBB0_7:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_elog
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_9:
	movl	$1, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"postmaster.opts"

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

	.comm	_LOG,4,2                        ## @LOG
L_.str.2:                               ## @.str.2
	.asciz	"could not create file \"%s\": %m"

L_.str.4:                               ## @.str.4
	.asciz	" \"%s\""

L_.str.6:                               ## @.str.6
	.asciz	"could not write file \"%s\": %m"

	.comm	_OPTS_FILE,4,2                  ## @OPTS_FILE
	.no_dead_strip	_CreateOptsFile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CreateOptsFile
_CreateOptsFile:                        ; @CreateOptsFile
	.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	x22, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_fopen
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	mov	x0, x22
	mov	x1, x19
	bl	_fputs
	cmp	w21, #2
	b.lt	LBB0_4
; %bb.2:
	mov	w8, w21
	add	x21, x20, #8
	sub	x22, x8, #1
Lloh4:
	adrp	x20, l_.str.4@PAGE
Lloh5:
	add	x20, x20, l_.str.4@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x2, [x21], #8
	mov	x0, x19
	mov	x1, x20
	bl	_fprintf
	subs	x22, x22, #1
	b.ne	LBB0_3
LBB0_4:
	mov	w0, #10
	mov	x1, x19
	bl	_fputc
	mov	x0, x19
	bl	_fclose
	cbz	x0, LBB0_8
; %bb.5:
Lloh6:
	adrp	x1, l_.str.6@PAGE
Lloh7:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_7:
Lloh10:
	adrp	x8, _LOG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_elog
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	mov	w0, #1
LBB0_9:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"postmaster.opts"

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

	.comm	_LOG,4,2                        ; @LOG
l_.str.2:                               ; @.str.2
	.asciz	"could not create file \"%s\": %m"

l_.str.4:                               ; @.str.4
	.asciz	" \"%s\""

l_.str.6:                               ; @.str.6
	.asciz	"could not write file \"%s\": %m"

	.comm	_OPTS_FILE,4,2                  ; @OPTS_FILE
	.no_dead_strip	_CreateOptsFile
.subsections_via_symbols
