	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_ssl_set_session        ## -- Begin function mbedtls_ssl_set_session
	.p2align	4, 0x90
_mbedtls_ssl_set_session:               ## @mbedtls_ssl_set_session
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.2:
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movq	_MBEDTLS_SSL_IS_CLIENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	callq	_ssl_session_copy
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	(%rbx), %rax
	movl	$1, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_4:
	movq	_MBEDTLS_ERR_SSL_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_SSL_IS_CLIENT,8,3      ## @MBEDTLS_SSL_IS_CLIENT
	.comm	_MBEDTLS_ERR_SSL_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_SSL_BAD_INPUT_DATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_ssl_set_session        ; -- Begin function mbedtls_ssl_set_session
	.p2align	2
_mbedtls_ssl_set_session:               ; @mbedtls_ssl_set_session
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_6
; %bb.1:
	cbz	x1, LBB0_6
; %bb.2:
	mov	x19, x0
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _MBEDTLS_SSL_IS_CLIENT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MBEDTLS_SSL_IS_CLIENT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	bl	_ssl_session_copy
	cbnz	w0, LBB0_7
; %bb.5:
	ldr	x8, [x19]
	mov	w9, #1
	str	w9, [x8]
	b	LBB0_7
LBB0_6:
Lloh3:
	adrp	x8, _MBEDTLS_ERR_SSL_BAD_INPUT_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MBEDTLS_ERR_SSL_BAD_INPUT_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_SSL_IS_CLIENT,8,3      ; @MBEDTLS_SSL_IS_CLIENT
	.comm	_MBEDTLS_ERR_SSL_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_SSL_BAD_INPUT_DATA
.subsections_via_symbols
