	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function delete_display
_delete_display:                        ## @delete_display
	.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
	movl	%edi, %r15d
	movq	_display_chain@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	cmpl	%r15d, (%rax)
	jne	LBB0_4
LBB0_3:
	movq	%rax, %rdi
LBB0_8:
	movq	8(%rdi), %rax
	movq	%rax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free_display                   ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_error
	movq	_display_chain@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_3
LBB0_4:
	leaq	L_.str(%rip), %r14
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rdi, %rax
	cmpl	%r15d, (%rdi)
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rdi
	movq	%rax, %rbx
	addq	$8, %rbx
	testq	%rdi, %rdi
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_error
	movq	(%rbx), %rdi
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_display_chain,8,3              ## @display_chain
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No display number %d."

	.no_dead_strip	_delete_display
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function delete_display
_delete_display:                        ; @delete_display
	.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
Lloh0:
	adrp	x20, _display_chain@GOTPAGE
Lloh1:
	ldr	x20, [x20, _display_chain@GOTPAGEOFF]
	ldr	x0, [x20]
	cbnz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_error
	ldr	x0, [x20]
LBB0_2:
	ldr	w8, [x0]
	cmp	w8, w19
	b.ne	LBB0_5
; %bb.3:
Lloh4:
	adrp	x21, _display_chain@GOTPAGE
Lloh5:
	ldr	x21, [x21, _display_chain@GOTPAGEOFF]
LBB0_4:
	ldr	x8, [x0, #8]
	str	x8, [x21]
	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	_free_display
LBB0_5:
Lloh6:
	adrp	x20, l_.str@PAGE
Lloh7:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x0]
	cmp	w8, w19
	b.eq	LBB0_4
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x21, x0
	ldr	x0, [x21, #8]!
	cbnz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_error
	ldr	x0, [x21]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_display_chain,8,3              ; @display_chain
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No display number %d."

	.no_dead_strip	_delete_display
.subsections_via_symbols
