	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function InternalIpcSemaphoreCreate
_InternalIpcSemaphoreCreate:            ## @InternalIpcSemaphoreCreate
	.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	_IPC_CREAT@GOTPCREL(%rip), %rax
	movq	_IPC_EXCL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_IPCProtection@GOTPCREL(%rip), %r13
	orl	(%r13), %edx
	callq	_semget
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_6
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_EEXIST@GOTPCREL(%rip), %rcx
	movl	$-1, %eax
	cmpl	(%rcx), %r12d
	je	LBB0_7
## %bb.2:
	movq	_EACCES@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r12d
	je	LBB0_7
## %bb.3:
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movq	_IPC_EXCL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IPC_CREAT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	orl	(%r13), %ecx
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_errdetail
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	cmpl	(%rax), %r12d
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	callq	_errhint
	movl	%eax, %esi
LBB0_5:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_ereport
LBB0_6:
	movl	%ebx, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPC_CREAT,4,2                  ## @IPC_CREAT
	.comm	_IPC_EXCL,4,2                   ## @IPC_EXCL
	.comm	_IPCProtection,4,2              ## @IPCProtection
	.comm	_errno,4,2                      ## @errno
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_FATAL,4,2                      ## @FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not create semaphores: %m"

L_.str.1:                               ## @.str.1
	.asciz	"Failed system call was semget(%lu, %d, 0%o)."

	.comm	_ENOSPC,4,2                     ## @ENOSPC
L_.str.2:                               ## @.str.2
	.asciz	"This error does *not* mean that you have run out of disk space.  It occurs when either the system limit for the maximum number of semaphore sets (SEMMNI), or the system wide maximum number of semaphores (SEMMNS), would be exceeded.  You need to raise the respective kernel parameter.  Alternatively, reduce PostgreSQL's consumption of semaphores by reducing its max_connections parameter.\nThe PostgreSQL documentation contains more information about configuring your system for PostgreSQL."

	.comm	_EIDRM,4,2                      ## @EIDRM
	.no_dead_strip	_InternalIpcSemaphoreCreate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function InternalIpcSemaphoreCreate
_InternalIpcSemaphoreCreate:            ; @InternalIpcSemaphoreCreate
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x23, _IPC_CREAT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IPC_CREAT@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh2:
	adrp	x24, _IPC_EXCL@GOTPAGE
Lloh3:
	ldr	x24, [x24, _IPC_EXCL@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w9, w8
Lloh4:
	adrp	x25, _IPCProtection@GOTPAGE
Lloh5:
	ldr	x25, [x25, _IPCProtection@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w2, w8, w9
	bl	_semget
	mov	x19, x0
	tbz	w0, #31, LBB0_7
; %bb.1:
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	ldr	w26, [x8]
Lloh9:
	adrp	x8, _EEXIST@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _EACCES@GOTPAGE
Lloh13:
	ldr	x9, [x9, _EACCES@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w26, w8
	ccmp	w26, w9, #4, ne
	b.ne	LBB0_3
; %bb.2:
	mov	w19, #-1
	b	LBB0_7
LBB0_3:
Lloh15:
	adrp	x8, _FATAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FATAL@GOTPAGEOFF]
Lloh17:
	ldr	w22, [x8]
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w8, w9, w8
	ldr	w9, [x25]
	orr	w3, w8, w9
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	bl	_errdetail
Lloh22:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w26, w8
	b.ne	LBB0_5
; %bb.4:
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errhint
	mov	x1, x0
	b	LBB0_6
LBB0_5:
	mov	w1, #0
LBB0_6:
	mov	x0, x22
	bl	_ereport
LBB0_7:
	mov	x0, x19
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_IPC_CREAT,4,2                  ; @IPC_CREAT
	.comm	_IPC_EXCL,4,2                   ; @IPC_EXCL
	.comm	_IPCProtection,4,2              ; @IPCProtection
	.comm	_errno,4,2                      ; @errno
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_FATAL,4,2                      ; @FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not create semaphores: %m"

l_.str.1:                               ; @.str.1
	.asciz	"Failed system call was semget(%lu, %d, 0%o)."

	.comm	_ENOSPC,4,2                     ; @ENOSPC
l_.str.2:                               ; @.str.2
	.asciz	"This error does *not* mean that you have run out of disk space.  It occurs when either the system limit for the maximum number of semaphore sets (SEMMNI), or the system wide maximum number of semaphores (SEMMNS), would be exceeded.  You need to raise the respective kernel parameter.  Alternatively, reduce PostgreSQL's consumption of semaphores by reducing its max_connections parameter.\nThe PostgreSQL documentation contains more information about configuring your system for PostgreSQL."

	.comm	_EIDRM,4,2                      ; @EIDRM
	.no_dead_strip	_InternalIpcSemaphoreCreate
.subsections_via_symbols
