	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_cipher_init             ## -- Begin function crypto_cipher_init
	.p2align	4, 0x90
_crypto_cipher_init:                    ## @crypto_cipher_init
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movl	%edi, %ebx
	movl	$8, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_22
## %bb.1:
	movq	%rax, %r15
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %r13
	addl	$-128, %ebx
	cmpl	$4, %ebx
	ja	LBB0_21
## %bb.2:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jmpq	*%rcx
LBB0_3:
	movq	_GCRY_CIPHER_ARCFOUR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_GCRY_CIPHER_MODE_STREAM@GOTPCREL(%rip), %r12
	jmp	LBB0_15
LBB0_11:
	cmpq	$5, %r12
	jne	LBB0_12
## %bb.13:
	movq	_GCRY_CIPHER_RFC2268_40@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_10:
	movq	_GCRY_CIPHER_DES@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_4:
	cmpq	$32, %r12
	jne	LBB0_5
## %bb.6:
	movq	_GCRY_CIPHER_AES256@GOTPCREL(%rip), %rax
	cmpq	$24, %r12
	je	LBB0_8
	jmp	LBB0_14
LBB0_9:
	movq	_GCRY_CIPHER_3DES@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	movq	_GCRY_CIPHER_RFC2268_128@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_5:
	movq	_GCRY_CIPHER_AES@GOTPCREL(%rip), %rax
	cmpq	$24, %r12
	jne	LBB0_14
LBB0_8:
	movq	_GCRY_CIPHER_AES192@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %r14d
	movq	_GCRY_CIPHER_MODE_CBC@GOTPCREL(%rip), %r12
LBB0_15:
	addq	$4, %r15
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	callq	_gcry_cipher_open
	movq	%rax, %rbx
	movl	(%r12), %edx
	movq	%r13, %rdi
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	callq	_gcry_cipher_open
	movq	_GPG_ERR_NO_ERROR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_21
## %bb.16:
	movl	(%r15), %edi
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_gcry_cipher_setkey
	movq	_GPG_ERR_NO_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.17:
	movl	(%r13), %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_gcry_cipher_setkey
	movq	_GPG_ERR_NO_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.18:
	movl	%r14d, %edi
	callq	_gcry_cipher_get_algo_blklen
	movl	%eax, %r14d
	movl	(%r15), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_gcry_cipher_setiv
	movq	_GPG_ERR_NO_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	_GPG_ERR_NO_ERROR@GOTPCREL(%rip), %rax
	jne	LBB0_20
## %bb.19:
	movl	(%r13), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	movq	%rax, %rbx
	callq	_gcry_cipher_setiv
	cmpq	(%rbx), %rax
	je	LBB0_23
LBB0_20:
	movl	4(%r13), %edi
	callq	_gcry_cipher_close
	movl	(%r13), %edi
	callq	_gcry_cipher_close
LBB0_21:
	movq	%r13, %rdi
	callq	_os_free
LBB0_22:
	xorl	%r13d, %r13d
LBB0_23:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_4
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_GCRY_CIPHER_ARCFOUR,4,2        ## @GCRY_CIPHER_ARCFOUR
	.comm	_GCRY_CIPHER_MODE_STREAM,4,2    ## @GCRY_CIPHER_MODE_STREAM
	.comm	_GCRY_CIPHER_AES192,4,2         ## @GCRY_CIPHER_AES192
	.comm	_GCRY_CIPHER_AES256,4,2         ## @GCRY_CIPHER_AES256
	.comm	_GCRY_CIPHER_AES,4,2            ## @GCRY_CIPHER_AES
	.comm	_GCRY_CIPHER_MODE_CBC,4,2       ## @GCRY_CIPHER_MODE_CBC
	.comm	_GCRY_CIPHER_3DES,4,2           ## @GCRY_CIPHER_3DES
	.comm	_GCRY_CIPHER_DES,4,2            ## @GCRY_CIPHER_DES
	.comm	_GCRY_CIPHER_RFC2268_40,4,2     ## @GCRY_CIPHER_RFC2268_40
	.comm	_GCRY_CIPHER_RFC2268_128,4,2    ## @GCRY_CIPHER_RFC2268_128
	.comm	_GPG_ERR_NO_ERROR,8,3           ## @GPG_ERR_NO_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_cipher_init             ; -- Begin function crypto_cipher_init
	.p2align	2
_crypto_cipher_init:                    ; @crypto_cipher_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x23, x0
	mov	w0, #8
	bl	_os_zalloc
	mov	x19, x0
	cbz	x0, LBB0_17
; %bb.1:
	sub	w8, w23, #128
	cmp	w8, #4
	b.hi	LBB0_16
; %bb.2:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh2:
	adrp	x8, _GCRY_CIPHER_ARCFOUR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GCRY_CIPHER_ARCFOUR@GOTPAGEOFF]
Lloh4:
	ldr	w23, [x8]
Lloh5:
	adrp	x26, _GCRY_CIPHER_MODE_STREAM@GOTPAGE
