	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function highlight
_highlight:                             ## @highlight
	.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
	subq	$1048, %rsp                     ## imm = 0x418
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpb	$0, _highlight.first(%rip)
	jne	LBB0_5
## %bb.1:
	movq	$0, _highlight.term_so(%rip)
	movq	$0, _highlight.term_se(%rip)
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_isatty
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	-1072(%rbp), %rdi
	xorl	%esi, %esi
	callq	_tgetent
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.3:
	leaq	_highlight.cbuf(%rip), %rax
	movq	%rax, -1088(%rbp)
	leaq	L_.str(%rip), %rdi
	leaq	-1088(%rbp), %r13
	movq	%r13, %rsi
	callq	_tgetstr
	movq	%rax, _highlight.term_so(%rip)
	leaq	L_.str.1(%rip), %rdi
	movq	%r13, %rsi
	callq	_tgetstr
	movq	%rax, _highlight.term_se(%rip)
LBB0_4:
	movb	$1, _highlight.first(%rip)
LBB0_5:
	movq	_flag_nohighlight@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	jmp	LBB0_13
LBB0_7:
	movq	_highlight.term_so(%rip), %r13
	testq	%r13, %r13
	je	LBB0_10
## %bb.8:
	cmpq	$0, _highlight.term_se(%rip)
	je	LBB0_10
## %bb.9:
	movb	$32, (%rbx)
	leaq	1(%rbx), %rax
	movq	%rax, -1080(%rbp)               ## 8-byte Spill
	movq	%r13, %rdi
	callq	_strlen
	movq	-1080(%rbp), %rdi               ## 8-byte Reload
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_memcpy
	movq	_highlight.term_so(%rip), %rdi
	callq	_strlen
	cltq
	addq	%rax, %rbx
	incq	%rbx
	leal	-1(%r15), %edx
	incq	%r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_memcpy
	movslq	%r15d, %rax
	leaq	(%rax,%rbx), %r15
	decq	%r15
	movq	_highlight.term_se(%rip), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_memcpy
	movq	_highlight.term_so(%rip), %rdi
	callq	_strlen
	movl	%eax, %ebx
	movq	_highlight.term_se(%rip), %rdi
	callq	_strlen
	addl	%ebx, %eax
	movl	%eax, (%r14)
	jmp	LBB0_13
LBB0_10:
	movl	$0, (%r14)
	movb	$32, (%rbx)
	cmpl	$2, %r15d
	jl	LBB0_13
## %bb.11:
	incq	%rbx
	incl	%r15d
	incq	%r12
	leaq	L_.str.2(%rip), %r13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	$2, %edx
	callq	_memcpy
	addl	$2, (%r14)
	movzbl	(%r12), %eax
	movb	%al, 2(%rbx)
	decl	%r15d
	incq	%r12
	addq	$3, %rbx
	cmpl	$2, %r15d
	ja	LBB0_12
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_highlight.first,1,2 ## @highlight.first
.zerofill __DATA,__bss,_highlight.term_so,8,3 ## @highlight.term_so
.zerofill __DATA,__bss,_highlight.term_se,8,3 ## @highlight.term_se
.zerofill __DATA,__bss,_highlight.cbuf,512,4 ## @highlight.cbuf
	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"so"

L_.str.1:                               ## @.str.1
	.asciz	"se"

	.comm	_flag_nohighlight,8,3           ## @flag_nohighlight
L_.str.2:                               ## @.str.2
	.asciz	"_\b"

	.no_dead_strip	_highlight
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function highlight
_highlight:                             ; @highlight
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #1040
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	adrp	x23, _highlight.first@PAGE
	ldrb	w8, [x23, _highlight.first@PAGEOFF]
	tbnz	w8, #0, LBB0_5
; %bb.1:
	adrp	x25, _highlight.term_so@PAGE
	str	xzr, [x25, _highlight.term_so@PAGEOFF]
	adrp	x24, _highlight.term_se@PAGE
	str	xzr, [x24, _highlight.term_se@PAGEOFF]
