	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_QTNTernary                     ## -- Begin function QTNTernary
	.p2align	4, 0x90
_QTNTernary:                            ## @QTNTernary
	.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	%rdi, %r14
	xorl	%eax, %eax
	callq	_check_stack_depth
	movq	16(%r14), %rax
	movq	(%rax), %rcx
	movq	_QI_OPR@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_16
## %bb.1:
	movl	8(%r14), %r13d
	testl	%r13d, %r13d
	jle	LBB0_5
## %bb.2:
	movq	%rsi, %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_QTNTernary
	incq	%rbx
	movslq	8(%r14), %r13
	cmpq	%r13, %rbx
	jl	LBB0_3
## %bb.4:
	movq	16(%r14), %rax
	movq	%r15, %rsi
LBB0_5:
	movq	32(%rax), %rax
	movq	_OP_AND@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_OP_OR@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%al
	orb	%cl, %al
	cmpb	$1, %al
	jne	LBB0_16
## %bb.6:
	testl	%r13d, %r13d
	jle	LBB0_16
## %bb.7:
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	addl	%r12d, %ebx
	decl	%ebx
	movq	%r15, %rdi
	callq	_pfree
	movl	8(%r14), %r13d
	movq	_QI_OPR@GOTPCREL(%rip), %rsi
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	incl	%ebx
	cmpl	%ebx, %r13d
	jle	LBB0_16
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rdi
	movslq	%ebx, %r12
	movq	(%rdi,%r12,8), %r15
	movq	16(%r15), %rax
	movq	(%rax), %rcx
	cmpq	(%rsi), %rcx
	jne	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	16(%r14), %rcx
	movq	32(%rcx), %rcx
	cmpq	32(%rax), %rcx
	jne	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	8(%r15), %eax
	leal	(%rax,%r13), %ecx
	addl	%r13d, %eax
	decl	%eax
	movl	%eax, 8(%r14)
	leal	-8(,%rcx,8), %esi
	callq	_repalloc
	movq	%rax, 24(%r14)
	leal	1(%rbx), %ecx
	cmpl	%r13d, %ecx
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	(%rax,%r12,8), %rcx
	movslq	8(%r15), %rdx
	leaq	(%rcx,%rdx,8), %rdi
	leaq	(%rax,%r12,8), %rsi
	addq	$8, %rsi
	movl	%ebx, %eax
	notl	%eax
	addl	%eax, %r13d
	shll	$3, %r13d
	movl	%r13d, %edx
	callq	_memmove
	movq	24(%r14), %rax
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	leaq	(%rax,%r12,8), %rdi
	movq	24(%r15), %rsi
	movl	8(%r15), %edx
	shll	$3, %edx
	callq	_memcpy
	movl	8(%r15), %r12d
	movq	_QTN_NEEDFREE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%r15)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	16(%r15), %rdi
	callq	_pfree
	jmp	LBB0_14
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QI_OPR,8,3                     ## @QI_OPR
	.comm	_OP_AND,8,3                     ## @OP_AND
	.comm	_OP_OR,8,3                      ## @OP_OR
	.comm	_QTN_NEEDFREE,4,2               ## @QTN_NEEDFREE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_QTNTernary                     ; -- Begin function QTNTernary
	.p2align	2
_QTNTernary:                            ; @QTNTernary
	.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
	mov	x19, x0
	bl	_check_stack_depth
	ldr	x8, [x19, #16]
	ldr	x9, [x8]
Lloh0:
	adrp	x21, _QI_OPR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _QI_OPR@GOTPAGEOFF]
	ldr	x10, [x21]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.1:
	ldr	w24, [x19, #8]
	cmp	w24, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x20, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	x0, [x8, x20, lsl #3]
	bl	_QTNTernary
	add	x20, x20, #1
	ldrsw	x24, [x19, #8]
	cmp	x20, x24
	b.lt	LBB0_3
; %bb.4:
	ldr	x8, [x19, #16]
LBB0_5:
	ldr	x8, [x8, #32]
Lloh2:
	adrp	x9, _OP_AND@GOTPAGE
Lloh3:
	ldr	x9, [x9, _OP_AND@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _OP_OR@GOTPAGE
Lloh6:
	ldr	x10, [x10, _OP_OR@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
	ccmp	w24, #1, #8, eq
	b.ge	LBB0_7
LBB0_6:
	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_7:
	mov	w22, #0
Lloh8:
	adrp	x23, _QTN_NEEDFREE@GOTPAGE
Lloh9:
	ldr	x23, [x23, _QTN_NEEDFREE@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x20
	bl	_pfree
	ldr	w24, [x19, #8]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	w22, w22, #1
	cmp	w24, w22
	b.le	LBB0_6
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #24]
	ldr	x20, [x0, w22, sxtw #3]
	ldr	x8, [x20, #16]
	ldr	x9, [x8]
	ldr	x10, [x21]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x9, [x19, #16]
	ldr	x9, [x9, #32]
	ldr	x8, [x8, #32]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	sxtw	x25, w22
	ldr	w8, [x20, #8]
	add	w8, w24, w8
	sub	w8, w8, #1
	str	w8, [x19, #8]
	lsl	w1, w8, #3
	bl	_repalloc
	str	x0, [x19, #24]
	add	w8, w22, #1
	cmp	w8, w24
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x8, x0, x25, lsl #3
	ldrsw	x9, [x20, #8]
	add	x0, x8, x9, lsl #3
	add	x1, x8, #8
	mvn	w8, w22
	add	w8, w24, w8
	lsl	w2, w8, #3
	bl	_memmove
	ldr	x0, [x19, #24]
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=1
	add	x0, x0, x25, lsl #3
	ldr	x1, [x20, #24]
	ldr	w8, [x20, #8]
	lsl	w2, w8, #3
	bl	_memcpy
	ldp	w8, w9, [x20, #8]
	add	w8, w22, w8
	sub	w22, w8, #1
	ldr	w8, [x23]
	tst	w8, w9
	b.eq	LBB0_8
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [x20, #16]
	bl	_pfree
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_QI_OPR,8,3                     ; @QI_OPR
	.comm	_OP_AND,8,3                     ; @OP_AND
	.comm	_OP_OR,8,3                      ; @OP_OR
	.comm	_QTN_NEEDFREE,4,2               ; @QTN_NEEDFREE
.subsections_via_symbols
