	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Display_Or_Erase_Field
_Display_Or_Erase_Field:                ## @Display_Or_Erase_Field
	.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
	movq	_E_SYSTEM_ERROR@GOTPCREL(%rip), %r13
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	24(%rdi), %edi
	callq	_Get_Form_Window
	movq	%rax, %r12
	movl	20(%rbx), %esi
	movl	16(%rbx), %edx
	movl	8(%rbx), %r8d
	movl	12(%rbx), %ecx
	movq	%rax, %rdi
	callq	_derwin
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	movq	%rax, %r14
	movq	_O_VISIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_Set_Field_Window_Attributes
	jmp	LBB0_5
LBB0_4:
	movq	%r12, %rdi
	callq	_WINDOW_ATTRS
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_wattrset
LBB0_5:
	movq	%r14, %rdi
	callq	_werase
	testl	%r15d, %r15d
	jne	LBB0_11
## %bb.6:
	movq	_O_PUBLIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_10
## %bb.7:
	movq	%rbx, %rdi
	callq	_Justification_Allowed
	movq	%rbx, %rdi
	movq	%r14, %rsi
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	callq	_Perform_Justification
	jmp	LBB0_10
LBB0_9:
	callq	_Buffer_To_Window
LBB0_10:
	movq	__NEWTOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ClrStatus
LBB0_11:
	movq	%r14, %rdi
	callq	_wsyncup
	movq	%r14, %rdi
	callq	_delwin
	movq	_E_OK@GOTPCREL(%rip), %r13
LBB0_12:
	movl	(%r13), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E_SYSTEM_ERROR,4,2             ## @E_SYSTEM_ERROR
	.comm	_O_VISIBLE,4,2                  ## @O_VISIBLE
	.comm	_O_PUBLIC,4,2                   ## @O_PUBLIC
	.comm	__NEWTOP,4,2                    ## @_NEWTOP
	.comm	_E_OK,4,2                       ## @E_OK
	.no_dead_strip	_Display_Or_Erase_Field
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Display_Or_Erase_Field
_Display_Or_Erase_Field:                ; @Display_Or_Erase_Field
	.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
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x0, #24]
	bl	_Get_Form_Window
	mov	x22, x0
	ldp	w2, w1, [x19, #16]
	ldp	w4, w3, [x19, #8]
	bl	_derwin
	cbz	x0, LBB0_4
; %bb.2:
	mov	x20, x0
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _O_VISIBLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _O_VISIBLE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_Set_Field_Window_Attributes
	b	LBB0_6
LBB0_4:
Lloh3:
	adrp	x8, _E_SYSTEM_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _E_SYSTEM_ERROR@GOTPAGEOFF]
	b	LBB0_13
LBB0_5:
	mov	x0, x22
	bl	_WINDOW_ATTRS
	mov	x1, x0
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_wattrset
LBB0_6:
	mov	x0, x20
	bl	_werase
	cbnz	w21, LBB0_12
; %bb.7:
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _O_PUBLIC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _O_PUBLIC@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.8:
	mov	x0, x19
	bl	_Justification_Allowed
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x19
	mov	x1, x20
	bl	_Perform_Justification
	b	LBB0_11
LBB0_10:
	mov	x0, x19
	mov	x1, x20
	bl	_Buffer_To_Window
LBB0_11:
Lloh8:
	adrp	x8, __NEWTOP@GOTPAGE
Lloh9:
	ldr	x8, [x8, __NEWTOP@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ClrStatus
LBB0_12:
	mov	x0, x20
	bl	_wsyncup
	mov	x0, x20
	bl	_delwin
Lloh11:
	adrp	x8, _E_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _E_OK@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_E_SYSTEM_ERROR,4,2             ; @E_SYSTEM_ERROR
	.comm	_O_VISIBLE,4,2                  ; @O_VISIBLE
	.comm	_O_PUBLIC,4,2                   ; @O_PUBLIC
	.comm	__NEWTOP,4,2                    ; @_NEWTOP
	.comm	_E_OK,4,2                       ; @E_OK
	.no_dead_strip	_Display_Or_Erase_Field
.subsections_via_symbols
