	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function on_handshake_complete
_on_handshake_complete:                 ## @on_handshake_complete
	.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, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	xorl	%edi, %edi
	cmpq	%r15, (%rbx)
	sete	%dil
	callq	_assert
	movq	_h2o_socket_error_ssl_cert_name_mismatch@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	je	LBB0_1
## %bb.3:
	testq	%r14, %r14
	jne	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_SSL_CTX_get_verify_mode
	testq	%r14, %r14
	je	LBB0_5
## %bb.2:
	movq	_SSL_VERIFY_PEER@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	je	LBB0_5
LBB0_4:
	movq	%r15, %rdi
	callq	_h2o_socket_close
	movq	$0, (%rbx)
LBB0_5:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_call_connect_cb                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_h2o_socket_error_ssl_cert_name_mismatch,8,3 ## @h2o_socket_error_ssl_cert_name_mismatch
	.comm	_SSL_VERIFY_PEER,4,2            ## @SSL_VERIFY_PEER
	.no_dead_strip	_on_handshake_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function on_handshake_complete
_on_handshake_complete:                 ; @on_handshake_complete
	.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, x1
	mov	x21, x0
	ldr	x20, [x0]
	ldr	x8, [x20]
	cmp	x8, x0
	cset	w0, eq
	bl	_assert
Lloh0:
	adrp	x8, _h2o_socket_error_ssl_cert_name_mismatch@GOTPAGE
Lloh1:
	ldr	x8, [x8, _h2o_socket_error_ssl_cert_name_mismatch@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x19
	b.eq	LBB0_2
; %bb.1:
	cbnz	x19, LBB0_4
	b	LBB0_5
LBB0_2:
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_SSL_CTX_get_verify_mode
	cbz	x19, LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _SSL_VERIFY_PEER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSL_VERIFY_PEER@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
	cbz	w8, LBB0_5
LBB0_4:
	mov	x0, x21
	bl	_h2o_socket_close
	str	xzr, [x20]
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	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
	b	_call_connect_cb
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_h2o_socket_error_ssl_cert_name_mismatch,8,3 ; @h2o_socket_error_ssl_cert_name_mismatch
	.comm	_SSL_VERIFY_PEER,4,2            ; @SSL_VERIFY_PEER
	.no_dead_strip	_on_handshake_complete
.subsections_via_symbols
