	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgwin32_signal_initialize      ## -- Begin function pgwin32_signal_initialize
	.p2align	4, 0x90
_pgwin32_signal_initialize:             ## @pgwin32_signal_initialize
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_pg_signal_crit_sec@GOTPCREL(%rip), %rdi
	callq	_InitializeCriticalSection
	movq	_PG_SIGNAL_COUNT@GOTPCREL(%rip), %r8
	cmpl	$0, (%r8)
	jle	LBB0_3
## %bb.1:
	movq	_pg_signal_array@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_pg_signal_defaults@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	xorl	%esi, %esi
	movq	_SIG_DFL@GOTPCREL(%rip), %rdi
	movq	_SIG_IGN@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdi), %eax
	movl	%eax, (%rcx,%rsi,4)
	movl	(%rbx), %eax
	movl	%eax, (%rdx,%rsi,4)
	incq	%rsi
	movslq	(%r8), %rax
	cmpq	%rax, %rsi
	jl	LBB0_2
LBB0_3:
	movq	_pg_signal_mask@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_pg_signal_queue@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_TRUE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	xorl	%ecx, %ecx
	callq	_CreateEvent
	movq	_pgwin32_signal_event@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_GetLastError
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_errmsg_internal
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_5:
	movq	_pg_signal_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_CreateThread
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg_internal
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_7:
	movq	_pg_console_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	callq	_SetConsoleCtrlHandler
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg_internal
	movl	%ebx, %edi
	movl	%eax, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ereport                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_pg_signal_crit_sec,4,2         ## @pg_signal_crit_sec
	.comm	_PG_SIGNAL_COUNT,4,2            ## @PG_SIGNAL_COUNT
	.comm	_SIG_DFL,4,2                    ## @SIG_DFL
	.comm	_pg_signal_array,8,3            ## @pg_signal_array
	.comm	_SIG_IGN,4,2                    ## @SIG_IGN
	.comm	_pg_signal_defaults,8,3         ## @pg_signal_defaults
	.comm	_pg_signal_mask,8,3             ## @pg_signal_mask
	.comm	_pg_signal_queue,8,3            ## @pg_signal_queue
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_pgwin32_signal_event,8,3       ## @pgwin32_signal_event
	.comm	_FATAL,4,2                      ## @FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not create signal event: error code %lu"

	.comm	_pg_signal_thread,4,2           ## @pg_signal_thread
L_.str.1:                               ## @.str.1
	.asciz	"could not create signal handler thread"

	.comm	_pg_console_handler,4,2         ## @pg_console_handler
L_.str.2:                               ## @.str.2
	.asciz	"could not set console control handler"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgwin32_signal_initialize      ; -- Begin function pgwin32_signal_initialize
	.p2align	2
_pgwin32_signal_initialize:             ; @pgwin32_signal_initialize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x0, _pg_signal_crit_sec@GOTPAGE
Lloh1:
	ldr	x0, [x0, _pg_signal_crit_sec@GOTPAGEOFF]
	bl	_InitializeCriticalSection
Lloh2:
	adrp	x8, _PG_SIGNAL_COUNT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PG_SIGNAL_COUNT@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x9, #0
Lloh4:
	adrp	x10, _pg_signal_array@GOTPAGE
Lloh5:
	ldr	x10, [x10, _pg_signal_array@GOTPAGEOFF]
Lloh6:
	adrp	x11, _pg_signal_defaults@GOTPAGE
