	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rs6000_split_compare_and_swapqhi ## -- Begin function rs6000_split_compare_and_swapqhi
	.p2align	4, 0x90
_rs6000_split_compare_and_swapqhi:      ## @rs6000_split_compare_and_swapqhi
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movl	%r8d, %r14d
	movl	%r8d, -64(%rbp)                 ## 4-byte Spill
	movl	%ecx, -72(%rbp)                 ## 4-byte Spill
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%edi, -56(%rbp)                 ## 4-byte Spill
	movq	_CCmode@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CR0_REGNO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_gen_rtx_REG
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_gen_memory_barrier
	movl	%eax, %edi
	callq	_emit_insn
	movq	_VOIDmode@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	xorl	%eax, %eax
	callq	_gen_label_rtx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_gen_rtx_LABEL_REF
	movl	%eax, %ebx
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	(%r15), %r13d
	xorl	%eax, %eax
	callq	_gen_label_rtx
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_gen_rtx_LABEL_REF
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_XEXP
	movl	%eax, %edi
	callq	_emit_label
	movq	_SImode@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_emit_load_locked
	movl	(%rbx), %ebx
	movl	$2, %edi
	movl	%r12d, %esi
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edx
	callq	_gen_rtvec
	movq	_UNSPEC_AND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_gen_rtx_UNSPEC
	movl	%ebx, %edi
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_gen_rtx_SET
	movl	%eax, %edi
	callq	_emit_insn
	movq	_CCmode@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_gen_rtx_COMPARE
	movq	%r15, %rbx
	movl	(%r15), %edi
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_gen_rtx_SET
	movl	%eax, %edi
	callq	_emit_insn
	movl	(%rbx), %edi
	movq	_const0_rtx@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %esi
	callq	_gen_rtx_NE
	movl	%eax, %edi
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	callq	_emit_unlikely_jump
	movq	_SImode@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	movl	%r13d, %esi
	callq	_gen_rtx_NOT
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_gen_rtx_AND
	movl	%ebx, %edi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_gen_rtx_SET
	movl	%eax, %edi
	callq	_emit_insn
	movl	%r12d, %edi
	movl	%r12d, %esi
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	callq	_gen_iorsi3
	movl	%eax, %edi
	callq	_emit_insn
	movq	_SImode@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	callq	_emit_store_conditional
	movq	_VOIDmode@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_const0_rtx@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %esi
	callq	_gen_rtx_NE
	movl	%eax, %edi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_emit_unlikely_jump
	xorl	%eax, %eax
	callq	_gen_isync
	movl	%eax, %edi
	callq	_emit_insn
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_XEXP
	movl	%eax, %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_emit_label                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CCmode,4,2                     ## @CCmode
	.comm	_CR0_REGNO,4,2                  ## @CR0_REGNO
	.comm	_VOIDmode,4,2                   ## @VOIDmode
	.comm	_SImode,4,2                     ## @SImode
	.comm	_UNSPEC_AND,4,2                 ## @UNSPEC_AND
	.comm	_const0_rtx,4,2                 ## @const0_rtx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rs6000_split_compare_and_swapqhi ; -- Begin function rs6000_split_compare_and_swapqhi
	.p2align	2
_rs6000_split_compare_and_swapqhi:      ; @rs6000_split_compare_and_swapqhi
	.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	x19, x5
	mov	x28, x4
	stp	w4, w3, [sp, #8]                ; 8-byte Folded Spill
	mov	x26, x2
	mov	x25, x1
	mov	x27, x0
Lloh0:
	adrp	x8, _CCmode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CCmode@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _CR0_REGNO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CR0_REGNO@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_gen_rtx_REG
	mov	x21, x0
	bl	_gen_memory_barrier
	bl	_emit_insn
Lloh6:
	adrp	x22, _VOIDmode@GOTPAGE
Lloh7:
	ldr	x22, [x22, _VOIDmode@GOTPAGEOFF]
	ldr	w23, [x22]
	bl	_gen_label_rtx
	mov	x1, x0
	mov	x0, x23
	bl	_gen_rtx_LABEL_REF
	mov	x24, x0
	ldr	w23, [x22]
	bl	_gen_label_rtx
	mov	x1, x0
	mov	x0, x23
	bl	_gen_rtx_LABEL_REF
	mov	x23, x0
	mov	x0, x24
	mov	w1, #0
	bl	_XEXP
	bl	_emit_label
Lloh8:
	adrp	x20, _SImode@GOTPAGE
Lloh9:
	ldr	x20, [x20, _SImode@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	x1, x19
	mov	x2, x28
	bl	_emit_load_locked
	ldr	w28, [x20]
	mov	w0, #2
	mov	x1, x19
	mov	x2, x25
	bl	_gen_rtvec
	mov	x1, x0
Lloh10:
	adrp	x8, _UNSPEC_AND@GOTPAGE
Lloh11:
	ldr	x8, [x8, _UNSPEC_AND@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x28
	bl	_gen_rtx_UNSPEC
	mov	x2, x0
	mov	x0, x28
	mov	x1, x27
	bl	_gen_rtx_SET
	bl	_emit_insn
Lloh13:
	adrp	x8, _CCmode@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CCmode@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	x1, x27
	mov	x2, x26
	bl	_gen_rtx_COMPARE
	mov	x2, x0
	ldr	w0, [x22]
	mov	x1, x21
	bl	_gen_rtx_SET
	bl	_emit_insn
	ldr	w0, [x22]
Lloh16:
	adrp	x27, _const0_rtx@GOTPAGE
Lloh17:
	ldr	x27, [x27, _const0_rtx@GOTPAGEOFF]
	ldr	w2, [x27]
	mov	x1, x21
	bl	_gen_rtx_NE
	mov	x1, x23
	bl	_emit_unlikely_jump
	ldr	w26, [x20]
	mov	x0, x26
	mov	x1, x25
	bl	_gen_rtx_NOT
	mov	x1, x0
	mov	x0, x26
	mov	x2, x19
	bl	_gen_rtx_AND
	mov	x2, x0
	mov	x0, x26
	mov	x1, x19
	bl	_gen_rtx_SET
	bl	_emit_insn
	mov	x0, x19
	mov	x1, x19
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	bl	_gen_iorsi3
	bl	_emit_insn
	ldr	w0, [x20]
	mov	x1, x21
	ldr	w2, [sp, #8]                    ; 4-byte Folded Reload
	mov	x3, x19
	bl	_emit_store_conditional
	ldr	w0, [x22]
	ldr	w2, [x27]
	mov	x1, x21
	bl	_gen_rtx_NE
	mov	x1, x24
	bl	_emit_unlikely_jump
	bl	_gen_isync
	bl	_emit_insn
	mov	x0, x23
	mov	w1, #0
	bl	_XEXP
	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	_emit_label
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.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	_CCmode,4,2                     ; @CCmode
	.comm	_CR0_REGNO,4,2                  ; @CR0_REGNO
	.comm	_VOIDmode,4,2                   ; @VOIDmode
	.comm	_SImode,4,2                     ; @SImode
	.comm	_UNSPEC_AND,4,2                 ; @UNSPEC_AND
	.comm	_const0_rtx,4,2                 ; @const0_rtx
.subsections_via_symbols
