	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gcm_tls_iv_set_fixed
_gcm_tls_iv_set_fixed:                  ## @gcm_tls_iv_set_fixed
	.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, %r15
	cmpq	$-1, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rdx, %rbx
	movq	_EVP_GCM_TLS_FIXED_IV_LEN@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	cmpq	%rdx, (%rax)
	ja	LBB0_9
## %bb.3:
	movq	(%r15), %rax
	movslq	%ebx, %rcx
	subq	%rcx, %rax
	movq	_EVP_GCM_TLS_EXPLICIT_IV_LEN@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jb	LBB0_9
## %bb.4:
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.5:
	movq	24(%r15), %rdi
	movq	%rbx, %rdx
	callq	_memcpy
LBB0_6:
	cmpq	$0, 40(%r15)
	je	LBB0_8
## %bb.7:
	movl	32(%r15), %edi
	movq	24(%r15), %rsi
	addq	%rbx, %rsi
	movq	(%r15), %rdx
	subq	%rbx, %rdx
	callq	_rand_bytes_ex
	testq	%rax, %rax
	jg	LBB0_8
	jmp	LBB0_9
LBB0_1:
	movq	(%r15), %rdx
	movq	24(%r15), %rdi
	callq	_memcpy
LBB0_8:
	movl	$1, 8(%r15)
	movq	_IV_STATE_BUFFERED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
	movl	$1, %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IV_STATE_BUFFERED,8,3          ## @IV_STATE_BUFFERED
	.comm	_EVP_GCM_TLS_FIXED_IV_LEN,8,3   ## @EVP_GCM_TLS_FIXED_IV_LEN
	.comm	_EVP_GCM_TLS_EXPLICIT_IV_LEN,4,2 ## @EVP_GCM_TLS_EXPLICIT_IV_LEN
	.no_dead_strip	_gcm_tls_iv_set_fixed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gcm_tls_iv_set_fixed
_gcm_tls_iv_set_fixed:                  ; @gcm_tls_iv_set_fixed
	.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
	mov	x19, x0
	cmn	x2, #1
	b.eq	LBB0_8
; %bb.1:
	mov	x20, x2
Lloh0:
	adrp	x8, _EVP_GCM_TLS_FIXED_IV_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVP_GCM_TLS_FIXED_IV_LEN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x2
	b.hi	LBB0_7
; %bb.2:
	ldr	x8, [x19]
	sub	x8, x8, w20, sxtw
Lloh3:
	adrp	x9, _EVP_GCM_TLS_EXPLICIT_IV_LEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EVP_GCM_TLS_EXPLICIT_IV_LEN@GOTPAGEOFF]
Lloh5:
	ldrsw	x9, [x9]
	cmp	x8, x9
	b.lo	LBB0_7
; %bb.3:
	cbz	x20, LBB0_5
; %bb.4:
	ldr	x0, [x19, #24]
	mov	x2, x20
	bl	_memcpy
LBB0_5:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_9
; %bb.6:
	ldr	w0, [x19, #32]
	ldr	x8, [x19, #24]
	add	x1, x8, x20
	ldr	x8, [x19]
	sub	x2, x8, x20
	bl	_rand_bytes_ex
	cmp	x0, #1
	b.ge	LBB0_9
LBB0_7:
	mov	w0, #0
	b	LBB0_10
LBB0_8:
	ldr	x0, [x19, #24]
	ldr	x2, [x19]
	bl	_memcpy
LBB0_9:
	mov	w0, #1
	str	w0, [x19, #8]
Lloh6:
	adrp	x8, _IV_STATE_BUFFERED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IV_STATE_BUFFERED@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x19, #16]
LBB0_10:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IV_STATE_BUFFERED,8,3          ; @IV_STATE_BUFFERED
	.comm	_EVP_GCM_TLS_FIXED_IV_LEN,8,3   ; @EVP_GCM_TLS_FIXED_IV_LEN
	.comm	_EVP_GCM_TLS_EXPLICIT_IV_LEN,4,2 ; @EVP_GCM_TLS_EXPLICIT_IV_LEN
	.no_dead_strip	_gcm_tls_iv_set_fixed
.subsections_via_symbols
