	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sig_handler                    ## -- Begin function sig_handler
	.p2align	4, 0x90
_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	_signals_enabled@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jne	LBB0_3
## %bb.1:
	movq	_SIGIO@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	_SIGIO_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_signals_pending@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%eax, %eax
	callq	_block_signals
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_sig_handler_common
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_signals                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_signals_enabled,4,2            ## @signals_enabled
	.comm	_SIGIO,4,2                      ## @SIGIO
	.comm	_SIGIO_MASK,4,2                 ## @SIGIO_MASK
	.comm	_signals_pending,4,2            ## @signals_pending
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sig_handler                    ; -- Begin function sig_handler
	.p2align	2
_sig_handler:                           ; @sig_handler
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x8, _signals_enabled@GOTPAGE
Lloh1:
	ldr	x8, [x8, _signals_enabled@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _SIGIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIGIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w20, #0
	ccmp	w8, w0, #0, eq
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x1
	mov	x21, x0
	bl	_block_signals
	mov	x0, x21
	mov	x1, x19
	bl	_sig_handler_common
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_set_signals
LBB0_2:
Lloh6:
	adrp	x8, _SIGIO_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SIGIO_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _signals_pending@GOTPAGE
Lloh10:
	ldr	x9, [x9, _signals_pending@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_signals_enabled,4,2            ; @signals_enabled
	.comm	_SIGIO,4,2                      ; @SIGIO
	.comm	_SIGIO_MASK,4,2                 ; @SIGIO_MASK
	.comm	_signals_pending,4,2            ; @signals_pending
.subsections_via_symbols
