	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rs6000_emit_eh_reg_restore     ## -- Begin function rs6000_emit_eh_reg_restore
	.p2align	4, 0x90
_rs6000_emit_eh_reg_restore:            ## @rs6000_emit_eh_reg_restore
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movl	%edi, %r14d
	xorl	%eax, %eax
	callq	_rs6000_stack_info
	cmpq	$0, 24(%rax)
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	_stack_pointer_rtx@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_frame_pointer_needed@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_current_function_calls_alloca@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movslq	(%rbx), %rax
	cmpq	$32768, %rax                    ## imm = 0x8000
	jl	LBB0_4
LBB0_3:
	movq	_Pmode@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gen_frame_mem
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_emit_move_insn
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_6:
	movq	_Pmode@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LINK_REGISTER_REGNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_gen_rtx_REG
	jmp	LBB0_7
LBB0_4:
	movq	16(%rbx), %rcx
	testq	%rcx, %rcx
	cmoveq	%rcx, %rax
	movl	%esi, %r15d
LBB0_5:
	addq	8(%rbx), %rax
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_plus_constant
	movq	_Pmode@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_gen_frame_mem
LBB0_7:
	movl	%eax, %edi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_emit_move_insn                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_stack_pointer_rtx,4,2          ## @stack_pointer_rtx
	.comm	_frame_pointer_needed,8,3       ## @frame_pointer_needed
	.comm	_current_function_calls_alloca,8,3 ## @current_function_calls_alloca
	.comm	_Pmode,4,2                      ## @Pmode
	.comm	_LINK_REGISTER_REGNUM,4,2       ## @LINK_REGISTER_REGNUM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rs6000_emit_eh_reg_restore     ; -- Begin function rs6000_emit_eh_reg_restore
	.p2align	2
_rs6000_emit_eh_reg_restore:            ; @rs6000_emit_eh_reg_restore
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x19, x0
	bl	_rs6000_stack_info
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x8, _stack_pointer_rtx@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stack_pointer_rtx@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _frame_pointer_needed@GOTPAGE
Lloh4:
	ldr	x8, [x8, _frame_pointer_needed@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _current_function_calls_alloca@GOTPAGE
Lloh7:
	ldr	x9, [x9, _current_function_calls_alloca@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x22, _Pmode@GOTPAGE
Lloh10:
	ldr	x22, [x22, _Pmode@GOTPAGEOFF]
	orr	x8, x8, x9
	cbnz	x8, LBB0_3
; %bb.2:
	ldrsw	x8, [x21]
	cmp	w8, #8, lsl #12                 ; =32768
	b.lt	LBB0_5
LBB0_3:
	ldr	w0, [x22]
	bl	_gen_frame_mem
	mov	x1, x0
	mov	x0, x20
	bl	_emit_move_insn
	mov	x8, #0
	b	LBB0_6
LBB0_4:
Lloh11:
	adrp	x8, _Pmode@GOTPAGE
Lloh12:
	ldr	x8, [x8, _Pmode@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _LINK_REGISTER_REGNUM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LINK_REGISTER_REGNUM@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_gen_rtx_REG
	b	LBB0_7
LBB0_5:
	ldr	x9, [x21, #16]
	cmp	x9, #0
	csel	x8, xzr, x8, eq
	mov	x20, x1
LBB0_6:
	ldr	x9, [x21, #8]
	add	x1, x9, x8
	mov	x0, x20
	bl	_plus_constant
	mov	x1, x0
	ldr	w0, [x22]
	bl	_gen_frame_mem
LBB0_7:
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_emit_move_insn
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_stack_pointer_rtx,4,2          ; @stack_pointer_rtx
	.comm	_frame_pointer_needed,8,3       ; @frame_pointer_needed
	.comm	_current_function_calls_alloca,8,3 ; @current_function_calls_alloca
	.comm	_Pmode,4,2                      ; @Pmode
	.comm	_LINK_REGISTER_REGNUM,4,2       ; @LINK_REGISTER_REGNUM
.subsections_via_symbols
