	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ex_init                        ## -- Begin function ex_init
	.p2align	4, 0x90
_ex_init:                               ## @ex_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r12
	movq	_SC_EX@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	*8(%r12)
	movl	$1, %r14d
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_SA_ALTERNATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	*(%r12)
	movq	_O_LINES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_O_VAL
	movq	%rax, 8(%rbx)
	movq	_O_COLUMNS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_O_VAL
	movq	%rax, (%rbx)
	movq	_SC_VI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_F_CLR
	movq	_SC_SCR_EX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_F_SET
LBB0_2:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SC_EX,4,2                      ## @SC_EX
	.comm	_SA_ALTERNATE,4,2               ## @SA_ALTERNATE
	.comm	_O_LINES,4,2                    ## @O_LINES
	.comm	_O_COLUMNS,4,2                  ## @O_COLUMNS
	.comm	_SC_VI,4,2                      ## @SC_VI
	.comm	_SC_SCR_EX,4,2                  ## @SC_SCR_EX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ex_init                        ; -- Begin function ex_init
	.p2align	2
_ex_init:                               ; @ex_init
	.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
	mov	x19, x0
	ldr	x21, [x0, #16]
	ldr	x8, [x21, #8]
Lloh0:
	adrp	x20, _SC_EX@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SC_EX@GOTPAGEOFF]
	ldr	w1, [x20]
	blr	x8
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _SA_ALTERNATE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SA_ALTERNATE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x9]
	mov	x0, x19
	mov	w2, #0
	blr	x8
Lloh5:
	adrp	x8, _O_LINES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _O_LINES@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_O_VAL
	str	x0, [x19, #8]
Lloh8:
	adrp	x8, _O_COLUMNS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _O_COLUMNS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_O_VAL
	str	x0, [x19]
Lloh11:
	adrp	x8, _SC_VI@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SC_VI@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_F_CLR
	ldr	w8, [x20]
Lloh14:
	adrp	x9, _SC_SCR_EX@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SC_SCR_EX@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_F_SET
	mov	w0, #0
LBB0_3:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SC_EX,4,2                      ; @SC_EX
	.comm	_SA_ALTERNATE,4,2               ; @SA_ALTERNATE
	.comm	_O_LINES,4,2                    ; @O_LINES
	.comm	_O_COLUMNS,4,2                  ; @O_COLUMNS
	.comm	_SC_VI,4,2                      ; @SC_VI
	.comm	_SC_SCR_EX,4,2                  ; @SC_SCR_EX
.subsections_via_symbols
