	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ice_set_safe_mode_caps         ## -- Begin function ice_set_safe_mode_caps
	.p2align	4, 0x90
_ice_set_safe_mode_caps:                ## @ice_set_safe_mode_caps
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	addq	$36, %rdi
	movl	56(%r15), %ebx
	movups	40(%r15), %xmm0
	movaps	%xmm0, -48(%rbp)                ## 16-byte Spill
	xorl	%esi, %esi
	movl	$36, %edx
	callq	_memset
	movaps	-48(%rbp), %xmm0                ## 16-byte Reload
	movups	%xmm0, 40(%r15)
	movl	%ebx, 56(%r15)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 60(%r15)
	movl	$2, 68(%r15)
	movl	$1, 36(%r15)
	movl	4(%r15), %r14d
	movl	20(%r15), %ebx
	movups	4(%r15), %xmm0
	movaps	%xmm0, -48(%rbp)                ## 16-byte Spill
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$36, %edx
	callq	_memset
	movaps	-48(%rbp), %xmm0                ## 16-byte Reload
	movups	%xmm0, 4(%r15)
	movl	%ebx, 20(%r15)
	xorl	%edi, %edi
	callq	_BIT
	xorl	%ebx, %ebx
	testl	%r14d, %eax
	setne	%bl
	movl	$1, %edi
	callq	_BIT
	andl	%r14d, %eax
	cmpl	$1, %eax
	sbbl	$-1, %ebx
	movl	$2, %edi
	callq	_BIT
	andl	%r14d, %eax
	cmpl	$1, %eax
	sbbl	$-1, %ebx
	movl	$3, %edi
	callq	_BIT
	andl	%r14d, %eax
	cmpl	$1, %eax
	sbbl	$-1, %ebx
	movl	$4, %edi
	callq	_BIT
	andl	%r14d, %eax
	cmpl	$1, %eax
	sbbl	$-1, %ebx
	movl	$5, %edi
	callq	_BIT
	andl	%r14d, %eax
	cmpl	$1, %eax
	sbbl	$-1, %ebx
	movl	$6, %edi
	callq	_BIT
	andl	%r14d, %eax
	cmpl	$1, %eax
	sbbl	$-1, %ebx
	movl	$7, %edi
	callq	_BIT
	andl	%r14d, %eax
	cmpl	$1, %eax
	sbbl	$-1, %ebx
	movl	%ebx, 24(%r15)
	movl	%ebx, 28(%r15)
	addl	%ebx, %ebx
	movl	%ebx, 32(%r15)
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_MAX_FUNCS,8,3              ## @ICE_MAX_FUNCS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ice_set_safe_mode_caps         ; -- Begin function ice_set_safe_mode_caps
	.p2align	2
_ice_set_safe_mode_caps:                ; @ice_set_safe_mode_caps
	.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	x19, x0
	add	x0, x0, #36
	ldr	w20, [x19, #56]
	ldur	q0, [x19, #40]
	str	q0, [sp]                        ; 16-byte Folded Spill
	mov	w1, #0
	mov	w2, #36
	bl	_memset
	ldr	q0, [sp]                        ; 16-byte Folded Reload
	stur	q0, [x19, #40]
	str	w20, [x19, #56]
	movi.2s	v0, #1
	stur	d0, [x19, #60]
	mov	w8, #2
	str	w8, [x19, #68]
	mov	w8, #1
	str	w8, [x19, #36]
	ldr	w20, [x19, #20]
	ldur	q0, [x19, #4]
	str	q0, [sp]                        ; 16-byte Folded Spill
	mov	x0, x19
	mov	w1, #0
	mov	w2, #36
	bl	_memset
	ldr	q0, [sp]                        ; 16-byte Folded Reload
	stur	q0, [x19, #4]
	str	w20, [x19, #20]
	mov	x0, #0
	bl	_BIT
	mov	x20, x0
	ldr	q0, [sp]                        ; 16-byte Folded Reload
	fmov	w21, s0
	mov	w0, #1
	bl	_BIT
	tst	w0, w21
	cset	w8, ne
	tst	w20, w21
	cinc	w20, w8, ne
	mov	w0, #2
	bl	_BIT
	tst	w0, w21
	cinc	w20, w20, ne
	mov	w0, #3
	bl	_BIT
	tst	w0, w21
	cinc	w20, w20, ne
	mov	w0, #4
	bl	_BIT
	tst	w0, w21
	cinc	w20, w20, ne
	mov	w0, #5
	bl	_BIT
	tst	w0, w21
	cinc	w20, w20, ne
	mov	w0, #6
	bl	_BIT
	tst	w0, w21
	cinc	w20, w20, ne
	mov	w0, #7
	bl	_BIT
	tst	w0, w21
	cinc	w8, w20, ne
	stp	w8, w8, [x19, #24]
	lsl	w8, w8, #1
	str	w8, [x19, #32]
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_MAX_FUNCS,8,3              ; @ICE_MAX_FUNCS
.subsections_via_symbols
