	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function optimize_minmax_comparison
_optimize_minmax_comparison:            ## @optimize_minmax_comparison
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %ebx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
                                        ## kill: def $edi killed $edi def $rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, %edi
	callq	_STRIP_SIGN_NOPS
	movl	%ebx, %edi
	callq	_TREE_CODE
	movq	%rax, %r13
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_TREE_OPERAND
	movl	%eax, %r15d
	movl	%eax, %edi
	movl	%r12d, %esi
	callq	_tree_int_cst_equal
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	movl	%r12d, %esi
	callq	_tree_int_cst_lt
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_TREE_OPERAND
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_MIN_EXPR@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_MAX_EXPR@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_9
LBB0_2:
	movl	%r12d, %edi
	callq	_TREE_CODE
	movq	_INTEGER_CST@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_9
## %bb.3:
	movl	%r12d, %edi
	callq	_TREE_CONSTANT_OVERFLOW
	testq	%rax, %rax
	jne	LBB0_9
## %bb.4:
	movl	%r15d, %edi
	callq	_TREE_CODE
	cmpq	(%r14), %rax
	jne	LBB0_9
## %bb.5:
	movl	%r15d, %edi
	callq	_TREE_CONSTANT_OVERFLOW
	testq	%rax, %rax
	je	LBB0_6
LBB0_9:
	movq	_NULL_TREE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leal	-128(%rdi), %eax
	cmpl	$5, %eax
	ja	LBB0_9
## %bb.7:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_8:
                                        ## kill: def $edi killed $edi killed $rdi
	xorl	%esi, %esi
	callq	_invert_tree_comparison
	movl	%eax, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	%r12d, %ecx
	callq	_optimize_minmax_comparison
	testl	%eax, %eax
	je	LBB0_9
## %bb.31:
	movl	%eax, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_invert_truthvalue              ## TAILCALL
LBB0_25:
	movq	_MAX_EXPR@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_29
## %bb.26:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	orl	%eax, -56(%rbp)                 ## 4-byte Folded Spill
	jne	LBB0_27
## %bb.28:
	movq	_integer_one_node@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_10:
	movq	_TRUTH_ORIF_EXPR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	$133, %edi
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %esi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	callq	_optimize_minmax_comparison
	movl	%eax, %r15d
	movl	$131, %edi
	movl	%r13d, %esi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	callq	_optimize_minmax_comparison
	movl	%r14d, %edi
	movl	%r13d, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	jmp	LBB0_15
LBB0_11:
	movq	_MAX_EXPR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%r13d, %eax
	jne	LBB0_16
## %bb.12:
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_16
## %bb.13:
	movl	$130, %edi
	jmp	LBB0_14
LBB0_29:
	movq	_MIN_EXPR@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_27
## %bb.30:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	orl	%eax, -56(%rbp)                 ## 4-byte Folded Spill
	jne	LBB0_20
LBB0_27:
	movl	$131, %edi
	jmp	LBB0_14
LBB0_16:
	cmpl	%r13d, %eax
	jne	LBB0_19
## %bb.17:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_19
LBB0_18:
	movl	$133, %edi
	jmp	LBB0_14
LBB0_19:
	cmpl	%r13d, %eax
	jne	LBB0_22
LBB0_20:
	movq	_integer_zero_node@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_omit_one_operand               ## TAILCALL
LBB0_22:
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_24
## %bb.23:
	movl	$132, %edi
