	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_construct_ctos_psk_kex_modes ## -- Begin function tls_construct_ctos_psk_kex_modes
	.p2align	4, 0x90
_tls_construct_ctos_psk_kex_modes:      ## @tls_construct_ctos_psk_kex_modes
	.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	%rdi, %r14
	movq	_SSL_OP_ALLOW_NO_DHE_KEX@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	andl	(%rdi), %r15d
	movq	_TLSEXT_TYPE_psk_kex_modes@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_WPACKET_put_bytes_u16
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movq	%rbx, %rdi
	callq	_WPACKET_start_sub_packet_u16
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	movq	%rbx, %rdi
	callq	_WPACKET_start_sub_packet_u8
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	movq	_TLSEXT_KEX_MODE_KE_DHE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_WPACKET_put_bytes_u8
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.5:
	movq	_TLSEXT_KEX_MODE_KE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_WPACKET_put_bytes_u8
	testl	%eax, %eax
	je	LBB0_8
LBB0_6:
	movq	%rbx, %rdi
	callq	_WPACKET_close
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_WPACKET_close
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	_TLSEXT_KEX_MODE_FLAG_KE_DHE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, 4(%r14)
	movq	_EXT_RETURN_SENT@GOTPCREL(%rip), %rax
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.10:
	movq	_TLSEXT_KEX_MODE_FLAG_KE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, 4(%r14)
	jmp	LBB0_11
LBB0_8:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_CONSTRUCT_CTOS_PSK_KEX_MODES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_SSLfatal
	movq	_EXT_RETURN_FAIL@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_OP_ALLOW_NO_DHE_KEX,4,2    ## @SSL_OP_ALLOW_NO_DHE_KEX
	.comm	_TLSEXT_TYPE_psk_kex_modes,4,2  ## @TLSEXT_TYPE_psk_kex_modes
	.comm	_TLSEXT_KEX_MODE_KE_DHE,4,2     ## @TLSEXT_KEX_MODE_KE_DHE
	.comm	_TLSEXT_KEX_MODE_KE,4,2         ## @TLSEXT_KEX_MODE_KE
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_TLS_CONSTRUCT_CTOS_PSK_KEX_MODES,4,2 ## @SSL_F_TLS_CONSTRUCT_CTOS_PSK_KEX_MODES
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.comm	_EXT_RETURN_FAIL,4,2            ## @EXT_RETURN_FAIL
	.comm	_TLSEXT_KEX_MODE_FLAG_KE_DHE,4,2 ## @TLSEXT_KEX_MODE_FLAG_KE_DHE
	.comm	_TLSEXT_KEX_MODE_FLAG_KE,4,2    ## @TLSEXT_KEX_MODE_FLAG_KE
	.comm	_EXT_RETURN_SENT,4,2            ## @EXT_RETURN_SENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_construct_ctos_psk_kex_modes ; -- Begin function tls_construct_ctos_psk_kex_modes
	.p2align	2
_tls_construct_ctos_psk_kex_modes:      ; @tls_construct_ctos_psk_kex_modes
	.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
	mov	x19, x0
	ldr	w21, [x0]
Lloh0:
	adrp	x8, _SSL_OP_ALLOW_NO_DHE_KEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSL_OP_ALLOW_NO_DHE_KEX@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _TLSEXT_TYPE_psk_kex_modes@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TLSEXT_TYPE_psk_kex_modes@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_WPACKET_put_bytes_u16
	cbz	w0, LBB0_11
; %bb.1:
	mov	x0, x20
	bl	_WPACKET_start_sub_packet_u16
	cbz	w0, LBB0_11
; %bb.2:
	mov	x0, x20
	bl	_WPACKET_start_sub_packet_u8
	cbz	w0, LBB0_11
; %bb.3:
Lloh6:
	adrp	x8, _TLSEXT_KEX_MODE_KE_DHE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TLSEXT_KEX_MODE_KE_DHE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_WPACKET_put_bytes_u8
	cbz	w0, LBB0_11
; %bb.4:
	and	w21, w22, w21
	cbz	w21, LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _TLSEXT_KEX_MODE_KE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TLSEXT_KEX_MODE_KE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_WPACKET_put_bytes_u8
	cbz	w0, LBB0_11
LBB0_6:
	mov	x0, x20
	bl	_WPACKET_close
	cbz	w0, LBB0_11
; %bb.7:
	mov	x0, x20
	bl	_WPACKET_close
	cbz	w0, LBB0_11
; %bb.8:
Lloh12:
	adrp	x8, _TLSEXT_KEX_MODE_FLAG_KE_DHE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TLSEXT_KEX_MODE_FLAG_KE_DHE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	cbz	w21, LBB0_10
; %bb.9:
Lloh15:
	adrp	x9, _TLSEXT_KEX_MODE_FLAG_KE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TLSEXT_KEX_MODE_FLAG_KE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_10:
Lloh18:
	adrp	x8, _EXT_RETURN_SENT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EXT_RETURN_SENT@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh20:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _SSL_F_TLS_CONSTRUCT_CTOS_PSK_KEX_MODES@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SSL_F_TLS_CONSTRUCT_CTOS_PSK_KEX_MODES@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
Lloh26:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
Lloh28:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
Lloh29:
	adrp	x8, _EXT_RETURN_FAIL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EXT_RETURN_FAIL@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_OP_ALLOW_NO_DHE_KEX,4,2    ; @SSL_OP_ALLOW_NO_DHE_KEX
	.comm	_TLSEXT_TYPE_psk_kex_modes,4,2  ; @TLSEXT_TYPE_psk_kex_modes
	.comm	_TLSEXT_KEX_MODE_KE_DHE,4,2     ; @TLSEXT_KEX_MODE_KE_DHE
	.comm	_TLSEXT_KEX_MODE_KE,4,2         ; @TLSEXT_KEX_MODE_KE
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_TLS_CONSTRUCT_CTOS_PSK_KEX_MODES,4,2 ; @SSL_F_TLS_CONSTRUCT_CTOS_PSK_KEX_MODES
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.comm	_EXT_RETURN_FAIL,4,2            ; @EXT_RETURN_FAIL
	.comm	_TLSEXT_KEX_MODE_FLAG_KE_DHE,4,2 ; @TLSEXT_KEX_MODE_FLAG_KE_DHE
	.comm	_TLSEXT_KEX_MODE_FLAG_KE,4,2    ; @TLSEXT_KEX_MODE_FLAG_KE
	.comm	_EXT_RETURN_SENT,4,2            ; @EXT_RETURN_SENT
.subsections_via_symbols
