	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drv_CanHandle
_drv_CanHandle:                         ## @drv_CanHandle
	.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	%rsi, %r15
	movq	%rdi, %rbx
	testq	%rdi, %rdi
	setne	%al
	testq	%rsi, %rsi
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movq	_TCBMAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_TGETENT_NO@GOTPCREL(%rip), %r12
	movl	(%r12), %r14d
	movq	_TGETENT_YES@GOTPCREL(%rip), %r13
	cmpl	(%r13), %r14d
	je	LBB0_8
## %bb.1:
	movq	%r15, %rdi
	callq	__nc_fallback
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_8
LBB0_3:
	cmpl	(%r13), %r14d
	je	LBB0_8
## %bb.4:
	movq	_TGETENT_ERR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	callq	_ret_error0
	jmp	LBB0_8
LBB0_6:
	cmpl	(%r12), %r14d
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	movq	%r15, %rdx
	callq	_ret_error1
LBB0_8:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_ttytype@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	movl	(%rbx), %esi
	movq	_NAMESIZE@GOTPCREL(%rip), %r14
	movslq	(%r14), %rdx
	decq	%rdx
	callq	_strncpy
	movq	(%r13), %rax
	movslq	(%r14), %rcx
	movb	$0, -1(%rcx,%rax)
	movq	_command_character@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	__nc_tinfo_cmdch
LBB0_10:
	movq	_generic_type@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_18
## %bb.11:
	movq	_cursor_address@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_VALID_STRING
	testq	%rax, %rax
	je	LBB0_12
LBB0_14:
	movq	_clear_screen@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_VALID_STRING
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.2(%rip), %rsi
	movq	_TGETENT_YES@GOTPCREL(%rip), %r12
	jmp	LBB0_17
LBB0_12:
	movq	_cursor_down@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_VALID_STRING
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	movq	_cursor_home@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_VALID_STRING
	testq	%rax, %rax
	jne	LBB0_14
LBB0_16:
	leaq	L_.str.3(%rip), %rsi
LBB0_17:
	movl	(%r12), %edi
	movq	%r15, %rdx
	callq	_ret_error1
LBB0_18:
	movq	_hard_copy@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_20
## %bb.19:
	movq	_TGETENT_YES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdx
	callq	_ret_error1
LBB0_20:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TCBMAGIC,4,2                   ## @TCBMAGIC
	.comm	_TGETENT_NO,4,2                 ## @TGETENT_NO
	.comm	_TGETENT_YES,4,2                ## @TGETENT_YES
	.comm	_TGETENT_ERR,4,2                ## @TGETENT_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"terminals database is inaccessible\n"

L_.str.1:                               ## @.str.1
	.asciz	"unknown terminal type.\n"

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_ttytype,8,3                    ## @ttytype
	.comm	_NAMESIZE,4,2                   ## @NAMESIZE
	.comm	_command_character,8,3          ## @command_character
	.comm	_generic_type,8,3               ## @generic_type
	.comm	_cursor_address,4,2             ## @cursor_address
	.comm	_cursor_down,4,2                ## @cursor_down
	.comm	_cursor_home,4,2                ## @cursor_home
	.comm	_clear_screen,4,2               ## @clear_screen
L_.str.2:                               ## @.str.2
	.asciz	"terminal is not really generic.\n"

L_.str.3:                               ## @.str.3
	.asciz	"I need something more specific.\n"

	.comm	_hard_copy,8,3                  ## @hard_copy
L_.str.4:                               ## @.str.4
	.asciz	"I can't handle hardcopy terminals.\n"

	.no_dead_strip	_drv_CanHandle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drv_CanHandle
_drv_CanHandle:                         ; @drv_CanHandle
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x21, x0
	cmp	x0, #0
	ccmp	x1, #0, #4, ne
	cset	w0, ne
	bl	_assert
Lloh0:
	adrp	x8, _TCBMAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TCBMAGIC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x23, _TGETENT_NO@GOTPAGE
Lloh4:
	ldr	x23, [x23, _TGETENT_NO@GOTPAGEOFF]
	str	w8, [x21]
	ldr	w20, [x23]
Lloh5:
	adrp	x22, _TGETENT_YES@GOTPAGE