LBB0_14:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fold_build2                    ## TAILCALL
LBB0_24:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_20
	jmp	LBB0_18
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_25
	.long	L0_0_set_10
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_MIN_EXPR,4,2                   ## @MIN_EXPR
	.comm	_MAX_EXPR,4,2                   ## @MAX_EXPR
	.comm	_INTEGER_CST,8,3                ## @INTEGER_CST
	.comm	_NULL_TREE,4,2                  ## @NULL_TREE
	.comm	_TRUTH_ORIF_EXPR,4,2            ## @TRUTH_ORIF_EXPR
	.comm	_integer_zero_node,4,2          ## @integer_zero_node
	.comm	_integer_one_node,4,2           ## @integer_one_node
	.no_dead_strip	_optimize_minmax_comparison
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function optimize_minmax_comparison
_optimize_minmax_comparison:            ; @optimize_minmax_comparison
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x22, x2
	str	w1, [sp, #12]                   ; 4-byte Folded Spill
	mov	x26, x0
	mov	x0, x2
	bl	_STRIP_SIGN_NOPS
	mov	x0, x22
	bl	_TREE_CODE
	mov	x23, x0
	mov	x0, x22
	mov	w1, #1
	bl	_TREE_OPERAND
	mov	x27, x0
	mov	x1, x20
	bl	_tree_int_cst_equal
	mov	x24, x0
	mov	x0, x27
	mov	x1, x20
	bl	_tree_int_cst_lt
	mov	x25, x0
	mov	x0, x22
	mov	w1, #0
	bl	_TREE_OPERAND
	str	w0, [sp, #8]                    ; 4-byte Folded Spill
Lloh0:
	adrp	x28, _MIN_EXPR@GOTPAGE
Lloh1:
	ldr	x28, [x28, _MIN_EXPR@GOTPAGEOFF]
	ldr	w8, [x28]
Lloh2:
	adrp	x19, _MAX_EXPR@GOTPAGE
Lloh3:
	ldr	x19, [x19, _MAX_EXPR@GOTPAGEOFF]
	ldr	w9, [x19]
	cmp	w8, w23
	ccmp	w9, w23, #4, ne
	b.ne	LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_TREE_CODE
Lloh4:
	adrp	x21, _INTEGER_CST@GOTPAGE
Lloh5:
	ldr	x21, [x21, _INTEGER_CST@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_TREE_CONSTANT_OVERFLOW
	cbnz	x0, LBB0_5
; %bb.3:
	mov	x0, x27
	bl	_TREE_CODE
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x27
	bl	_TREE_CONSTANT_OVERFLOW
	cbz	x0, LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _NULL_TREE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NULL_TREE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
	sub	w8, w26, #128
	cmp	w8, #5
	b.hi	LBB0_5
; %bb.7:
Lloh9:
	adrp	x9, lJTI0_0@PAGE
Lloh10:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_8
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:
	mov	x0, x26
	mov	w1, #0
	bl	_invert_tree_comparison
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	mov	x2, x22
	mov	x3, x20
	bl	_optimize_minmax_comparison
	cbz	w0, LBB0_5
; %bb.9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_invert_truthvalue
LBB0_10:
	ldr	w8, [x19]
	cmp	w8, w23
	b.ne	LBB0_17
; %bb.11:
	orr	w8, w24, w25
	cbnz	w8, LBB0_19
; %bb.12:
Lloh11:
	adrp	x8, _integer_one_node@GOTPAGE
Lloh12:
	ldr	x8, [x8, _integer_one_node@GOTPAGEOFF]
	b	LBB0_25
LBB0_13:
Lloh13:
	adrp	x8, _TRUTH_ORIF_EXPR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TRUTH_ORIF_EXPR@GOTPAGEOFF]
Lloh15:
	ldr	w21, [x8]
	mov	w0, #133
	ldr	w19, [sp, #12]                  ; 4-byte Folded Reload
	mov	x1, x19
	mov	x2, x22
	mov	x3, x20
	bl	_optimize_minmax_comparison
	mov	x23, x0
	mov	w0, #131
	mov	x1, x19
	mov	x2, x22
	mov	x3, x20
	bl	_optimize_minmax_comparison
	mov	x3, x0
	mov	x0, x21
	mov	x1, x19
	mov	x2, x23
	b	LBB0_29
LBB0_14:
	ldr	w8, [x19]
	cmp	w8, w23
	b.ne	LBB0_20
; %bb.15:
	cbz	w24, LBB0_20
; %bb.16:
	mov	w0, #130
	b	LBB0_28
LBB0_17:
	ldr	w8, [x28]
	cmp	w8, w23
	b.ne	LBB0_19
; %bb.18:
	orr	w8, w24, w25
	cbnz	w8, LBB0_24
LBB0_19:
	mov	w0, #131
	b	LBB0_28
LBB0_20:
	cmp	w8, w23
	b.ne	LBB0_23
; %bb.21:
	cbz	w25, LBB0_23
LBB0_22:
	mov	w0, #133
	b	LBB0_28
LBB0_23:
	cmp	w8, w23
	b.ne	LBB0_26
LBB0_24:
Lloh16:
	adrp	x8, _integer_zero_node@GOTPAGE
Lloh17:
	ldr	x8, [x8, _integer_zero_node@GOTPAGEOFF]
LBB0_25:
	ldr	w1, [x8]
	ldp	w2, w0, [sp, #8]                ; 8-byte Folded Reload
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_omit_one_operand
LBB0_26:
	cbz	w24, LBB0_30
; %bb.27:
	mov	w0, #132
LBB0_28:
	ldp	w2, w1, [sp, #8]                ; 8-byte Folded Reload
	mov	x3, x20
LBB0_29:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_fold_build2
LBB0_30:
	cbnz	w25, LBB0_24
	b	LBB0_22
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_13-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
                                        ; -- End function
	.comm	_MIN_EXPR,4,2                   ; @MIN_EXPR
	.comm	_MAX_EXPR,4,2                   ; @MAX_EXPR
	.comm	_INTEGER_CST,8,3                ; @INTEGER_CST
	.comm	_NULL_TREE,4,2                  ; @NULL_TREE
	.comm	_TRUTH_ORIF_EXPR,4,2            ; @TRUTH_ORIF_EXPR
	.comm	_integer_zero_node,4,2          ; @integer_zero_node
	.comm	_integer_one_node,4,2           ; @integer_one_node
	.no_dead_strip	_optimize_minmax_comparison
.subsections_via_symbols
