	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function daemon_set_rsa
_daemon_set_rsa:                        ## @daemon_set_rsa
	.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
	movq	%rdi, %r14
	movq	_daemon_vars@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_pthread_mutex_lock
	movq	_NEVERBLEED_TYPE_RSA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%r15), %rsi
	callq	_adjust_slots_reserved_size
	movl	20(%r15), %edi
	movl	24(%r15), %esi
	xorl	%edx, %edx
	callq	_bita_ffirst
	movq	%rax, %rbx
	movq	_SIZE_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_dief
LBB0_2:
	movl	20(%r15), %edi
	movq	%rbx, %rsi
	callq	_BITUNSET
	incl	16(%r15)
	movq	8(%r15), %rax
	movq	%r14, (%rax,%rbx,8)
	movq	%r14, %rdi
	callq	_RSA_up_ref
	movq	%r15, %rdi
	callq	_pthread_mutex_unlock
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_daemon_vars,32,3               ## @daemon_vars
	.comm	_NEVERBLEED_TYPE_RSA,4,2        ## @NEVERBLEED_TYPE_RSA
	.comm	_SIZE_MAX,8,3                   ## @SIZE_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no available slot for key"

	.no_dead_strip	_daemon_set_rsa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function daemon_set_rsa
_daemon_set_rsa:                        ; @daemon_set_rsa
	.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, x0
Lloh0:
	adrp	x19, _daemon_vars@GOTPAGE
Lloh1:
	ldr	x19, [x19, _daemon_vars@GOTPAGEOFF]
	mov	x0, x19
	bl	_pthread_mutex_lock
Lloh2:
	adrp	x8, _NEVERBLEED_TYPE_RSA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NEVERBLEED_TYPE_RSA@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x1, x19, #16
	bl	_adjust_slots_reserved_size
	ldp	w0, w1, [x19, #20]
	mov	w2, #0
	bl	_bita_ffirst
	mov	x21, x0
Lloh5:
	adrp	x8, _SIZE_MAX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SIZE_MAX@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dief
LBB0_2:
	ldr	w0, [x19, #20]
	mov	x1, x21
	bl	_BITUNSET
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	ldr	x8, [x19, #8]
	str	x20, [x8, x21, lsl #3]
	mov	x0, x20
	bl	_RSA_up_ref
	mov	x0, x19
	bl	_pthread_mutex_unlock
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_daemon_vars,32,3               ; @daemon_vars
	.comm	_NEVERBLEED_TYPE_RSA,4,2        ; @NEVERBLEED_TYPE_RSA
	.comm	_SIZE_MAX,8,3                   ; @SIZE_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no available slot for key"

	.no_dead_strip	_daemon_set_rsa
.subsections_via_symbols
