	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function teken_subr_set_top_and_bottom_margins
_teken_subr_set_top_and_bottom_margins: ## @teken_subr_set_top_and_bottom_margins
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%r8d, %r8d
	subl	$1, %esi
	cmovbl	%r8d, %esi
	movl	40(%rdi), %ecx
	cmpl	%edx, %ecx
	movl	%edx, %eax
	cmovbl	%ecx, %eax
	testl	%edx, %edx
	cmovel	%ecx, %eax
	leal	-1(%rax), %edx
	cmpl	%edx, %esi
	cmovael	%r8d, %esi
	movl	(%rdi), %edx
	cmovael	%ecx, %eax
	movl	%esi, 32(%rdi)
	movl	%eax, 36(%rdi)
	movq	_TS_ORIGIN@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_1
## %bb.2:
	movq	32(%rdi), %rcx
	movq	%rcx, 24(%rdi)
	jmp	LBB0_3
LBB0_1:
	movl	24(%rdi), %ecx
LBB0_3:
	movl	%ecx, 8(%rdi)
	movq	$0, 16(%rdi)
	movq	_TS_WRAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %edx
	movl	%edx, (%rdi)
	popq	%rbp
	jmp	_teken_funcs_cursor             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TS_ORIGIN,4,2                  ## @TS_ORIGIN
	.comm	_TS_WRAPPED,4,2                 ## @TS_WRAPPED
	.no_dead_strip	_teken_subr_set_top_and_bottom_margins
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function teken_subr_set_top_and_bottom_margins
_teken_subr_set_top_and_bottom_margins: ; @teken_subr_set_top_and_bottom_margins
	.cfi_startproc
; %bb.0:
	sub	w8, w1, #1
	cmp	w1, #0
	csel	w8, wzr, w8, eq
	ldr	w9, [x0, #40]
	cmp	w9, w2
	ccmp	w2, #0, #4, hs
	csel	w10, w9, w2, eq
	sub	w11, w10, #1
	cmp	w8, w11
	csel	w8, w8, wzr, lo
	csel	w9, w10, w9, lo
	stp	w8, w9, [x0, #32]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _TS_ORIGIN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TS_ORIGIN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x9, [x0, #32]
	str	x9, [x0, #24]
	b	LBB0_3
LBB0_2:
	ldr	w9, [x0, #24]
LBB0_3:
	str	w9, [x0, #8]
	str	xzr, [x0, #16]
Lloh3:
	adrp	x9, _TS_WRAPPED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TS_WRAPPED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x0]
	b	_teken_funcs_cursor
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TS_ORIGIN,4,2                  ; @TS_ORIGIN
	.comm	_TS_WRAPPED,4,2                 ; @TS_WRAPPED
	.no_dead_strip	_teken_subr_set_top_and_bottom_margins
.subsections_via_symbols