Lloh6:
	ldr	x22, [x22, _TGETENT_YES@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w20, w8
	b.eq	LBB0_8
; %bb.1:
	mov	x0, x19
	bl	__nc_fallback
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w8, [x0]
	str	w8, [x21]
	b	LBB0_8
LBB0_3:
	ldr	w8, [x22]
	cmp	w20, w8
	b.eq	LBB0_8
; %bb.4:
Lloh7:
	adrp	x8, _TGETENT_ERR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TGETENT_ERR@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_6
; %bb.5:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_ret_error0
	b	LBB0_8
LBB0_6:
	ldr	w8, [x23]
	cmp	w20, w8
	b.ne	LBB0_8
; %bb.7:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_ret_error1
LBB0_8:
Lloh14:
	adrp	x8, _TRUE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
Lloh17:
	adrp	x23, _ttytype@GOTPAGE
Lloh18:
	ldr	x23, [x23, _ttytype@GOTPAGEOFF]
	ldr	x0, [x23]
	ldr	w1, [x21]
Lloh19:
	adrp	x24, _NAMESIZE@GOTPAGE
Lloh20:
	ldr	x24, [x24, _NAMESIZE@GOTPAGEOFF]
	ldrsw	x8, [x24]
	sub	x2, x8, #1
	bl	_strncpy
	ldr	x8, [x23]
	ldrsw	x9, [x24]
	add	x8, x9, x8
	sturb	wzr, [x8, #-1]
Lloh21:
	adrp	x8, _command_character@GOTPAGE
Lloh22:
	ldr	x8, [x8, _command_character@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	w1, [x8]
	mov	x0, x21
	bl	__nc_tinfo_cmdch
LBB0_10:
Lloh24:
	adrp	x8, _generic_type@GOTPAGE
Lloh25:
	ldr	x8, [x8, _generic_type@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cbz	x8, LBB0_18
; %bb.11:
Lloh27:
	adrp	x8, _cursor_address@GOTPAGE
Lloh28:
	ldr	x8, [x8, _cursor_address@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_VALID_STRING
	cbz	x0, LBB0_14
LBB0_12:
Lloh30:
	adrp	x8, _clear_screen@GOTPAGE
Lloh31:
	ldr	x8, [x8, _clear_screen@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_VALID_STRING
	cbz	x0, LBB0_16
; %bb.13:
Lloh33:
	adrp	x1, l_.str.2@PAGE
Lloh34:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh35:
	adrp	x8, _TGETENT_YES@GOTPAGE
Lloh36:
	ldr	x8, [x8, _TGETENT_YES@GOTPAGEOFF]
	b	LBB0_17
LBB0_14:
Lloh37:
	adrp	x8, _cursor_down@GOTPAGE
Lloh38:
	ldr	x8, [x8, _cursor_down@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	bl	_VALID_STRING
	cbz	x0, LBB0_16
; %bb.15:
Lloh40:
	adrp	x8, _cursor_home@GOTPAGE
Lloh41:
	ldr	x8, [x8, _cursor_home@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	bl	_VALID_STRING
	cbnz	x0, LBB0_12
LBB0_16:
Lloh43:
	adrp	x1, l_.str.3@PAGE
Lloh44:
	add	x1, x1, l_.str.3@PAGEOFF
Lloh45:
	adrp	x8, _TGETENT_NO@GOTPAGE
Lloh46:
	ldr	x8, [x8, _TGETENT_NO@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x8]
	mov	x2, x19
	bl	_ret_error1
LBB0_18:
Lloh47:
	adrp	x8, _hard_copy@GOTPAGE
Lloh48:
	ldr	x8, [x8, _hard_copy@GOTPAGEOFF]
Lloh49:
	ldr	x8, [x8]
	cbz	x8, LBB0_20
; %bb.19:
	ldr	w0, [x22]
Lloh50:
	adrp	x1, l_.str.4@PAGE
Lloh51:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x19
	bl	_ret_error1
LBB0_20:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TCBMAGIC,4,2                   ; @TCBMAGIC
	.comm	_TGETENT_NO,4,2                 ; @TGETENT_NO
	.comm	_TGETENT_YES,4,2                ; @TGETENT_YES
	.comm	_TGETENT_ERR,4,2                ; @TGETENT_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"terminals database is inaccessible\n"

l_.str.1:                               ; @.str.1
	.asciz	"unknown terminal type.\n"

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_ttytype,8,3                    ; @ttytype
	.comm	_NAMESIZE,4,2                   ; @NAMESIZE
	.comm	_command_character,8,3          ; @command_character
	.comm	_generic_type,8,3               ; @generic_type
	.comm	_cursor_address,4,2             ; @cursor_address
	.comm	_cursor_down,4,2                ; @cursor_down
	.comm	_cursor_home,4,2                ; @cursor_home
	.comm	_clear_screen,4,2               ; @clear_screen
l_.str.2:                               ; @.str.2
	.asciz	"terminal is not really generic.\n"

l_.str.3:                               ; @.str.3
	.asciz	"I need something more specific.\n"

	.comm	_hard_copy,8,3                  ; @hard_copy
l_.str.4:                               ; @.str.4
	.asciz	"I can't handle hardcopy terminals.\n"

	.no_dead_strip	_drv_CanHandle
.subsections_via_symbols
