	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rs6000_emit_minmax             ## -- Begin function rs6000_emit_minmax
	.p2align	4, 0x90
_rs6000_emit_minmax:                    ## @rs6000_emit_minmax
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	%rdx, %rdi
	callq	_GET_MODE
                                        ## kill: def $eax killed $eax def $rax
	movq	_SMAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_SMIN@GOTPCREL(%rip), %rdi
	movq	_GE@GOTPCREL(%rip), %rdx
	movq	%rdx, %rsi
	cmpl	%ebx, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	_GEU@GOTPCREL(%rip), %rsi
LBB0_2:
	cmpl	%ebx, %ecx
	cmoveq	%rdx, %rsi
	movl	(%rsi), %esi
	je	LBB0_4
## %bb.3:
	movq	_UMAX@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	je	LBB0_4
## %bb.5:
	subq	$8, %rsp
	movq	%r14, %rdi
	movq	%r12, %rdx
	movq	%r15, %rcx
	movl	%eax, %r8d
	movq	%r15, %r9
	pushq	$0
	pushq	%rax
	pushq	%r12
	jmp	LBB0_6
LBB0_4:
	subq	$8, %rsp
	movq	%r14, %rdi
	movq	%r12, %rdx
	movq	%r15, %rcx
	movl	%eax, %r8d
	movq	%r12, %r9
	pushq	$0
	pushq	%rax
	pushq	%r15
LBB0_6:
	callq	_emit_conditional_move
	addq	$32, %rsp
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_gcc_assert
	cmpq	%r14, %rbx
	jne	LBB0_8
## %bb.7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_emit_move_insn                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SMAX,4,2                       ## @SMAX
	.comm	_SMIN,4,2                       ## @SMIN
	.comm	_GE,4,2                         ## @GE
	.comm	_GEU,4,2                        ## @GEU
	.comm	_UMAX,4,2                       ## @UMAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rs6000_emit_minmax             ; -- Begin function rs6000_emit_minmax
	.p2align	2
_rs6000_emit_minmax:                    ; @rs6000_emit_minmax
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	mov	x0, x2
	bl	_GET_MODE
	mov	x4, x0
Lloh0:
	adrp	x8, _SMAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SMIN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SMIN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, w22
	ccmp	w8, w22, #4, ne
Lloh6:
	adrp	x9, _GE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GE@GOTPAGEOFF]
Lloh8:
	adrp	x10, _GEU@GOTPAGE
Lloh9:
	ldr	x10, [x10, _GEU@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	ldr	w1, [x9]
Lloh10:
	adrp	x9, _UMAX@GOTPAGE
Lloh11:
	ldr	x9, [x9, _UMAX@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w8, w22
	ccmp	w9, w22, #4, ne
	b.ne	LBB0_2
; %bb.1:
	str	wzr, [sp]
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
	mov	x5, x21
	mov	x6, x20
	b	LBB0_3
LBB0_2:
	str	wzr, [sp]
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
	mov	x5, x20
	mov	x6, x21
LBB0_3:
	mov	x7, x4
	bl	_emit_conditional_move
	mov	x20, x0
	bl	_gcc_assert
	cmp	x20, x19
	b.ne	LBB0_5
; %bb.4:
	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
	add	sp, sp, #64
	ret
LBB0_5:
	mov	x0, x19
	mov	x1, 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
	add	sp, sp, #64
	b	_emit_move_insn
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SMAX,4,2                       ; @SMAX
	.comm	_SMIN,4,2                       ; @SMIN
	.comm	_GE,4,2                         ; @GE
	.comm	_GEU,4,2                        ; @GEU
	.comm	_UMAX,4,2                       ; @UMAX
.subsections_via_symbols
