	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssl_parse_client_dh_public
_ssl_parse_client_dh_public:            ## @ssl_parse_client_dh_public
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	(%rsi), %rax
	leaq	2(%rax), %rsi
	cmpq	%rdx, %rsi
	ja	LBB0_2
## %bb.1:
	movzwl	(%rax), %eax
	rolw	$8, %ax
	movzwl	%ax, %r15d
	movq	%rsi, (%rbx)
	leaq	(%rsi,%r15), %rax
	cmpq	%rdx, %rax
	jbe	LBB0_5
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	movq	_MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	movq	%r15, %rdx
	callq	_mbedtls_dhm_read_public
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	callq	_MBEDTLS_SSL_DEBUG_RET
	movq	_MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE_RP@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_7:
	addq	%r15, (%rbx)
	movq	(%r14), %rdx
	leaq	L_.str.2(%rip), %rsi
	movl	$3, %edi
	callq	_MBEDTLS_SSL_DEBUG_MPI
	xorl	%eax, %eax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE,4,2 ## @MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad client key exchange message"

	.comm	_MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE,4,2 ## @MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE
L_.str.1:                               ## @.str.1
	.asciz	"mbedtls_dhm_read_public"

	.comm	_MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE_RP,4,2 ## @MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE_RP
L_.str.2:                               ## @.str.2
	.asciz	"DHM: GY"

	.no_dead_strip	_ssl_parse_client_dh_public
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssl_parse_client_dh_public
_ssl_parse_client_dh_public:            ; @ssl_parse_client_dh_public
	.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	x20, x1
	ldr	x8, [x1]
	add	x1, x8, #2
	cmp	x1, x2
	b.hi	LBB0_2
; %bb.1:
	ldrh	w8, [x8]
	rev16	w21, w8
	str	x1, [x20]
	add	x8, x1, x21
	cmp	x8, x2
	b.ls	LBB0_5
LBB0_2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_MBEDTLS_SSL_DEBUG_MSG
Lloh2:
	adrp	x8, _MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE@GOTPAGEOFF]
LBB0_3:
	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
LBB0_5:
	mov	x19, x0
	ldr	x0, [x0]
	mov	x2, x21
	bl	_mbedtls_dhm_read_public
	cbz	w0, LBB0_7
; %bb.6:
	mov	x2, x0
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_MBEDTLS_SSL_DEBUG_RET
Lloh6:
	adrp	x8, _MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE_RP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE_RP@GOTPAGEOFF]
	b	LBB0_3
LBB0_7:
	ldr	x8, [x20]
	add	x8, x8, x21
	str	x8, [x20]
	ldr	x2, [x19]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #3
	bl	_MBEDTLS_SSL_DEBUG_MPI
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE,4,2 ; @MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad client key exchange message"

	.comm	_MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE,4,2 ; @MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE
l_.str.1:                               ; @.str.1
	.asciz	"mbedtls_dhm_read_public"

	.comm	_MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE_RP,4,2 ; @MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE_RP
l_.str.2:                               ; @.str.2
	.asciz	"DHM: GY"

	.no_dead_strip	_ssl_parse_client_dh_public
.subsections_via_symbols
