	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_compute_save_reg_mask
_arm_compute_save_reg_mask:             ## @arm_compute_save_reg_mask
	.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
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_arm_current_func_type
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_NAKED
	testq	%rax, %rax
	jne	LBB0_24
## %bb.1:
	movq	_frame_pointer_needed@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.3:
	movq	_ARM_HARD_FRAME_POINTER_REGNUM@GOTPCREL(%rip), %rax
	movq	_IP_REGNUM@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %ebx
	shll	%cl, %ebx
	movb	(%rax), %al
	btsl	%eax, %ebx
	movq	_LR_REGNUM@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %ebx
	movq	_PC_REGNUM@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %ebx
	jmp	LBB0_4
LBB0_2:
	xorl	%ebx, %ebx
LBB0_4:
	movq	%r14, %rdi
	callq	_IS_VOLATILE
	testq	%rax, %rax
	je	LBB0_5
LBB0_24:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%eax, %eax
	callq	_arm_compute_save_reg0_reg12_mask
	movl	%eax, %r15d
	orl	%ebx, %r15d
	movq	_regs_ever_live@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_LR_REGNUM@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_6
LBB0_10:
	btsl	%ecx, %r15d
LBB0_11:
	movq	_cfun@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	$-2, %edx
                                        ## kill: def $cl killed $cl killed $rcx
	roll	%cl, %edx
	movq	(%rax), %rax
	xorl	%ebx, %ebx
	cmpq	$1, 8(%rax)
	sbbl	%ebx, %ebx
	orl	%edx, %ebx
	andl	%r15d, %ebx
	movq	_TARGET_REALLY_IWMMXT@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_24
## %bb.12:
	movl	%ebx, %edi
	callq	_bit_count
	movl	%eax, %r14d
	movq	_current_function_pretend_args_size@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ARM_NUM_INTS
	addl	%r14d, %eax
	testb	$1, %al
	je	LBB0_24
## %bb.13:
	movl	$16, %eax
	testb	$16, %bl
	je	LBB0_23
## %bb.14:
	movl	$32, %eax
	testb	$32, %bl
	je	LBB0_23
## %bb.15:
	movl	$64, %eax
	testb	$64, %bl
	je	LBB0_23
## %bb.16:
	movl	$128, %eax
	testb	$-128, %bl
	je	LBB0_23
## %bb.17:
	movl	$256, %eax                      ## imm = 0x100
	testl	$256, %ebx                      ## imm = 0x100
	je	LBB0_23
## %bb.18:
	movl	$512, %eax                      ## imm = 0x200
	testl	$512, %ebx                      ## imm = 0x200
	je	LBB0_23
## %bb.19:
	movl	$1024, %eax                     ## imm = 0x400
	testl	$1024, %ebx                     ## imm = 0x400
	je	LBB0_23
## %bb.20:
	movl	$2048, %eax                     ## imm = 0x800
	testl	$2048, %ebx                     ## imm = 0x800
	je	LBB0_23
## %bb.21:
	movl	$4096, %eax                     ## imm = 0x1000
	testl	$4096, %ebx                     ## imm = 0x1000
	je	LBB0_23
## %bb.22:
	movq	(%r12), %rax
	movq	(%rax), %rax
	movl	$1, (%rax)
	movl	$8, %eax
LBB0_23:
	orl	%eax, %ebx
	jmp	LBB0_24
LBB0_6:
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.7:
	movq	_optimize_size@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.8:
	movq	%r14, %rdi
	callq	_ARM_FUNC_TYPE
	movq	_ARM_FT_NORMAL@GOTPCREL(%rip), %rdx
	movl	(%rbx), %ecx
	cmpq	(%rdx), %rax
	jne	LBB0_11
## %bb.9:
	movq	_current_function_calls_eh_return@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_frame_pointer_needed,8,3       ## @frame_pointer_needed
	.comm	_ARM_HARD_FRAME_POINTER_REGNUM,4,2 ## @ARM_HARD_FRAME_POINTER_REGNUM
	.comm	_IP_REGNUM,4,2                  ## @IP_REGNUM
	.comm	_LR_REGNUM,4,2                  ## @LR_REGNUM
	.comm	_PC_REGNUM,4,2                  ## @PC_REGNUM
	.comm	_regs_ever_live,8,3             ## @regs_ever_live
	.comm	_optimize_size,8,3              ## @optimize_size
	.comm	_ARM_FT_NORMAL,8,3              ## @ARM_FT_NORMAL
	.comm	_current_function_calls_eh_return,4,2 ## @current_function_calls_eh_return
	.comm	_cfun,8,3                       ## @cfun
	.comm	_TARGET_REALLY_IWMMXT,8,3       ## @TARGET_REALLY_IWMMXT
	.comm	_current_function_pretend_args_size,4,2 ## @current_function_pretend_args_size
	.no_dead_strip	_arm_compute_save_reg_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_compute_save_reg_mask
_arm_compute_save_reg_mask:             ; @arm_compute_save_reg_mask
	.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
	bl	_arm_current_func_type
	mov	x20, x0
	bl	_IS_NAKED
	cbz	x0, LBB0_2
; %bb.1:
	mov	w19, #0
	b	LBB0_6
LBB0_2:
Lloh0:
	adrp	x8, _frame_pointer_needed@GOTPAGE
