	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_blowfish_crypt_cbc     ## -- Begin function mbedtls_blowfish_crypt_cbc
	.p2align	4, 0x90
_mbedtls_blowfish_crypt_cbc:            ## @mbedtls_blowfish_crypt_cbc
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MBEDTLS_BLOWFISH_BLOCKSIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdi
	movslq	%r13d, %rcx
	movq	%rsi, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rax
	xorl	%edx, %edx
	divq	%rcx
	testq	%rdx, %rdx
	je	LBB0_5
LBB0_4:
	movq	_MBEDTLS_ERR_BLOWFISH_INVALID_INPUT_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_18
LBB0_1:
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%r13d
                                        ## kill: def $edx killed $edx def $rdx
	testq	%rdx, %rdx
	jne	LBB0_4
LBB0_5:
	movq	_MBEDTLS_BLOWFISH_DECRYPT@GOTPCREL(%rip), %rax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	jne	LBB0_6
## %bb.11:
	testq	%rsi, %rsi
	je	LBB0_17
## %bb.12:
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r15, %rdi
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movq	%r13, %rdi
	movslq	(%r12), %r13
	addq	%r13, %r14
	addq	%r13, %rbx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	subq	%r13, %rsi
	je	LBB0_17
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_mbedtls_blowfish_crypt_ecb
	movl	(%r12), %edx
	testl	%edx, %edx
	jle	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r15,%rax), %ecx
	xorb	%cl, (%rbx,%rax)
	incq	%rax
	movslq	(%r12), %rdx
	cmpq	%rdx, %rax
	jl	LBB0_15
	jmp	LBB0_16
LBB0_6:
	testq	%rsi, %rsi
	jne	LBB0_7
LBB0_17:
	xorl	%eax, %eax
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_20
## %bb.19:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	%rbx, %rdx
	movq	%rbx, %rcx
	callq	_mbedtls_blowfish_crypt_ecb
	movl	(%r12), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_memcpy
	movslq	(%r12), %r13
	addq	%r13, %r14
	addq	%r13, %rbx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	subq	%r13, %rsi
	je	LBB0_17
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	testl	%r13d, %r13d
	jle	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r15,%rax), %ecx
	xorb	(%r14,%rax), %cl
	movb	%cl, (%rbx,%rax)
	incq	%rax
	movslq	(%r12), %rcx
	cmpq	%rcx, %rax
	jl	LBB0_9
	jmp	LBB0_10
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_BLOWFISH_BLOCKSIZE,4,2 ## @MBEDTLS_BLOWFISH_BLOCKSIZE
	.comm	_MBEDTLS_ERR_BLOWFISH_INVALID_INPUT_LENGTH,4,2 ## @MBEDTLS_ERR_BLOWFISH_INVALID_INPUT_LENGTH
	.comm	_MBEDTLS_BLOWFISH_DECRYPT,4,2   ## @MBEDTLS_BLOWFISH_DECRYPT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_blowfish_crypt_cbc     ; -- Begin function mbedtls_blowfish_crypt_cbc
	.p2align	2
_mbedtls_blowfish_crypt_cbc:            ; @mbedtls_blowfish_crypt_cbc
	.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
	sub	sp, sp, #16
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x26, _MBEDTLS_BLOWFISH_BLOCKSIZE@GOTPAGE
Lloh4:
	ldr	x26, [x26, _MBEDTLS_BLOWFISH_BLOCKSIZE@GOTPAGEOFF]
	ldrsw	x2, [x26]
	and	x8, x2, #0xffffffff
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x25, x9, x8
	mov	sp, x25
	udiv	x8, x22, x2
	msub	x8, x8, x2, x22
	cbz	x8, LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _MBEDTLS_ERR_BLOWFISH_INVALID_INPUT_LENGTH@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MBEDTLS_ERR_BLOWFISH_INVALID_INPUT_LENGTH@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	b	LBB0_16
LBB0_2:
Lloh10:
	adrp	x8, _MBEDTLS_BLOWFISH_DECRYPT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MBEDTLS_BLOWFISH_DECRYPT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_9
; %bb.3:
	cbz	x22, LBB0_15
; %bb.4:
                                        ; kill: def $w2 killed $w2 killed $x2 def $x2
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	x1, x25
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	ldrsw	x2, [x26]
	add	x20, x20, x2
	add	x19, x19, x2
	subs	x22, x22, x2
	b.eq	LBB0_15
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	mov	x0, x25
	mov	x1, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	mov	x0, x24
	mov	x1, x23
	mov	x2, x20
	mov	x3, x19
	bl	_mbedtls_blowfish_crypt_ecb
	ldr	w2, [x26]
	cmp	w2, #1
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x8, #0
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w9, [x19, x8]
	ldrb	w10, [x21, x8]
	eor	w9, w10, w9
	strb	w9, [x19, x8]
	add	x8, x8, #1
	ldrsw	x2, [x26]
	cmp	x8, x2
	b.lt	LBB0_8
	b	LBB0_5
LBB0_9:
	cbz	x22, LBB0_15
; %bb.10:
                                        ; kill: def $w2 killed $w2 killed $x2 def $x2
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x24
	mov	x1, x23
	mov	x2, x19
	mov	x3, x19
	bl	_mbedtls_blowfish_crypt_ecb
	ldr	w2, [x26]
	mov	x0, x21
	mov	x1, x19
	bl	_memcpy
	ldrsw	x2, [x26]
	add	x20, x20, x2
	add	x19, x19, x2
	subs	x22, x22, x2
	b.eq	LBB0_15
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	cmp	w2, #1
	b.lt	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x8, #0
LBB0_14:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w9, [x20, x8]
	ldrb	w10, [x21, x8]
	eor	w9, w10, w9
	strb	w9, [x19, x8]
	add	x8, x8, #1
	ldrsw	x9, [x26]
	cmp	x8, x9
	b.lt	LBB0_14
	b	LBB0_11
LBB0_15:
	mov	w0, #0
LBB0_16:
	ldur	x8, [x29, #-72]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	sub	sp, x29, #64
	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
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_BLOWFISH_BLOCKSIZE,4,2 ; @MBEDTLS_BLOWFISH_BLOCKSIZE
	.comm	_MBEDTLS_ERR_BLOWFISH_INVALID_INPUT_LENGTH,4,2 ; @MBEDTLS_ERR_BLOWFISH_INVALID_INPUT_LENGTH
	.comm	_MBEDTLS_BLOWFISH_DECRYPT,4,2   ; @MBEDTLS_BLOWFISH_DECRYPT
.subsections_via_symbols