Lloh6:
	ldr	x26, [x26, _GCRY_CIPHER_MODE_STREAM@GOTPAGEOFF]
	b	LBB0_10
LBB0_4:
Lloh7:
	adrp	x8, _GCRY_CIPHER_RFC2268_40@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GCRY_CIPHER_RFC2268_40@GOTPAGEOFF]
Lloh9:
	adrp	x9, _GCRY_CIPHER_RFC2268_128@GOTPAGE
Lloh10:
	ldr	x9, [x9, _GCRY_CIPHER_RFC2268_128@GOTPAGEOFF]
	cmp	x21, #5
	b	LBB0_7
LBB0_5:
Lloh11:
	adrp	x8, _GCRY_CIPHER_DES@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GCRY_CIPHER_DES@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh13:
	adrp	x8, _GCRY_CIPHER_AES192@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GCRY_CIPHER_AES192@GOTPAGEOFF]
Lloh15:
	adrp	x9, _GCRY_CIPHER_AES256@GOTPAGE
Lloh16:
	ldr	x9, [x9, _GCRY_CIPHER_AES256@GOTPAGEOFF]
Lloh17:
	adrp	x10, _GCRY_CIPHER_AES@GOTPAGE
Lloh18:
	ldr	x10, [x10, _GCRY_CIPHER_AES@GOTPAGEOFF]
	cmp	x21, #32
	csel	x9, x9, x10, eq
	cmp	x21, #24
LBB0_7:
	csel	x8, x8, x9, eq
	b	LBB0_9
LBB0_8:
Lloh19:
	adrp	x8, _GCRY_CIPHER_3DES@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GCRY_CIPHER_3DES@GOTPAGEOFF]
LBB0_9:
	ldr	w23, [x8]
Lloh21:
	adrp	x26, _GCRY_CIPHER_MODE_CBC@GOTPAGE
Lloh22:
	ldr	x26, [x26, _GCRY_CIPHER_MODE_CBC@GOTPAGEOFF]
LBB0_10:
	add	x24, x19, #4
	ldr	w2, [x26]
	mov	x0, x24
	mov	x1, x23
	mov	w3, #0
	bl	_gcry_cipher_open
	mov	x25, x0
	ldr	w2, [x26]
	mov	x0, x19
	mov	x1, x23
	mov	w3, #0
	bl	_gcry_cipher_open
Lloh23:
	adrp	x26, _GPG_ERR_NO_ERROR@GOTPAGE
Lloh24:
	ldr	x26, [x26, _GPG_ERR_NO_ERROR@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x25, x8
	b.ne	LBB0_16
; %bb.11:
	ldr	w0, [x24]
	mov	x1, x22
	mov	x2, x21
	bl	_gcry_cipher_setkey
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.12:
	ldr	w0, [x19]
	mov	x1, x22
	mov	x2, x21
	bl	_gcry_cipher_setkey
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.13:
	mov	x0, x23
	bl	_gcry_cipher_get_algo_blklen
	mov	x21, x0
	ldr	w0, [x24]
	mov	x1, x20
	mov	x2, x21
	bl	_gcry_cipher_setiv
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.14:
	ldr	w0, [x19]
	mov	x1, x20
	mov	x2, x21
	bl	_gcry_cipher_setiv
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_17
LBB0_15:
	ldr	w0, [x19, #4]
	bl	_gcry_cipher_close
	ldr	w0, [x19]
	bl	_gcry_cipher_close
LBB0_16:
	mov	x0, x19
	bl	_os_free
	mov	x19, #0
LBB0_17:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
                                        ; -- End function
	.comm	_GCRY_CIPHER_ARCFOUR,4,2        ; @GCRY_CIPHER_ARCFOUR
	.comm	_GCRY_CIPHER_MODE_STREAM,4,2    ; @GCRY_CIPHER_MODE_STREAM
	.comm	_GCRY_CIPHER_AES192,4,2         ; @GCRY_CIPHER_AES192
	.comm	_GCRY_CIPHER_AES256,4,2         ; @GCRY_CIPHER_AES256
	.comm	_GCRY_CIPHER_AES,4,2            ; @GCRY_CIPHER_AES
	.comm	_GCRY_CIPHER_MODE_CBC,4,2       ; @GCRY_CIPHER_MODE_CBC
	.comm	_GCRY_CIPHER_3DES,4,2           ; @GCRY_CIPHER_3DES
	.comm	_GCRY_CIPHER_DES,4,2            ; @GCRY_CIPHER_DES
	.comm	_GCRY_CIPHER_RFC2268_40,4,2     ; @GCRY_CIPHER_RFC2268_40
	.comm	_GCRY_CIPHER_RFC2268_128,4,2    ; @GCRY_CIPHER_RFC2268_128
	.comm	_GPG_ERR_NO_ERROR,8,3           ; @GPG_ERR_NO_ERROR
.subsections_via_symbols
