	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sig_handler
_sig_handler:                           ## @sig_handler
	.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, %ebx
	movq	_errno@GOTPCREL(%rip), %r15
	movl	(%r15), %r12d
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	callq	_sigemptyset
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_sigaddset
	movq	_SIG_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rsi
	callq	_sigprocmask
	movq	_sel@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movq	(%rdi), %rax
	movl	%ebx, (%rax)
	cmpl	$128, %ebx
	je	LBB0_5
## %bb.1:
	cmpl	$129, %ebx
	jne	LBB0_6
## %bb.2:
	callq	_tty_rawmode
	movq	(%r14), %rdi
	xorl	%esi, %esi
	callq	_ed_redisplay
	movq	_CC_REFRESH@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	movq	(%r14), %rdi
	callq	_re_refresh
LBB0_4:
	movq	(%r14), %rdi
	callq	_terminal__flush
	jmp	LBB0_7
LBB0_5:
	callq	_el_resize
	jmp	LBB0_7
LBB0_6:
	callq	_tty_cookedmode
LBB0_7:
	movq	_sighdl@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	$-1, %rax
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rcx,%rax,4), %edx
	incq	%rax
	cmpl	$-1, %edx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%ebx, %edx
	jne	LBB0_8
LBB0_10:
	movl	%eax, %eax
	movq	(%r14), %rcx
	movq	(%rcx), %rcx
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %r13
	movq	8(%rcx), %rsi
	addq	%r13, %rsi
	movl	%ebx, %edi
	xorl	%edx, %edx
	callq	_sigaction
	movq	_SIG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movq	(%rcx), %rcx
	movq	8(%rcx), %rcx
	leaq	(%rcx,%r13), %rdi
	movl	%eax, 16(%rcx,%r13)
	movq	$0, 8(%rcx,%r13)
	callq	_sigemptyset
	movq	_SIG_SETMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-44(%rbp), %rsi
	xorl	%edx, %edx
	callq	_sigprocmask
	xorl	%edi, %edi
	movl	%ebx, %esi
	callq	_kill
	movl	%r12d, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.comm	_SIG_BLOCK,4,2                  ## @SIG_BLOCK
	.comm	_sel,8,3                        ## @sel
	.comm	_CC_REFRESH,4,2                 ## @CC_REFRESH
	.comm	_sighdl,8,3                     ## @sighdl
	.comm	_SIG_ERR,4,2                    ## @SIG_ERR
	.comm	_SIG_SETMASK,4,2                ## @SIG_SETMASK
	.no_dead_strip	_sig_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sig_handler
_sig_handler:                           ; @sig_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _errno@GOTPAGE
Lloh1:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	ldr	w21, [x20]
	add	x0, sp, #12
	bl	_sigemptyset
	add	x0, sp, #12
	mov	x1, x19
	bl	_sigaddset
Lloh2:
	adrp	x8, _SIG_BLOCK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SIG_BLOCK@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_sigprocmask
Lloh5:
	adrp	x22, _sel@GOTPAGE
Lloh6:
	ldr	x22, [x22, _sel@GOTPAGEOFF]
	ldr	x0, [x22]
	ldr	x8, [x0]
	str	w19, [x8]
	cmp	w19, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w19, #129
	b.ne	LBB0_6
; %bb.2:
	bl	_tty_rawmode
	ldr	x0, [x22]
	mov	w1, #0
	bl	_ed_redisplay
Lloh7:
	adrp	x8, _CC_REFRESH@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CC_REFRESH@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.3:
	ldr	x0, [x22]
	bl	_re_refresh
LBB0_4:
	ldr	x0, [x22]
	bl	_terminal__flush
	b	LBB0_7
LBB0_5:
	bl	_el_resize
	b	LBB0_7
LBB0_6:
	bl	_tty_cookedmode
LBB0_7:
	mov	x8, #0
Lloh10:
	adrp	x9, _sighdl@GOTPAGE
Lloh11:
	ldr	x9, [x9, _sighdl@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9, x8, lsl #2]
	add	x8, x8, #1
	cmn	w10, #1
	ccmp	w10, w19, #4, ne
	b.ne	LBB0_8
; %bb.9:
	sub	w23, w8, #1
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	mov	w24, #24
	umaddl	x1, w23, w24, x8
	mov	x0, x19
	mov	x2, #0
	bl	_sigaction
Lloh13:
	adrp	x8, _SIG_ERR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SIG_ERR@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	x9, [x22]
	ldr	x9, [x9]
	ldr	x9, [x9, #8]
	umaddl	x0, w23, w24, x9
	str	w8, [x0, #16]
	str	xzr, [x0, #8]
	bl	_sigemptyset
Lloh16:
	adrp	x8, _SIG_SETMASK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SIG_SETMASK@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	x2, #0
	bl	_sigprocmask
	mov	w0, #0
	mov	x1, x19
	bl	_kill
	str	w21, [x20]
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.comm	_SIG_BLOCK,4,2                  ; @SIG_BLOCK
	.comm	_sel,8,3                        ; @sel
	.comm	_CC_REFRESH,4,2                 ; @CC_REFRESH
	.comm	_sighdl,8,3                     ; @sighdl
	.comm	_SIG_ERR,4,2                    ; @SIG_ERR
	.comm	_SIG_SETMASK,4,2                ; @SIG_SETMASK
	.no_dead_strip	_sig_handler
.subsections_via_symbols
