	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gcm_iv_generate
_gcm_iv_generate:                       ## @gcm_iv_generate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rdi), %eax
	xorl	%r14d, %r14d
	movl	%eax, %edx
	subl	%esi, %edx
	jle	LBB0_4
## %bb.1:
	movq	_GCM_IV_DEFAULT_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_4
## %bb.2:
	movq	%rdi, %rbx
	movl	24(%rdi), %edi
	movslq	%esi, %rsi
	addq	16(%rbx), %rsi
	callq	_rand_bytes_ex
	testq	%rax, %rax
	jle	LBB0_4
## %bb.3:
	movq	_IV_STATE_BUFFERED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	$1, 4(%rbx)
	movl	$1, %r14d
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GCM_IV_DEFAULT_SIZE,4,2        ## @GCM_IV_DEFAULT_SIZE
	.comm	_IV_STATE_BUFFERED,4,2          ## @IV_STATE_BUFFERED
	.no_dead_strip	_gcm_iv_generate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gcm_iv_generate
_gcm_iv_generate:                       ; @gcm_iv_generate
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
	sub	w2, w8, w1
Lloh0:
	adrp	x9, _GCM_IV_DEFAULT_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GCM_IV_DEFAULT_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w2, #1
	ccmp	w8, w9, #8, ge
	b.lt	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #24]
	ldr	x8, [x19, #16]
	add	x1, x8, w1, sxtw
	bl	_rand_bytes_ex
	cmp	x0, #1
	b.lt	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _IV_STATE_BUFFERED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IV_STATE_BUFFERED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w0, #1
	stp	w0, w8, [x19, #4]
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GCM_IV_DEFAULT_SIZE,4,2        ; @GCM_IV_DEFAULT_SIZE
	.comm	_IV_STATE_BUFFERED,4,2          ; @IV_STATE_BUFFERED
	.no_dead_strip	_gcm_iv_generate
.subsections_via_symbols
