	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function createPartitions
_createPartitions:                      ## @createPartitions
	.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
	subq	$392, %rsp                      ## imm = 0x188
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movb	$0, -112(%rbp)
	leaq	-112(%rbp), %rdi
	movl	$64, %esi
	callq	_append_fillfactor
	movq	_partitions@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpl	$0, (%rbx)
	setg	%dil
	callq	_Assert
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movl	(%rbx), %r9d
	testl	%r9d, %r9d
	jle	LBB0_15
## %bb.1:
	movq	_partition_method@GOTPCREL(%rip), %r12
	leaq	-368(%rbp), %r15
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_6 Depth=1
	movabsq	$7310868735961096557, %rax      ## imm = 0x65756C617678616D
	movq	%rax, -432(%rbp)
	movb	$0, -424(%rbp)
LBB0_3:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %r12
	movq	_unlogged_tables@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	leaq	L_.str.4(%rip), %rcx
	leaq	L_.str.5(%rip), %rax
	cmoveq	%rax, %rcx
	movq	%r15, %rdi
	movl	$256, %esi                      ## imm = 0x100
	leaq	L_.str.3(%rip), %rdx
	movl	%r14d, %r8d
	leaq	-400(%rbp), %r9
	xorl	%eax, %eax
	leaq	-112(%rbp), %rbx
	pushq	%rbx
	pushq	%r10
	callq	_snprintf
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	addq	$16, %rsp
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_executeStatement
	movq	_partitions@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	cmpl	%r9d, %r14d
	jge	LBB0_15
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %r10d
	leal	1(%r10), %r14d
	movq	(%r12), %rax
	movq	_PART_RANGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rbx
	movq	_naccounts@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_scale@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	addl	%r9d, %eax
	decl	%eax
	cltd
	idivl	%r9d
	movl	%eax, %r12d
	testl	%r10d, %r10d
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_INT64_FORMAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	imull	%r12d, %r10d
	incl	%r10d
	leaq	-400(%rbp), %rdi
	movl	%r10d, %edx
	xorl	%eax, %eax
	callq	_sprintf
	movq	_partitions@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	_PART_HASH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_unlogged_tables@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	leaq	L_.str.4(%rip), %rcx
	leaq	L_.str.5(%rip), %rax
	cmoveq	%rax, %rcx
	movq	%r15, %rdi
	movl	$256, %esi                      ## imm = 0x100
	leaq	L_.str.6(%rip), %rdx
	movl	%r14d, %r8d
                                        ## kill: def $r9d killed $r9d killed $r9
	xorl	%eax, %eax
	leaq	-112(%rbp), %rbx
	pushq	%rbx
	pushq	%r10
	callq	_snprintf
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	xorl	%edi, %edi
	callq	_Assert
	jmp	LBB0_5
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movabsq	$7310868735960443245, %rax      ## imm = 0x65756C61766E696D
	movq	%rax, -400(%rbp)
	movb	$0, -392(%rbp)
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	leaq	-432(%rbp), %r10
	cmpl	%r9d, %r14d
	jge	LBB0_2
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_INT64_FORMAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	imull	%r14d, %r12d
	incl	%r12d
	movq	%r10, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_sprintf
	leaq	-432(%rbp), %r10
	jmp	LBB0_3
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	addq	$392, %rsp                      ## imm = 0x188
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_partitions,4,2                 ## @partitions
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"creating %d partitions...\n"

	.comm	_partition_method,8,3           ## @partition_method
	.comm	_PART_RANGE,8,3                 ## @PART_RANGE
	.comm	_naccounts,4,2                  ## @naccounts
	.comm	_scale,8,3                      ## @scale
L_.str.1:                               ## @.str.1
	.asciz	"minvalue"

	.comm	_INT64_FORMAT,8,3               ## @INT64_FORMAT
L_.str.2:                               ## @.str.2
	.asciz	"maxvalue"

L_.str.3:                               ## @.str.3
	.asciz	"create%s table pgbench_accounts_%d\n  partition of pgbench_accounts\n  for values from (%s) to (%s)%s\n"

	.comm	_unlogged_tables,8,3            ## @unlogged_tables
L_.str.4:                               ## @.str.4
	.asciz	" unlogged"

L_.str.5:                               ## @.str.5
	.space	1

	.comm	_PART_HASH,8,3                  ## @PART_HASH
L_.str.6:                               ## @.str.6
	.asciz	"create%s table pgbench_accounts_%d\n  partition of pgbench_accounts\n  for values with (modulus %d, remainder %d)%s\n"

	.no_dead_strip	_createPartitions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function createPartitions
