	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cipher_get_keyiv               ## -- Begin function cipher_get_keyiv
	.p2align	4, 0x90
_cipher_get_keyiv:                      ## @cipher_get_keyiv
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	8(%rdi), %rax
	movl	(%rax), %eax
	movq	_CFLAG_CHACHAPOLY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	testq	%rdx, %rdx
	jne	LBB0_2
	jmp	LBB0_6
LBB0_3:
	movq	_CFLAG_AESCTR@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.4:
	cmpq	$4, %rdx
	jne	LBB0_2
## %bb.5:
	movl	16(%rdi), %eax
	movl	$4, %edx
	movq	%rsi, %rdi
	movl	%eax, %esi
	callq	_memcpy
	jmp	LBB0_6
LBB0_2:
	movq	_SSH_ERR_INVALID_ARGUMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CFLAG_CHACHAPOLY,4,2           ## @CFLAG_CHACHAPOLY
	.comm	_SSH_ERR_INVALID_ARGUMENT,4,2   ## @SSH_ERR_INVALID_ARGUMENT
	.comm	_CFLAG_AESCTR,4,2               ## @CFLAG_AESCTR
	.comm	_CFLAG_NONE,4,2                 ## @CFLAG_NONE
	.comm	_EVP_CTRL_GCM_IV_GEN,4,2        ## @EVP_CTRL_GCM_IV_GEN
	.comm	_SSH_ERR_LIBCRYPTO_ERROR,4,2    ## @SSH_ERR_LIBCRYPTO_ERROR
	.comm	_evp_aes_128_ctr,8,3            ## @evp_aes_128_ctr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cipher_get_keyiv               ; -- Begin function cipher_get_keyiv
	.p2align	2
_cipher_get_keyiv:                      ; @cipher_get_keyiv
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _CFLAG_CHACHAPOLY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CFLAG_CHACHAPOLY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _SSH_ERR_INVALID_ARGUMENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSH_ERR_INVALID_ARGUMENT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	x2, #0
	csel	w0, wzr, w8, eq
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh6:
	adrp	x9, _CFLAG_AESCTR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CFLAG_AESCTR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	cmp	x2, #4
	b.ne	LBB0_6
; %bb.4:
	ldr	w8, [x0, #16]
	mov	x0, x1
	mov	x1, x8
	bl	_memcpy
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh9:
	adrp	x8, _SSH_ERR_INVALID_ARGUMENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SSH_ERR_INVALID_ARGUMENT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CFLAG_CHACHAPOLY,4,2           ; @CFLAG_CHACHAPOLY
	.comm	_SSH_ERR_INVALID_ARGUMENT,4,2   ; @SSH_ERR_INVALID_ARGUMENT
	.comm	_CFLAG_AESCTR,4,2               ; @CFLAG_AESCTR
	.comm	_CFLAG_NONE,4,2                 ; @CFLAG_NONE
	.comm	_EVP_CTRL_GCM_IV_GEN,4,2        ; @EVP_CTRL_GCM_IV_GEN
	.comm	_SSH_ERR_LIBCRYPTO_ERROR,4,2    ; @SSH_ERR_LIBCRYPTO_ERROR
	.comm	_evp_aes_128_ctr,8,3            ; @evp_aes_128_ctr
.subsections_via_symbols
