	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prepare_commit                 ## -- Begin function prepare_commit
	.p2align	4, 0x90
_prepare_commit:                        ## @prepare_commit
	.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
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PF_ANCHOR_NAME_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_pft@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_TRANS_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%eax, (%rbx)
	movl	$24, 4(%rbx)
	movq	_pfte@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movl	(%r12), %ebx
	movq	_FTP_PROXY_ANCHOR@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	xorl	%eax, %eax
	callq	_getpid
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r12, %rcx
	movl	%eax, %r8d
	movl	%r14d, %r9d
	callq	_snprintf
	cmpl	$0, (%r13)
	jle	LBB0_2
## %bb.1:
	movq	_pfte@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	(%rbx), %rax
	movl	12(%rax), %edi
	movq	_PF_ANCHOR_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_strlcpy
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %eax
	jmp	LBB0_3
LBB0_2:
	movq	_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DIOCXBEGIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_pft@GOTPCREL(%rip), %rdx
	callq	_ioctl
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$-1, %ecx
	sete	%al
	negl	%eax
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_ANCHOR_NAME_SIZE,4,2        ## @PF_ANCHOR_NAME_SIZE
	.comm	_pft,24,3                       ## @pft
	.comm	_TRANS_SIZE,4,2                 ## @TRANS_SIZE
	.comm	_pfte,8,3                       ## @pfte
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%d.%d"

	.comm	_FTP_PROXY_ANCHOR,8,3           ## @FTP_PROXY_ANCHOR
	.comm	_PF_RULESET_FILTER,4,2          ## @PF_RULESET_FILTER
	.comm	_PF_RULESET_NAT,4,2             ## @PF_RULESET_NAT
	.comm	_PF_RULESET_RDR,4,2             ## @PF_RULESET_RDR
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_dev,4,2                        ## @dev
	.comm	_DIOCXBEGIN,4,2                 ## @DIOCXBEGIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prepare_commit                 ; -- Begin function prepare_commit
	.p2align	2
_prepare_commit:                        ; @prepare_commit
	.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
	sub	sp, sp, #16
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x23, _PF_ANCHOR_NAME_SIZE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _PF_ANCHOR_NAME_SIZE@GOTPAGEOFF]
	ldr	w8, [x23]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
Lloh7:
	adrp	x21, _pft@GOTPAGE
Lloh8:
	ldr	x21, [x21, _pft@GOTPAGEOFF]
	mov	w22, #24
	mov	x0, x21
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh9:
	adrp	x25, _TRANS_SIZE@GOTPAGE
Lloh10:
	ldr	x25, [x25, _TRANS_SIZE@GOTPAGEOFF]
	ldr	w8, [x25]
	stp	w8, w22, [x21]
Lloh11:
	adrp	x24, _pfte@GOTPAGE
Lloh12:
	ldr	x24, [x24, _pfte@GOTPAGEOFF]
	ldr	x8, [x24]
	str	x8, [x21, #16]
	ldr	w21, [x23]
Lloh13:
	adrp	x8, _FTP_PROXY_ANCHOR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FTP_PROXY_ANCHOR@GOTPAGEOFF]
Lloh15:
	ldr	x22, [x8]
	bl	_getpid
	mov	x4, x0
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	x3, x22
	mov	x5, x20
	bl	_snprintf
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.1:
	ldr	x0, [x24]
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	x8, [x24]
	ldr	w0, [x8, #12]
	ldr	w2, [x23]
	mov	x1, x19
	bl	_strlcpy
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _errno@GOTPAGE
Lloh22:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh23:
	str	w8, [x9]
	mov	w0, #-1
	b	LBB0_3
LBB0_2:
Lloh24:
	adrp	x8, _dev@GOTPAGE
Lloh25:
	ldr	x8, [x8, _dev@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x8, _DIOCXBEGIN@GOTPAGE
Lloh28:
	ldr	x8, [x8, _DIOCXBEGIN@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x2, _pft@GOTPAGE
Lloh31:
	ldr	x2, [x2, _pft@GOTPAGEOFF]
	bl	_ioctl
	cmn	w0, #1
	csetm	w0, eq
LBB0_3:
	ldur	x8, [x29, #-72]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	sub	sp, x29, #64
	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
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_ANCHOR_NAME_SIZE,4,2        ; @PF_ANCHOR_NAME_SIZE
	.comm	_pft,24,3                       ; @pft
	.comm	_TRANS_SIZE,4,2                 ; @TRANS_SIZE
	.comm	_pfte,8,3                       ; @pfte
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%d.%d"

	.comm	_FTP_PROXY_ANCHOR,8,3           ; @FTP_PROXY_ANCHOR
	.comm	_PF_RULESET_FILTER,4,2          ; @PF_RULESET_FILTER
	.comm	_PF_RULESET_NAT,4,2             ; @PF_RULESET_NAT
	.comm	_PF_RULESET_RDR,4,2             ; @PF_RULESET_RDR
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_dev,4,2                        ; @dev
	.comm	_DIOCXBEGIN,4,2                 ; @DIOCXBEGIN
.subsections_via_symbols
