	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RAND_DRBG_set                  ## -- Begin function RAND_DRBG_set
	.p2align	4, 0x90
_RAND_DRBG_set:                         ## @RAND_DRBG_set
	.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	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	%edx, %eax
	orl	%esi, %eax
	jne	LBB0_2
## %bb.1:
	movq	_rand_drbg_type@GOTPCREL(%rip), %rax
	movq	_rand_drbg_flags@GOTPCREL(%rip), %rcx
	movl	(%rax), %r14d
	movl	(%rcx), %r15d
LBB0_2:
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	cmpl	%eax, %r14d
	jne	LBB0_5
## %bb.4:
	cmpl	4(%rbx), %r15d
	je	LBB0_6
LBB0_5:
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	24(%rbx), %rdi
	callq	_rand_pool_free
	movq	$0, 24(%rbx)
LBB0_6:
	movq	_DRBG_UNINITIALISED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	%r15d, 4(%rbx)
	movl	%r14d, (%rbx)
	leal	-128(%r14), %eax
	cmpl	$3, %eax
	jae	LBB0_7
## %bb.10:
	movq	%rbx, %rdi
	callq	_drbg_ctr_init
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:
	movq	_DRBG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_RAND_F_RAND_DRBG_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RAND_R_ERROR_INITIALISING_DRBG@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_7:
	testl	%r14d, %r14d
	jne	LBB0_8
## %bb.9:
	movq	$0, 16(%rbx)
	movl	$1, %eax
	jmp	LBB0_13
LBB0_8:
	movq	$0, (%rbx)
	movq	$0, 16(%rbx)
	movq	_RAND_F_RAND_DRBG_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RAND_R_UNSUPPORTED_DRBG_TYPE@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %esi
	callq	_RANDerr
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rand_drbg_type,4,2             ## @rand_drbg_type
	.comm	_rand_drbg_flags,4,2            ## @rand_drbg_flags
	.comm	_DRBG_UNINITIALISED,4,2         ## @DRBG_UNINITIALISED
	.comm	_RAND_F_RAND_DRBG_SET,4,2       ## @RAND_F_RAND_DRBG_SET
	.comm	_RAND_R_UNSUPPORTED_DRBG_TYPE,4,2 ## @RAND_R_UNSUPPORTED_DRBG_TYPE
	.comm	_DRBG_ERROR,4,2                 ## @DRBG_ERROR
	.comm	_RAND_R_ERROR_INITIALISING_DRBG,4,2 ## @RAND_R_ERROR_INITIALISING_DRBG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RAND_DRBG_set                  ; -- Begin function RAND_DRBG_set
	.p2align	2
_RAND_DRBG_set:                         ; @RAND_DRBG_set
	.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	x19, x0
	orr	w8, w2, w1
Lloh0:
	adrp	x9, _rand_drbg_type@GOTPAGE
Lloh1:
	ldr	x9, [x9, _rand_drbg_type@GOTPAGEOFF]
Lloh2:
	adrp	x10, _rand_drbg_flags@GOTPAGE
Lloh3:
	ldr	x10, [x10, _rand_drbg_flags@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	ldr	w10, [x10]
	cmp	w8, #0
	csel	w20, w9, w1, eq
	csel	w21, w10, w2, eq
	ldr	w8, [x0]
	cbz	w8, LBB0_4
; %bb.1:
	cmp	w20, w8
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x19, #4]
	cmp	w21, w8
	b.eq	LBB0_4
LBB0_3:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	ldr	x0, [x19, #24]
	bl	_rand_pool_free
	str	xzr, [x19, #24]
LBB0_4:
Lloh6:
	adrp	x8, _DRBG_UNINITIALISED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRBG_UNINITIALISED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	stp	w21, w8, [x19, #4]
	str	w20, [x19]
	sub	w8, w20, #128
	cmp	w8, #3
	b.hs	LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_drbg_ctr_init
	cbnz	w0, LBB0_11
; %bb.6:
Lloh9:
	adrp	x8, _DRBG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DRBG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh12:
	adrp	x8, _RAND_F_RAND_DRBG_SET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RAND_F_RAND_DRBG_SET@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _RAND_R_ERROR_INITIALISING_DRBG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RAND_R_ERROR_INITIALISING_DRBG@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
	cbnz	w20, LBB0_9
; %bb.8:
	str	xzr, [x19, #16]
	mov	w0, #1
	b	LBB0_11
LBB0_9:
	str	xzr, [x19]
	str	xzr, [x19, #16]
Lloh17:
	adrp	x8, _RAND_F_RAND_DRBG_SET@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RAND_F_RAND_DRBG_SET@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x8, _RAND_R_UNSUPPORTED_DRBG_TYPE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RAND_R_UNSUPPORTED_DRBG_TYPE@GOTPAGEOFF]
LBB0_10:
	ldr	w1, [x8]
	bl	_RANDerr
	mov	w0, #0
LBB0_11:
	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	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_rand_drbg_type,4,2             ; @rand_drbg_type
	.comm	_rand_drbg_flags,4,2            ; @rand_drbg_flags
	.comm	_DRBG_UNINITIALISED,4,2         ; @DRBG_UNINITIALISED
	.comm	_RAND_F_RAND_DRBG_SET,4,2       ; @RAND_F_RAND_DRBG_SET
	.comm	_RAND_R_UNSUPPORTED_DRBG_TYPE,4,2 ; @RAND_R_UNSUPPORTED_DRBG_TYPE
	.comm	_DRBG_ERROR,4,2                 ; @DRBG_ERROR
	.comm	_RAND_R_ERROR_INITIALISING_DRBG,4,2 ; @RAND_R_ERROR_INITIALISING_DRBG
.subsections_via_symbols
