	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_cipher_setkey          ## -- Begin function mbedtls_cipher_setkey
	.p2align	4, 0x90
_mbedtls_cipher_setkey:                 ## @mbedtls_cipher_setkey
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.1:
	movq	24(%rdi), %r9
	testq	%r9, %r9
	je	LBB0_11
## %bb.2:
	movq	_MBEDTLS_CIPHER_VARIABLE_KEY_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r9)
	jne	LBB0_4
## %bb.3:
	cmpl	%edx, 24(%r9)
	jne	LBB0_11
LBB0_4:
	movl	%edx, (%rdi)
	movq	%rcx, 8(%rdi)
	movq	_MBEDTLS_ENCRYPT@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	je	LBB0_7
## %bb.5:
	movq	_MBEDTLS_MODE_CFB@GOTPCREL(%rip), %rax
	movq	8(%r9), %r8
	cmpq	%r8, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_MBEDTLS_MODE_CTR@GOTPCREL(%rip), %rax
	cmpq	%r8, (%rax)
	je	LBB0_7
## %bb.9:
	movq	_MBEDTLS_DECRYPT@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	jne	LBB0_11
## %bb.10:
	movq	16(%r9), %rax
	movq	8(%rax), %rax
	jmp	LBB0_8
LBB0_11:
	movq	_MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_7:
	movq	16(%r9), %rax
	movq	(%rax), %rax
LBB0_8:
	movl	16(%rdi), %edi
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA
	.comm	_MBEDTLS_CIPHER_VARIABLE_KEY_LEN,4,2 ## @MBEDTLS_CIPHER_VARIABLE_KEY_LEN
	.comm	_MBEDTLS_ENCRYPT,8,3            ## @MBEDTLS_ENCRYPT
	.comm	_MBEDTLS_MODE_CFB,8,3           ## @MBEDTLS_MODE_CFB
	.comm	_MBEDTLS_MODE_CTR,8,3           ## @MBEDTLS_MODE_CTR
	.comm	_MBEDTLS_DECRYPT,8,3            ## @MBEDTLS_DECRYPT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_cipher_setkey          ; -- Begin function mbedtls_cipher_setkey
	.p2align	2
_mbedtls_cipher_setkey:                 ; @mbedtls_cipher_setkey
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_9
; %bb.1:
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_9
; %bb.2:
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _MBEDTLS_CIPHER_VARIABLE_KEY_LEN@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MBEDTLS_CIPHER_VARIABLE_KEY_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_4
; %bb.3:
	ldr	w9, [x8, #24]
	cmp	w9, w2
	b.ne	LBB0_9
LBB0_4:
	str	w2, [x0]
	str	x3, [x0, #8]
Lloh3:
	adrp	x9, _MBEDTLS_ENCRYPT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MBEDTLS_ENCRYPT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x3
	b.eq	LBB0_6
; %bb.5:
Lloh6:
	adrp	x9, _MBEDTLS_MODE_CFB@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MBEDTLS_MODE_CFB@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	x10, [x8, #8]
Lloh9:
	adrp	x11, _MBEDTLS_MODE_CTR@GOTPAGE
Lloh10:
	ldr	x11, [x11, _MBEDTLS_MODE_CTR@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x11, x10, #4, ne
	b.ne	LBB0_7
LBB0_6:
	ldr	x8, [x8, #16]
	ldr	x3, [x8]
	ldr	w0, [x0, #16]
	br	x3
LBB0_7:
Lloh12:
	adrp	x9, _MBEDTLS_DECRYPT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MBEDTLS_DECRYPT@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x3
	b.ne	LBB0_9
; %bb.8:
	ldr	x8, [x8, #16]
	ldr	x3, [x8, #8]
	ldr	w0, [x0, #16]
	br	x3
LBB0_9:
Lloh15:
	adrp	x8, _MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA
	.comm	_MBEDTLS_CIPHER_VARIABLE_KEY_LEN,4,2 ; @MBEDTLS_CIPHER_VARIABLE_KEY_LEN
	.comm	_MBEDTLS_ENCRYPT,8,3            ; @MBEDTLS_ENCRYPT
	.comm	_MBEDTLS_MODE_CFB,8,3           ; @MBEDTLS_MODE_CFB
	.comm	_MBEDTLS_MODE_CTR,8,3           ; @MBEDTLS_MODE_CTR
	.comm	_MBEDTLS_DECRYPT,8,3            ; @MBEDTLS_DECRYPT
.subsections_via_symbols