Lloh3:
	adrp	x8, _STDOUT_FILENO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STDOUT_FILENO@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_isatty
	cbz	x0, LBB0_4
; %bb.2:
	add	x0, sp, #8
	mov	x1, #0
	bl	_tgetent
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _highlight.cbuf@PAGE
Lloh7:
	add	x8, x8, _highlight.cbuf@PAGEOFF
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, sp
	bl	_tgetstr
	str	x0, [x25, _highlight.term_so@PAGEOFF]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, sp
	bl	_tgetstr
	str	x0, [x24, _highlight.term_se@PAGEOFF]
LBB0_4:
	mov	w8, #1
	strb	w8, [x23, _highlight.first@PAGEOFF]
LBB0_5:
Lloh12:
	adrp	x8, _flag_nohighlight@GOTPAGE
Lloh13:
	ldr	x8, [x8, _flag_nohighlight@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
	b	LBB0_12
LBB0_7:
	adrp	x25, _highlight.term_so@PAGE
	ldr	x23, [x25, _highlight.term_so@PAGEOFF]
	adrp	x24, _highlight.term_se@PAGE
	ldr	x8, [x24, _highlight.term_se@PAGEOFF]
	cmp	x23, #0
	ccmp	x8, #0, #4, ne
	b.ne	LBB0_11
; %bb.8:
	str	wzr, [x19]
	mov	w8, #32
	strb	w8, [x22]
	cmp	w21, #2
	b.lt	LBB0_12
; %bb.9:
	add	x22, x22, #1
	add	w21, w21, #1
	add	x23, x20, #1
Lloh15:
	adrp	x20, l_.str.2@PAGE
Lloh16:
	add	x20, x20, l_.str.2@PAGEOFF
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x20
	mov	w2, #2
	bl	_memcpy
	ldr	w8, [x19]
	add	w8, w8, #2
	str	w8, [x19]
	ldrb	w8, [x23], #1
	strb	w8, [x22, #2]
	sub	w21, w21, #1
	add	x22, x22, #3
	cmp	w21, #2
	b.hi	LBB0_10
	b	LBB0_12
LBB0_11:
	mov	w8, #32
	strb	w8, [x22], #1
	mov	x0, x23
	bl	_strlen
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_memcpy
	ldr	x0, [x25, _highlight.term_so@PAGEOFF]
	bl	_strlen
	add	x22, x22, w0, sxtw
	sub	w21, w21, #1
	add	x1, x20, #1
	mov	x0, x22
	mov	x2, x21
	bl	_memcpy
	add	x20, x22, w21, sxtw
	ldr	x21, [x24, _highlight.term_se@PAGEOFF]
	mov	x0, x21
	bl	_strlen
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_memcpy
	ldr	x0, [x25, _highlight.term_so@PAGEOFF]
	bl	_strlen
	mov	x20, x0
	ldr	x0, [x24, _highlight.term_se@PAGEOFF]
	bl	_strlen
	add	w8, w0, w20
	str	w8, [x19]
LBB0_12:
	ldur	x8, [x29, #-72]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_highlight.first,1,2 ; @highlight.first
.zerofill __DATA,__bss,_highlight.term_so,8,3 ; @highlight.term_so
.zerofill __DATA,__bss,_highlight.term_se,8,3 ; @highlight.term_se
.zerofill __DATA,__bss,_highlight.cbuf,512,0 ; @highlight.cbuf
	.comm	_STDOUT_FILENO,4,2              ; @STDOUT_FILENO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"so"

l_.str.1:                               ; @.str.1
	.asciz	"se"

	.comm	_flag_nohighlight,8,3           ; @flag_nohighlight
l_.str.2:                               ; @.str.2
	.asciz	"_\b"

	.no_dead_strip	_highlight
.subsections_via_symbols
