	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_ssl_conf_psk           ## -- Begin function mbedtls_ssl_conf_psk
	.p2align	4, 0x90
_mbedtls_ssl_conf_psk:                  ## @mbedtls_ssl_conf_psk
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.1:
	movq	%rcx, %r15
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.2:
	movq	%rdx, %r12
	movq	_MBEDTLS_PSK_MAX_LEN@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jb	LBB0_11
## %bb.3:
	movq	%r8, %r13
	cmpq	$65535, %r8                     ## imm = 0xFFFF
	ja	LBB0_11
## %bb.4:
	movq	_MBEDTLS_SSL_MAX_CONTENT_LEN@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	jb	LBB0_11
## %bb.5:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	jne	LBB0_7
## %bb.6:
	cmpq	$0, 8(%r14)
	je	LBB0_8
LBB0_7:
	callq	_mbedtls_free
	movq	8(%r14), %rdi
	callq	_mbedtls_free
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
LBB0_8:
	movl	$1, %edi
	movq	%r12, %rsi
	callq	_mbedtls_calloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_15
## %bb.9:
	movl	$1, %edi
	movq	%r13, %rsi
	callq	_mbedtls_calloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:
	movq	%r12, 16(%r14)
	movq	%r13, 24(%r14)
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_memcpy
	movq	8(%r14), %rdi
	movq	24(%r14), %rdx
	movq	%r15, %rsi
	callq	_memcpy
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_11:
	movq	_MBEDTLS_ERR_SSL_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	(%r14), %rax
LBB0_15:
	movq	%rax, %rdi
	callq	_mbedtls_free
	movq	8(%r14), %rdi
	callq	_mbedtls_free
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
	movq	_MBEDTLS_ERR_SSL_ALLOC_FAILED@GOTPCREL(%rip), %rax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_SSL_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_SSL_BAD_INPUT_DATA
	.comm	_MBEDTLS_PSK_MAX_LEN,8,3        ## @MBEDTLS_PSK_MAX_LEN
	.comm	_MBEDTLS_SSL_MAX_CONTENT_LEN,8,3 ## @MBEDTLS_SSL_MAX_CONTENT_LEN
	.comm	_MBEDTLS_ERR_SSL_ALLOC_FAILED,4,2 ## @MBEDTLS_ERR_SSL_ALLOC_FAILED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_ssl_conf_psk           ; -- Begin function mbedtls_ssl_conf_psk
	.p2align	2
_mbedtls_ssl_conf_psk:                  ; @mbedtls_ssl_conf_psk
	.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
	cbz	x1, LBB0_11
; %bb.1:
	mov	x20, x3
	cbz	x3, LBB0_11
; %bb.2:
	mov	x21, x2
Lloh0:
	adrp	x8, _MBEDTLS_PSK_MAX_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_PSK_MAX_LEN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x2
	b.lo	LBB0_11
; %bb.3:
	mov	x23, x4
	lsr	x8, x4, #16
	cbnz	x8, LBB0_11
; %bb.4:
Lloh3:
	adrp	x8, _MBEDTLS_SSL_MAX_CONTENT_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MBEDTLS_SSL_MAX_CONTENT_LEN@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x23
	b.lo	LBB0_11
; %bb.5:
	mov	x22, x1
	mov	x19, x0
	ldr	x0, [x0]
	cbnz	x0, LBB0_7
; %bb.6:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_8
LBB0_7:
	bl	_mbedtls_free
	ldr	x0, [x19, #8]
	bl	_mbedtls_free
	stp	xzr, xzr, [x19]
LBB0_8:
	mov	w0, #1
	mov	x1, x21
	bl	_mbedtls_calloc
	str	x0, [x19]
	cbz	x0, LBB0_15
; %bb.9:
	mov	w0, #1
	mov	x1, x23
	bl	_mbedtls_calloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_14
; %bb.10:
	stp	x21, x23, [x19, #16]
	ldr	x0, [x19]
	mov	x1, x22
	mov	x2, x21
	bl	_memcpy
	ldr	x0, [x19, #8]
	ldr	x2, [x19, #24]
	mov	x1, x20
	bl	_memcpy
	mov	w0, #0
	b	LBB0_13
LBB0_11:
Lloh6:
	adrp	x8, _MBEDTLS_ERR_SSL_BAD_INPUT_DATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MBEDTLS_ERR_SSL_BAD_INPUT_DATA@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
LBB0_13:
	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_14:
	ldr	x0, [x19]
LBB0_15:
	bl	_mbedtls_free
	ldr	x0, [x19, #8]
	bl	_mbedtls_free
	stp	xzr, xzr, [x19]
Lloh8:
	adrp	x8, _MBEDTLS_ERR_SSL_ALLOC_FAILED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MBEDTLS_ERR_SSL_ALLOC_FAILED@GOTPAGEOFF]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_SSL_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_SSL_BAD_INPUT_DATA
	.comm	_MBEDTLS_PSK_MAX_LEN,8,3        ; @MBEDTLS_PSK_MAX_LEN
	.comm	_MBEDTLS_SSL_MAX_CONTENT_LEN,8,3 ; @MBEDTLS_SSL_MAX_CONTENT_LEN
	.comm	_MBEDTLS_ERR_SSL_ALLOC_FAILED,4,2 ; @MBEDTLS_ERR_SSL_ALLOC_FAILED
.subsections_via_symbols