Lloh1:
	ldr	x8, [x8, _frame_pointer_needed@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x21, _LR_REGNUM@GOTPAGE
Lloh4:
	ldr	x21, [x21, _LR_REGNUM@GOTPAGEOFF]
	cbz	x8, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _ARM_HARD_FRAME_POINTER_REGNUM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ARM_HARD_FRAME_POINTER_REGNUM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	mov	w9, #1
Lloh8:
	adrp	x10, _IP_REGNUM@GOTPAGE
Lloh9:
	ldr	x10, [x10, _IP_REGNUM@GOTPAGEOFF]
	lsl	w8, w9, w8
Lloh10:
	ldr	w10, [x10]
	lsl	w10, w9, w10
	orr	w8, w10, w8
	ldr	w10, [x21]
	lsl	w10, w9, w10
	orr	w8, w8, w10
Lloh11:
	adrp	x10, _PC_REGNUM@GOTPAGE
Lloh12:
	ldr	x10, [x10, _PC_REGNUM@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w19, w8, w9
	b	LBB0_5
LBB0_4:
	mov	w19, #0
LBB0_5:
	mov	x0, x20
	bl	_IS_VOLATILE
	cbz	x0, LBB0_7
LBB0_6:
	mov	w0, w19
	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
	ret
LBB0_7:
	bl	_arm_compute_save_reg0_reg12_mask
	orr	w19, w0, w19
Lloh14:
	adrp	x8, _regs_ever_live@GOTPAGE
Lloh15:
	ldr	x8, [x8, _regs_ever_live@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x8]
	ldrsw	x8, [x21]
	ldr	x9, [x9, x8, lsl #3]
	cbz	x9, LBB0_13
LBB0_8:
	mov	w9, #1
	lsl	w9, w9, w8
	orr	w19, w9, w19
LBB0_9:
Lloh17:
	adrp	x21, _cfun@GOTPAGE
Lloh18:
	ldr	x21, [x21, _cfun@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	x9, [x9]
	ldr	x9, [x9, #8]
	mov	w10, #1
	lsl	w8, w10, w8
	cmp	x9, #0
	mov	w9, #-1
	csinv	w8, w9, w8, eq
	and	w19, w8, w19
Lloh19:
	adrp	x8, _TARGET_REALLY_IWMMXT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TARGET_REALLY_IWMMXT@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.10:
	mov	x0, x19
	bl	_bit_count
	mov	x20, x0
Lloh22:
	adrp	x8, _current_function_pretend_args_size@GOTPAGE
Lloh23:
	ldr	x8, [x8, _current_function_pretend_args_size@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_ARM_NUM_INTS
	add	w8, w0, w20
	tbz	w8, #0, LBB0_6
; %bb.11:
	tbnz	w19, #4, LBB0_17
; %bb.12:
	mov	w8, #16
	b	LBB0_34
LBB0_13:
	cbz	w19, LBB0_9
; %bb.14:
Lloh25:
	adrp	x9, _optimize_size@GOTPAGE
Lloh26:
	ldr	x9, [x9, _optimize_size@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cbz	x9, LBB0_9
; %bb.15:
	mov	x0, x20
	bl	_ARM_FUNC_TYPE
Lloh28:
	adrp	x8, _ARM_FT_NORMAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ARM_FT_NORMAL@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x8]
	ldr	w8, [x21]
	cmp	x0, x9
	b.ne	LBB0_9
; %bb.16:
Lloh31:
	adrp	x9, _current_function_calls_eh_return@GOTPAGE
Lloh32:
	ldr	x9, [x9, _current_function_calls_eh_return@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	cbz	w9, LBB0_8
	b	LBB0_9
LBB0_17:
	tbnz	w19, #5, LBB0_19
; %bb.18:
	mov	w8, #32
	b	LBB0_34
LBB0_19:
	tbnz	w19, #6, LBB0_21
; %bb.20:
	mov	w8, #64
	b	LBB0_34
LBB0_21:
	tbnz	w19, #7, LBB0_23
; %bb.22:
	mov	w8, #128
	b	LBB0_34
LBB0_23:
	tbnz	w19, #8, LBB0_25
; %bb.24:
	mov	w8, #256
	b	LBB0_34
LBB0_25:
	tbnz	w19, #9, LBB0_27
; %bb.26:
	mov	w8, #512
	b	LBB0_34
LBB0_27:
	tbnz	w19, #10, LBB0_29
; %bb.28:
	mov	w8, #1024
	b	LBB0_34
LBB0_29:
	tbnz	w19, #11, LBB0_31
; %bb.30:
	mov	w8, #2048
	b	LBB0_34
LBB0_31:
	tbnz	w19, #12, LBB0_33
; %bb.32:
	mov	w8, #4096
	b	LBB0_34
LBB0_33:
	ldr	x8, [x21]
	ldr	x8, [x8]
	mov	w9, #1
	str	w9, [x8]
	mov	w8, #8
LBB0_34:
	orr	w19, w8, w19
	b	LBB0_6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_frame_pointer_needed,8,3       ; @frame_pointer_needed
	.comm	_ARM_HARD_FRAME_POINTER_REGNUM,4,2 ; @ARM_HARD_FRAME_POINTER_REGNUM
	.comm	_IP_REGNUM,4,2                  ; @IP_REGNUM
	.comm	_LR_REGNUM,4,2                  ; @LR_REGNUM
	.comm	_PC_REGNUM,4,2                  ; @PC_REGNUM
	.comm	_regs_ever_live,8,3             ; @regs_ever_live
	.comm	_optimize_size,8,3              ; @optimize_size
	.comm	_ARM_FT_NORMAL,8,3              ; @ARM_FT_NORMAL
	.comm	_current_function_calls_eh_return,4,2 ; @current_function_calls_eh_return
	.comm	_cfun,8,3                       ; @cfun
	.comm	_TARGET_REALLY_IWMMXT,8,3       ; @TARGET_REALLY_IWMMXT
	.comm	_current_function_pretend_args_size,4,2 ; @current_function_pretend_args_size
	.no_dead_strip	_arm_compute_save_reg_mask
.subsections_via_symbols
