	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EVP_CIPHER_CTX_set_key_length  ## -- Begin function EVP_CIPHER_CTX_set_key_length
	.p2align	4, 0x90
_EVP_CIPHER_CTX_set_key_length:         ## @EVP_CIPHER_CTX_set_key_length
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %edx
	movq	8(%rdi), %rax
	movl	(%rax), %ecx
	movq	_EVP_CIPH_CUSTOM_KEY_LENGTH@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_1
## %bb.7:
	movq	_EVP_CTRL_SET_KEY_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ecx, %ecx
	popq	%rbp
	jmp	_EVP_CIPHER_CTX_ctrl            ## TAILCALL
LBB0_1:
	movl	$1, %eax
	cmpl	%edx, (%rdi)
	je	LBB0_6
## %bb.2:
	testl	%edx, %edx
	jle	LBB0_5
## %bb.3:
	movq	_EVP_CIPH_VARIABLE_LENGTH@GOTPCREL(%rip), %rsi
	testl	%ecx, (%rsi)
	je	LBB0_5
## %bb.4:
	movl	%edx, (%rdi)
	popq	%rbp
	retq
LBB0_5:
	movq	_EVP_F_EVP_CIPHER_CTX_SET_KEY_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EVP_R_INVALID_KEY_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EVPerr
	xorl	%eax, %eax
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_CIPH_CUSTOM_KEY_LENGTH,4,2 ## @EVP_CIPH_CUSTOM_KEY_LENGTH
	.comm	_EVP_CTRL_SET_KEY_LENGTH,4,2    ## @EVP_CTRL_SET_KEY_LENGTH
	.comm	_EVP_CIPH_VARIABLE_LENGTH,4,2   ## @EVP_CIPH_VARIABLE_LENGTH
	.comm	_EVP_F_EVP_CIPHER_CTX_SET_KEY_LENGTH,4,2 ## @EVP_F_EVP_CIPHER_CTX_SET_KEY_LENGTH
	.comm	_EVP_R_INVALID_KEY_LENGTH,4,2   ## @EVP_R_INVALID_KEY_LENGTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EVP_CIPHER_CTX_set_key_length  ; -- Begin function EVP_CIPHER_CTX_set_key_length
	.p2align	2
_EVP_CIPHER_CTX_set_key_length:         ; @EVP_CIPHER_CTX_set_key_length
	.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
	mov	x2, x1
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _EVP_CIPH_CUSTOM_KEY_LENGTH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EVP_CIPH_CUSTOM_KEY_LENGTH@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EVP_CTRL_SET_KEY_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVP_CTRL_SET_KEY_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x3, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_EVP_CIPHER_CTX_ctrl
LBB0_2:
	ldr	w9, [x0]
	cmp	w9, w2
	b.eq	LBB0_6
; %bb.3:
	cmp	w2, #1
	b.lt	LBB0_7
; %bb.4:
Lloh6:
	adrp	x9, _EVP_CIPH_VARIABLE_LENGTH@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EVP_CIPH_VARIABLE_LENGTH@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
	str	w2, [x0]
LBB0_6:
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh9:
	adrp	x8, _EVP_F_EVP_CIPHER_CTX_SET_KEY_LENGTH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EVP_F_EVP_CIPHER_CTX_SET_KEY_LENGTH@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _EVP_R_INVALID_KEY_LENGTH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EVP_R_INVALID_KEY_LENGTH@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_EVPerr
	mov	w0, #0
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_CIPH_CUSTOM_KEY_LENGTH,4,2 ; @EVP_CIPH_CUSTOM_KEY_LENGTH
	.comm	_EVP_CTRL_SET_KEY_LENGTH,4,2    ; @EVP_CTRL_SET_KEY_LENGTH
	.comm	_EVP_CIPH_VARIABLE_LENGTH,4,2   ; @EVP_CIPH_VARIABLE_LENGTH
	.comm	_EVP_F_EVP_CIPHER_CTX_SET_KEY_LENGTH,4,2 ; @EVP_F_EVP_CIPHER_CTX_SET_KEY_LENGTH
	.comm	_EVP_R_INVALID_KEY_LENGTH,4,2   ; @EVP_R_INVALID_KEY_LENGTH
.subsections_via_symbols
