	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_platform_entropy_poll  ## -- Begin function mbedtls_platform_entropy_poll
	.p2align	4, 0x90
_mbedtls_platform_entropy_poll:         ## @mbedtls_platform_entropy_poll
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	$0, (%rcx)
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r15, %rdi
	movl	$1, %esi
	movq	%r12, %rdx
	movq	%rax, %rcx
	callq	_fread
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_fclose
	cmpq	%r12, %r15
	jne	LBB0_1
## %bb.3:
	movq	%r12, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_1:
	movq	_MBEDTLS_ERR_ENTROPY_SOURCE_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/urandom"

L_.str.1:                               ## @.str.1
	.asciz	"rb"

	.comm	_MBEDTLS_ERR_ENTROPY_SOURCE_FAILED,4,2 ## @MBEDTLS_ERR_ENTROPY_SOURCE_FAILED
	.comm	_has_getrandom,4,2              ## @has_getrandom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_platform_entropy_poll  ; -- Begin function mbedtls_platform_entropy_poll
	.p2align	2
_mbedtls_platform_entropy_poll:         ; @mbedtls_platform_entropy_poll
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	str	xzr, [x3]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	mov	x0, x21
	mov	w1, #1
	mov	x2, x20
	mov	x3, x22
	bl	_fread
	mov	x21, x0
	mov	x0, x22
	bl	_fclose
	cmp	x21, x20
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	str	x20, [x19]
	b	LBB0_4
LBB0_3:
Lloh4:
	adrp	x8, _MBEDTLS_ERR_ENTROPY_SOURCE_FAILED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MBEDTLS_ERR_ENTROPY_SOURCE_FAILED@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/urandom"

l_.str.1:                               ; @.str.1
	.asciz	"rb"

	.comm	_MBEDTLS_ERR_ENTROPY_SOURCE_FAILED,4,2 ; @MBEDTLS_ERR_ENTROPY_SOURCE_FAILED
	.comm	_has_getrandom,4,2              ; @has_getrandom
.subsections_via_symbols
