	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssl_ciphersuite_match
_ssl_ciphersuite_match:                 ## @ssl_ciphersuite_match
	.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	%rdx, %r14
	movq	%rdi, %r15
	movl	%esi, %edi
	callq	_mbedtls_ssl_ciphersuite_from_id
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movslq	40(%rax), %rsi
	movl	$3, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	movq	(%r15), %rax
	cmpq	%rax, (%rbx)
	jg	LBB0_4
## %bb.3:
	cmpq	%rax, 8(%rbx)
	jge	LBB0_5
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	movl	$3, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	movq	_MBEDTLS_ERR_SSL_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_5:
	movq	%rbx, (%r14)
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"should never happen"

	.comm	_MBEDTLS_ERR_SSL_INTERNAL_ERROR,4,2 ## @MBEDTLS_ERR_SSL_INTERNAL_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"ciphersuite mismatch: version"

	.comm	_MBEDTLS_CIPHERSUITE_NODTLS,4,2 ## @MBEDTLS_CIPHERSUITE_NODTLS
	.comm	_MBEDTLS_CIPHER_ARC4_128,8,3    ## @MBEDTLS_CIPHER_ARC4_128
	.comm	_MBEDTLS_KEY_EXCHANGE_ECJPAKE,8,3 ## @MBEDTLS_KEY_EXCHANGE_ECJPAKE
	.comm	_MBEDTLS_MD_NONE,8,3            ## @MBEDTLS_MD_NONE
	.comm	_MBEDTLS_PK_NONE,8,3            ## @MBEDTLS_PK_NONE
	.comm	_MBEDTLS_SSL_ARC4_DISABLED,8,3  ## @MBEDTLS_SSL_ARC4_DISABLED
	.comm	_MBEDTLS_SSL_MINOR_VERSION_3,8,3 ## @MBEDTLS_SSL_MINOR_VERSION_3
	.comm	_MBEDTLS_SSL_TRANSPORT_DATAGRAM,8,3 ## @MBEDTLS_SSL_TRANSPORT_DATAGRAM
	.comm	_MBEDTLS_TLS_EXT_ECJPAKE_KKPP_OK,4,2 ## @MBEDTLS_TLS_EXT_ECJPAKE_KKPP_OK
	.no_dead_strip	_ssl_ciphersuite_match
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssl_ciphersuite_match
_ssl_ciphersuite_match:                 ; @ssl_ciphersuite_match
	.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, x2
	mov	x21, x0
	mov	x0, x1
	bl	_mbedtls_ssl_ciphersuite_from_id
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldrsw	x1, [x0, #40]
	mov	w0, #3
	bl	_MBEDTLS_SSL_DEBUG_MSG
	ldr	x9, [x20]
	ldr	x8, [x21]
	cmp	x9, x8
	b.gt	LBB0_3
; %bb.2:
	ldr	x9, [x20, #8]
	cmp	x9, x8
	b.ge	LBB0_5
LBB0_3:
Lloh0:
	adrp	x1, l_.str.2@PAGE
Lloh1:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #3
	bl	_MBEDTLS_SSL_DEBUG_MSG
	mov	w0, #0
	b	LBB0_6
LBB0_4:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_MBEDTLS_SSL_DEBUG_MSG
Lloh4:
	adrp	x8, _MBEDTLS_ERR_SSL_INTERNAL_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MBEDTLS_ERR_SSL_INTERNAL_ERROR@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_5:
	mov	w0, #0
	str	x20, [x19]
LBB0_6:
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"should never happen"

	.comm	_MBEDTLS_ERR_SSL_INTERNAL_ERROR,4,2 ; @MBEDTLS_ERR_SSL_INTERNAL_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"ciphersuite mismatch: version"

	.comm	_MBEDTLS_CIPHERSUITE_NODTLS,4,2 ; @MBEDTLS_CIPHERSUITE_NODTLS
	.comm	_MBEDTLS_CIPHER_ARC4_128,8,3    ; @MBEDTLS_CIPHER_ARC4_128
	.comm	_MBEDTLS_KEY_EXCHANGE_ECJPAKE,8,3 ; @MBEDTLS_KEY_EXCHANGE_ECJPAKE
	.comm	_MBEDTLS_MD_NONE,8,3            ; @MBEDTLS_MD_NONE
	.comm	_MBEDTLS_PK_NONE,8,3            ; @MBEDTLS_PK_NONE
	.comm	_MBEDTLS_SSL_ARC4_DISABLED,8,3  ; @MBEDTLS_SSL_ARC4_DISABLED
	.comm	_MBEDTLS_SSL_MINOR_VERSION_3,8,3 ; @MBEDTLS_SSL_MINOR_VERSION_3
	.comm	_MBEDTLS_SSL_TRANSPORT_DATAGRAM,8,3 ; @MBEDTLS_SSL_TRANSPORT_DATAGRAM
	.comm	_MBEDTLS_TLS_EXT_ECJPAKE_KKPP_OK,4,2 ; @MBEDTLS_TLS_EXT_ECJPAKE_KKPP_OK
	.no_dead_strip	_ssl_ciphersuite_match
.subsections_via_symbols