Lloh7:
	ldr	x11, [x11, _pg_signal_defaults@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
Lloh9:
	ldr	x11, [x11]
Lloh10:
	adrp	x12, _SIG_DFL@GOTPAGE
Lloh11:
	ldr	x12, [x12, _SIG_DFL@GOTPAGEOFF]
Lloh12:
	adrp	x13, _SIG_IGN@GOTPAGE
Lloh13:
	ldr	x13, [x13, _SIG_IGN@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x12]
	lsl	x15, x9, #2
	str	w14, [x10, x15]
	ldr	w14, [x13]
	str	w14, [x11, x15]
	add	x9, x9, #1
	ldrsw	x14, [x8]
	cmp	x9, x14
	b.lt	LBB0_2
LBB0_3:
Lloh14:
	adrp	x8, _pg_signal_mask@GOTPAGE
Lloh15:
	ldr	x8, [x8, _pg_signal_mask@GOTPAGEOFF]
Lloh16:
	str	xzr, [x8]
Lloh17:
	adrp	x8, _pg_signal_queue@GOTPAGE
Lloh18:
	ldr	x8, [x8, _pg_signal_queue@GOTPAGEOFF]
Lloh19:
	str	xzr, [x8]
Lloh20:
	adrp	x20, _TRUE@GOTPAGE
Lloh21:
	ldr	x20, [x20, _TRUE@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh22:
	adrp	x8, _FALSE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, #0
	mov	x3, #0
	bl	_CreateEvent
Lloh25:
	adrp	x8, _pgwin32_signal_event@GOTPAGE
Lloh26:
	ldr	x8, [x8, _pgwin32_signal_event@GOTPAGEOFF]
Lloh27:
	str	x0, [x8]
	cbnz	x0, LBB0_5
; %bb.4:
Lloh28:
	adrp	x8, _FATAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _FATAL@GOTPAGEOFF]
Lloh30:
	ldr	w19, [x8]
	bl	_GetLastError
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh31:
	adrp	x0, l_.str@PAGE
Lloh32:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg_internal
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
LBB0_5:
Lloh33:
	adrp	x8, _pg_signal_thread@GOTPAGE
Lloh34:
	ldr	x8, [x8, _pg_signal_thread@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, #0
	mov	w1, #0
	mov	x3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_CreateThread
	cbnz	x0, LBB0_7
; %bb.6:
Lloh36:
	adrp	x8, _FATAL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _FATAL@GOTPAGEOFF]
Lloh38:
	ldr	w19, [x8]
Lloh39:
	adrp	x0, l_.str.1@PAGE
Lloh40:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg_internal
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
LBB0_7:
Lloh41:
	adrp	x8, _pg_console_handler@GOTPAGE
Lloh42:
	ldr	x8, [x8, _pg_console_handler@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_SetConsoleCtrlHandler
	cbz	w0, LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_9:
Lloh44:
	adrp	x8, _FATAL@GOTPAGE
Lloh45:
	ldr	x8, [x8, _FATAL@GOTPAGEOFF]
Lloh46:
	ldr	w19, [x8]
Lloh47:
	adrp	x0, l_.str.2@PAGE
Lloh48:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg_internal
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_ereport
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh8
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_pg_signal_crit_sec,4,2         ; @pg_signal_crit_sec
	.comm	_PG_SIGNAL_COUNT,4,2            ; @PG_SIGNAL_COUNT
	.comm	_SIG_DFL,4,2                    ; @SIG_DFL
	.comm	_pg_signal_array,8,3            ; @pg_signal_array
	.comm	_SIG_IGN,4,2                    ; @SIG_IGN
	.comm	_pg_signal_defaults,8,3         ; @pg_signal_defaults
	.comm	_pg_signal_mask,8,3             ; @pg_signal_mask
	.comm	_pg_signal_queue,8,3            ; @pg_signal_queue
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_pgwin32_signal_event,8,3       ; @pgwin32_signal_event
	.comm	_FATAL,4,2                      ; @FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not create signal event: error code %lu"

	.comm	_pg_signal_thread,4,2           ; @pg_signal_thread
l_.str.1:                               ; @.str.1
	.asciz	"could not create signal handler thread"

	.comm	_pg_console_handler,4,2         ; @pg_console_handler
l_.str.2:                               ; @.str.2
	.asciz	"could not set console control handler"

.subsections_via_symbols
