	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_md_file                ## -- Begin function mbedtls_md_file
	.p2align	4, 0x90
_mbedtls_md_file:                       ## @mbedtls_md_file
	.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	$1048, %rsp                     ## imm = 0x418
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r14
	movq	%rdi, %r13
	leaq	L_.str(%rip), %rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	leaq	-1080(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_mbedtls_md_init
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_mbedtls_md_setup
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:
	movl	-1080(%rbp), %edi
	callq	*16(%r13)
	leaq	-1072(%rbp), %rdi
	movl	$1, %esi
	movl	$1024, %edx                     ## imm = 0x400
	movq	%r15, %rcx
	callq	_fread
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	leaq	-1072(%rbp), %rbx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	-1080(%rbp), %edi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	*8(%r13)
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$1024, %edx                     ## imm = 0x400
	movq	%r15, %rcx
	callq	_fread
	testq	%rax, %rax
	jne	LBB0_7
LBB0_8:
	movq	%r15, %rdi
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_MBEDTLS_ERR_MD_FILE_IO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_11
LBB0_1:
	movq	_MBEDTLS_ERR_MD_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_12
LBB0_3:
	movq	_MBEDTLS_ERR_MD_FILE_IO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_12
LBB0_10:
	movl	-1080(%rbp), %edi
	movq	%r14, %rsi
	callq	*(%r13)
	xorl	%r12d, %r12d
LBB0_11:
	movq	%r15, %rdi
	callq	_fclose
	leaq	-1080(%rbp), %rdi
	callq	_mbedtls_md_free
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%r12d, %eax
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_MD_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_MD_BAD_INPUT_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rb"

	.comm	_MBEDTLS_ERR_MD_FILE_IO_ERROR,4,2 ## @MBEDTLS_ERR_MD_FILE_IO_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_md_file                ; -- Begin function mbedtls_md_file
	.p2align	2
_mbedtls_md_file:                       ; @mbedtls_md_file
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 w27, -56
	.cfi_offset w28, -64
	sub	sp, sp, #1040
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x2
	mov	x21, x0
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
	mov	x0, x1
	mov	x1, x8
	bl	_fopen
	cbz	x0, LBB0_9
; %bb.2:
	mov	x19, x0
	mov	x0, sp
	bl	_mbedtls_md_init
	mov	x0, sp
	mov	x1, x21
	mov	w2, #0
	bl	_mbedtls_md_setup
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.3:
	ldr	x8, [x21, #16]
	ldr	w0, [sp]
	blr	x8
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #1024
	mov	x3, x19
	bl	_fread
	cbz	x0, LBB0_6
; %bb.4:
	mov	x2, x0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	w0, [sp]
	add	x1, sp, #8
	blr	x8
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #1024
	mov	x3, x19
	bl	_fread
	mov	x2, x0
	cbnz	x0, LBB0_5
LBB0_6:
	mov	x0, x19
	bl	_ferror
	cbz	x0, LBB0_10
; %bb.7:
Lloh5:
	adrp	x8, _MBEDTLS_ERR_MD_FILE_IO_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MBEDTLS_ERR_MD_FILE_IO_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
	b	LBB0_11
LBB0_8:
Lloh8:
	adrp	x8, _MBEDTLS_ERR_MD_BAD_INPUT_DATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MBEDTLS_ERR_MD_BAD_INPUT_DATA@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
	b	LBB0_12
LBB0_9:
Lloh11:
	adrp	x8, _MBEDTLS_ERR_MD_FILE_IO_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MBEDTLS_ERR_MD_FILE_IO_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x8]
	b	LBB0_12
LBB0_10:
	ldr	x8, [x21]
	ldr	w0, [sp]
	mov	x1, x20
	blr	x8
	mov	w22, #0
LBB0_11:
	mov	x0, x19
	bl	_fclose
	mov	x0, sp
	bl	_mbedtls_md_free
LBB0_12:
	ldur	x8, [x29, #-56]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x22
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_MD_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_MD_BAD_INPUT_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rb"

	.comm	_MBEDTLS_ERR_MD_FILE_IO_ERROR,4,2 ; @MBEDTLS_ERR_MD_FILE_IO_ERROR
.subsections_via_symbols
