	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_hmac_drbg_update_seed_file ## -- Begin function mbedtls_hmac_drbg_update_seed_file
	.p2align	4, 0x90
_mbedtls_hmac_drbg_update_seed_file:    ## @mbedtls_hmac_drbg_update_seed_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MBEDTLS_HMAC_DRBG_MAX_INPUT@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_fseek
	movq	%rbx, %rdi
	callq	_ftell
	movq	%rax, %r13
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_fseek
	movslq	(%r14), %rax
	cmpq	%rax, %r13
	jbe	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_fclose
	movq	_MBEDTLS_ERR_HMAC_DRBG_INPUT_TOO_BIG@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movq	%r15, %rdi
	movl	$1, %esi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	callq	_fread
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_fclose
	cmpq	%r13, %r14
	jne	LBB0_5
## %bb.4:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_mbedtls_hmac_drbg_update
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_mbedtls_hmac_drbg_write_seed_file
	jmp	LBB0_7
LBB0_5:
	movq	_MBEDTLS_ERR_HMAC_DRBG_FILE_IO_ERROR@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_HMAC_DRBG_MAX_INPUT,4,2 ## @MBEDTLS_HMAC_DRBG_MAX_INPUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rb"

	.comm	_MBEDTLS_ERR_HMAC_DRBG_FILE_IO_ERROR,4,2 ## @MBEDTLS_ERR_HMAC_DRBG_FILE_IO_ERROR
	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_MBEDTLS_ERR_HMAC_DRBG_INPUT_TOO_BIG,4,2 ## @MBEDTLS_ERR_HMAC_DRBG_INPUT_TOO_BIG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_hmac_drbg_update_seed_file ; -- Begin function mbedtls_hmac_drbg_update_seed_file
	.p2align	2
_mbedtls_hmac_drbg_update_seed_file:    ; @mbedtls_hmac_drbg_update_seed_file
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x24, _MBEDTLS_HMAC_DRBG_MAX_INPUT@GOTPAGE
Lloh4:
	ldr	x24, [x24, _MBEDTLS_HMAC_DRBG_MAX_INPUT@GOTPAGEOFF]
	ldr	w8, [x24]
	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	x21, x9, x8
	mov	sp, x21
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_fopen
	cbz	x0, LBB0_5
; %bb.1:
	mov	x22, x0
Lloh9:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_fseek
	mov	x0, x22
	bl	_ftell
	mov	x23, x0
Lloh12:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w1, #0
	bl	_fseek
	ldrsw	x8, [x24]
	cmp	x23, x8
	b.ls	LBB0_3
; %bb.2:
	mov	x0, x22
	bl	_fclose
Lloh15:
	adrp	x8, _MBEDTLS_ERR_HMAC_DRBG_INPUT_TOO_BIG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MBEDTLS_ERR_HMAC_DRBG_INPUT_TOO_BIG@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	mov	x0, x21
	mov	w1, #1
	mov	x2, x23
	mov	x3, x22
	bl	_fread
	mov	x24, x0
	mov	x0, x22
	bl	_fclose
	cmp	x24, x23
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	bl	_mbedtls_hmac_drbg_update
	mov	x0, x20
	mov	x1, x19
	bl	_mbedtls_hmac_drbg_write_seed_file
	b	LBB0_7
LBB0_5:
Lloh17:
	adrp	x8, _MBEDTLS_ERR_HMAC_DRBG_FILE_IO_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MBEDTLS_ERR_HMAC_DRBG_FILE_IO_ERROR@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
LBB0_7:
	ldur	x8, [x29, #-56]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	sub	sp, x29, #48
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_HMAC_DRBG_MAX_INPUT,4,2 ; @MBEDTLS_HMAC_DRBG_MAX_INPUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rb"

	.comm	_MBEDTLS_ERR_HMAC_DRBG_FILE_IO_ERROR,4,2 ; @MBEDTLS_ERR_HMAC_DRBG_FILE_IO_ERROR
	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_MBEDTLS_ERR_HMAC_DRBG_INPUT_TOO_BIG,4,2 ; @MBEDTLS_ERR_HMAC_DRBG_INPUT_TOO_BIG
.subsections_via_symbols
