	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_ecp_point_write_binary ## -- Begin function mbedtls_ecp_point_write_binary
	.p2align	4, 0x90
_mbedtls_ecp_point_write_binary:        ## @mbedtls_ecp_point_write_binary
	.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	%r9, %r12
	movq	%rcx, %r13
	movl	%edx, %r14d
	movq	%rdi, %rbx
	movq	_MBEDTLS_ECP_PF_UNCOMPRESSED@GOTPCREL(%rip), %r15
	movq	_MBEDTLS_ECP_PF_COMPRESSED@GOTPCREL(%rip), %rax
	cmpl	%edx, (%r15)
	je	LBB0_3
## %bb.1:
	cmpl	%r14d, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_MBEDTLS_ERR_ECP_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_3:
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	leaq	8(%rsi), %rdi
	xorl	%esi, %esi
	callq	_mbedtls_mpi_cmp_int
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%rbx, %rdi
	callq	_mbedtls_mpi_size
	cmpl	%r14d, (%r15)
	jne	LBB0_9
## %bb.5:
	leaq	(%rax,%rax), %rcx
	incq	%rcx
	movq	%rcx, (%r13)
	cmpq	%r12, %rcx
	ja	LBB0_11
## %bb.6:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movb	$4, (%r14)
	leaq	1(%r14), %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%rax, %r15
	movq	%rax, %rdx
	callq	_mbedtls_mpi_write_binary
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	addq	$4, %rbx
	leaq	(%r14,%r15), %rsi
	incq	%rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_mbedtls_mpi_write_binary
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_7:
	testq	%r12, %r12
	je	LBB0_11
## %bb.8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movb	$0, (%rax)
	movq	$1, (%r13)
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_9:
	xorl	%r15d, %r15d
	movq	_MBEDTLS_ECP_PF_COMPRESSED@GOTPCREL(%rip), %rcx
	cmpl	%r14d, (%rcx)
	jne	LBB0_13
## %bb.10:
	movq	%rax, %rcx
	incq	%rcx
	movq	%rcx, (%r13)
	cmpq	%r12, %rcx
	jbe	LBB0_14
LBB0_11:
	movq	_MBEDTLS_ERR_ECP_BUFFER_TOO_SMALL@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %r15d
LBB0_13:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	leaq	4(%rbx), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movq	%rax, %r14
	callq	_mbedtls_mpi_get_bit
	addb	$2, %al
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movb	%al, (%rsi)
	incq	%rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_mbedtls_mpi_write_binary
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ECP_PF_UNCOMPRESSED,4,2 ## @MBEDTLS_ECP_PF_UNCOMPRESSED
	.comm	_MBEDTLS_ECP_PF_COMPRESSED,4,2  ## @MBEDTLS_ECP_PF_COMPRESSED
	.comm	_MBEDTLS_ERR_ECP_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_ECP_BAD_INPUT_DATA
	.comm	_MBEDTLS_ERR_ECP_BUFFER_TOO_SMALL,4,2 ## @MBEDTLS_ERR_ECP_BUFFER_TOO_SMALL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_ecp_point_write_binary ; -- Begin function mbedtls_ecp_point_write_binary
	.p2align	2
_mbedtls_ecp_point_write_binary:        ; @mbedtls_ecp_point_write_binary
	.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
Lloh0:
	adrp	x26, _MBEDTLS_ECP_PF_UNCOMPRESSED@GOTPAGE
Lloh1:
	ldr	x26, [x26, _MBEDTLS_ECP_PF_UNCOMPRESSED@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh2:
	adrp	x25, _MBEDTLS_ECP_PF_COMPRESSED@GOTPAGE
Lloh3:
	ldr	x25, [x25, _MBEDTLS_ECP_PF_COMPRESSED@GOTPAGEOFF]
	ldr	w9, [x25]
	cmp	w8, w2
	ccmp	w9, w2, #4, ne
	b.ne	LBB0_5
; %bb.1:
	mov	x23, x5
	mov	x19, x4
	mov	x22, x3
	mov	x24, x2
	mov	x20, x1
	mov	x21, x0
	add	x0, x1, #8
	mov	w1, #0
	bl	_mbedtls_mpi_cmp_int
	cbz	x0, LBB0_6
; %bb.2:
	mov	x0, x21
	bl	_mbedtls_mpi_size
	mov	x21, x0
	ldr	w8, [x26]
	cmp	w8, w24
	b.ne	LBB0_8
; %bb.3:
	mov	w8, #1
	bfi	x8, x21, #1, #63
	str	x8, [x22]
	cmp	x8, x23
	b.hi	LBB0_10
; %bb.4:
	mov	w8, #4
	strb	w8, [x19], #1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_mbedtls_mpi_write_binary
	bl	_MBEDTLS_MPI_CHK
	add	x0, x20, #4
	add	x1, x19, x21
	b	LBB0_12
LBB0_5:
Lloh4:
	adrp	x8, _MBEDTLS_ERR_ECP_BAD_INPUT_DATA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MBEDTLS_ERR_ECP_BAD_INPUT_DATA@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	b	LBB0_14
LBB0_6:
	cbz	x23, LBB0_10
; %bb.7:
	mov	w0, #0
	strb	wzr, [x19]
	mov	w8, #1
	str	x8, [x22]
	b	LBB0_14
LBB0_8:
	ldr	w8, [x25]
	cmp	w8, w24
	b.ne	LBB0_13
; %bb.9:
	add	x8, x21, #1
	str	x8, [x22]
	cmp	x8, x23
	b.ls	LBB0_11
LBB0_10:
Lloh7:
	adrp	x8, _MBEDTLS_ERR_ECP_BUFFER_TOO_SMALL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MBEDTLS_ERR_ECP_BUFFER_TOO_SMALL@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	b	LBB0_14
LBB0_11:
	add	x0, x20, #4
	mov	w1, #0
	bl	_mbedtls_mpi_get_bit
	add	w8, w0, #2
	strb	w8, [x19], #1
	mov	x0, x20
	mov	x1, x19
LBB0_12:
	mov	x2, x21
	bl	_mbedtls_mpi_write_binary
	bl	_MBEDTLS_MPI_CHK
LBB0_13:
	mov	w0, #0
LBB0_14:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ECP_PF_UNCOMPRESSED,4,2 ; @MBEDTLS_ECP_PF_UNCOMPRESSED
	.comm	_MBEDTLS_ECP_PF_COMPRESSED,4,2  ; @MBEDTLS_ECP_PF_COMPRESSED
	.comm	_MBEDTLS_ERR_ECP_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_ECP_BAD_INPUT_DATA
	.comm	_MBEDTLS_ERR_ECP_BUFFER_TOO_SMALL,4,2 ; @MBEDTLS_ERR_ECP_BUFFER_TOO_SMALL
.subsections_via_symbols