_createPartitions:                      ; @createPartitions
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #432
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	sturb	wzr, [x29, #-160]
	sub	x0, x29, #160
	mov	w1, #64
	bl	_append_fillfactor
Lloh3:
	adrp	x24, _partitions@GOTPAGE
Lloh4:
	ldr	x24, [x24, _partitions@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #0
	cset	w0, gt
	bl	_Assert
Lloh5:
	adrp	x8, _stderr@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w2, [x24]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.1:
	mov	w25, #0
Lloh10:
	adrp	x26, _partition_method@GOTPAGE
Lloh11:
	ldr	x26, [x26, _partition_method@GOTPAGEOFF]
Lloh12:
	adrp	x27, _PART_RANGE@GOTPAGE
Lloh13:
	ldr	x27, [x27, _PART_RANGE@GOTPAGEOFF]
Lloh14:
	adrp	x20, _unlogged_tables@GOTPAGE
Lloh15:
	ldr	x20, [x20, _unlogged_tables@GOTPAGEOFF]
Lloh16:
	adrp	x28, l_.str.4@PAGE
Lloh17:
	add	x28, x28, l_.str.4@PAGEOFF
Lloh18:
	adrp	x21, l_.str.5@PAGE
Lloh19:
	add	x21, x21, l_.str.5@PAGEOFF
	b	LBB0_6
LBB0_2:                                 ;   in Loop: Header=BB0_6 Depth=1
	strb	wzr, [sp, #40]
Lloh20:
	adrp	x8, l_.str.2@PAGE
Lloh21:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh22:
	ldr	x8, [x8]
	str	x8, [sp, #32]
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20]
	cmp	x8, #0
	csel	x3, x21, x28, eq
	sub	x8, x29, #160
	str	x8, [sp, #16]
	add	x0, sp, #96
	add	x8, sp, #32
	str	x8, [sp, #8]
	add	x8, sp, #64
	str	x8, [sp]
	mov	w1, #256
Lloh23:
	adrp	x2, l_.str.3@PAGE
Lloh24:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x4, x22
	bl	_snprintf
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x1, sp, #96
	mov	x0, x19
	bl	_executeStatement
	ldr	w8, [x24]
	add	w25, w25, #1
	cmp	w25, w8
	b.ge	LBB0_14
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	w22, w25, #1
	ldr	x9, [x26]
	ldr	x10, [x27]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh25:
	adrp	x9, _naccounts@GOTPAGE
Lloh26:
	ldr	x9, [x9, _naccounts@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
Lloh28:
	adrp	x10, _scale@GOTPAGE
Lloh29:
	ldr	x10, [x10, _scale@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
	madd	w9, w9, w10, w8
	sub	w9, w9, #1
	sdiv	w23, w9, w8
	cbz	w25, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh31:
	adrp	x8, _INT64_FORMAT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _INT64_FORMAT@GOTPAGEOFF]
Lloh33:
	ldr	x1, [x8]
	orr	w8, wzr, #0x1
	madd	w8, w23, w25, w8
	str	x8, [sp]
	add	x0, sp, #64
	bl	_sprintf
	ldr	w8, [x24]
	cmp	w22, w8
	b.ge	LBB0_2
	b	LBB0_13
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh34:
	adrp	x10, _PART_HASH@GOTPAGE
Lloh35:
	ldr	x10, [x10, _PART_HASH@GOTPAGEOFF]
Lloh36:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x20]
	cmp	x9, #0
	csel	x3, x21, x28, eq
	sub	x9, x29, #160
	stp	x25, x9, [sp, #8]
	add	x0, sp, #96
	str	x8, [sp]
	mov	w1, #256
Lloh37:
	adrp	x2, l_.str.6@PAGE
Lloh38:
	add	x2, x2, l_.str.6@PAGEOFF
	b	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #0
	bl	_Assert
	b	LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	strb	wzr, [sp, #72]
Lloh39:
	adrp	x9, l_.str.1@PAGE
Lloh40:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh41:
	ldr	x9, [x9]
	str	x9, [sp, #64]
	cmp	w22, w8
	b.ge	LBB0_2
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh42:
	adrp	x8, _INT64_FORMAT@GOTPAGE
Lloh43:
	ldr	x8, [x8, _INT64_FORMAT@GOTPAGEOFF]
Lloh44:
	ldr	x1, [x8]
	orr	w8, wzr, #0x1
	madd	w8, w23, w22, w8
	str	x8, [sp]
	add	x0, sp, #32
	bl	_sprintf
	b	LBB0_3
LBB0_14:
	ldur	x8, [x29, #-96]
Lloh45:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh46:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	add	sp, sp, #432
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAddLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAddLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_partitions,4,2                 ; @partitions
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"creating %d partitions...\n"

	.comm	_partition_method,8,3           ; @partition_method
	.comm	_PART_RANGE,8,3                 ; @PART_RANGE
	.comm	_naccounts,4,2                  ; @naccounts
	.comm	_scale,8,3                      ; @scale
l_.str.1:                               ; @.str.1
	.asciz	"minvalue"

	.comm	_INT64_FORMAT,8,3               ; @INT64_FORMAT
l_.str.2:                               ; @.str.2
	.asciz	"maxvalue"

l_.str.3:                               ; @.str.3
	.asciz	"create%s table pgbench_accounts_%d\n  partition of pgbench_accounts\n  for values from (%s) to (%s)%s\n"

	.comm	_unlogged_tables,8,3            ; @unlogged_tables
l_.str.4:                               ; @.str.4
	.asciz	" unlogged"

l_.str.5:                               ; @.str.5
	.space	1

	.comm	_PART_HASH,8,3                  ; @PART_HASH
l_.str.6:                               ; @.str.6
	.asciz	"create%s table pgbench_accounts_%d\n  partition of pgbench_accounts\n  for values with (modulus %d, remainder %d)%s\n"

	.no_dead_strip	_createPartitions
.subsections_via_symbols
