	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_arm_set_return_address         ## -- Begin function arm_set_return_address
	.p2align	4, 0x90
_arm_set_return_address:                ## @arm_set_return_address
	.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
	movl	%esi, %r15d
	movl	%edi, %r14d
	xorl	%eax, %eax
	callq	_arm_compute_save_reg_mask
	movq	_LR_REGNUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	$1, %edx
	shll	%cl, %edx
	movslq	%edx, %rdx
	testq	%rdx, %rax
	je	LBB0_1
## %bb.2:
	movq	_frame_pointer_needed@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_hard_frame_pointer_rtx@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$-4, %esi
	jmp	LBB0_8
LBB0_1:
	movq	_Pmode@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ecx, %esi
	callq	_gen_rtx_REG
	jmp	LBB0_9
LBB0_4:
	xorl	%eax, %eax
	callq	_arm_get_frame_offsets
	movl	(%rax), %ebx
	subl	4(%rax), %ebx
	addl	$-4, %ebx
	movq	_stack_pointer_rtx@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	cmpl	$4096, %ebx                     ## imm = 0x1000
	jl	LBB0_5
## %bb.6:
	movl	%ebx, %edi
	andl	$-4096, %edi                    ## imm = 0xF000
	callq	_GEN_INT
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_gen_addsi3
	movl	%eax, %edi
	callq	_emit_insn
	andl	$4095, %ebx                     ## imm = 0xFFF
	jmp	LBB0_7
LBB0_5:
	movl	%r12d, %r15d
LBB0_7:
	movl	%r15d, %edi
	movl	%ebx, %esi
LBB0_8:
	callq	_plus_constant
	movl	%eax, %esi
	movq	_Pmode@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gen_frame_mem
LBB0_9:
	movl	%eax, %edi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_emit_move_insn                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LR_REGNUM,4,2                  ## @LR_REGNUM
	.comm	_Pmode,4,2                      ## @Pmode
	.comm	_frame_pointer_needed,8,3       ## @frame_pointer_needed
	.comm	_hard_frame_pointer_rtx,4,2     ## @hard_frame_pointer_rtx
	.comm	_stack_pointer_rtx,4,2          ## @stack_pointer_rtx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_arm_set_return_address         ; -- Begin function arm_set_return_address
	.p2align	2
_arm_set_return_address:                ; @arm_set_return_address
	.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	_arm_compute_save_reg_mask
Lloh0:
	adrp	x8, _LR_REGNUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LR_REGNUM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w8, #1
	lsl	w8, w8, w1
	sxtw	x8, w8
	tst	x0, x8
	b.eq	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _frame_pointer_needed@GOTPAGE
Lloh4:
	ldr	x8, [x8, _frame_pointer_needed@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _hard_frame_pointer_rtx@GOTPAGE
Lloh7:
	ldr	x8, [x8, _hard_frame_pointer_rtx@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	w1, #-4
	b	LBB0_8
LBB0_3:
Lloh9:
	adrp	x8, _Pmode@GOTPAGE
Lloh10:
	ldr	x8, [x8, _Pmode@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_gen_rtx_REG
	b	LBB0_9
LBB0_4:
	bl	_arm_get_frame_offsets
	ldp	w8, w9, [x0]
	sub	w8, w8, w9
	sub	w21, w8, #4
Lloh12:
	adrp	x8, _stack_pointer_rtx@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stack_pointer_rtx@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x8]
	cmp	w21, #1, lsl #12                ; =4096
	b.lt	LBB0_6
; %bb.5:
	and	w0, w21, #0xfffff000
	bl	_GEN_INT
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_gen_addsi3
	bl	_emit_insn
	and	w21, w21, #0xfff
	b	LBB0_7
LBB0_6:
	mov	x20, x22
LBB0_7:
	mov	x0, x20
	mov	x1, x21
LBB0_8:
	bl	_plus_constant
	mov	x1, x0
Lloh15:
	adrp	x8, _Pmode@GOTPAGE
Lloh16:
	ldr	x8, [x8, _Pmode@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_gen_frame_mem
LBB0_9:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_LR_REGNUM,4,2                  ; @LR_REGNUM
	.comm	_Pmode,4,2                      ; @Pmode
	.comm	_frame_pointer_needed,8,3       ; @frame_pointer_needed
	.comm	_hard_frame_pointer_rtx,4,2     ; @hard_frame_pointer_rtx
	.comm	_stack_pointer_rtx,4,2          ; @stack_pointer_rtx
.subsections_via_symbols
