	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssl_check_for_safari
_ssl_check_for_safari:                  ## @ssl_check_for_safari
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rsi), %eax
	movl	%eax, -12(%rbp)
	leaq	-12(%rbp), %rdi
	movl	$2, %esi
	callq	_PACKET_forward
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	leaq	-12(%rbp), %rdi
	leaq	-16(%rbp), %rsi
	callq	_PACKET_get_net_2
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	leaq	-12(%rbp), %rdi
	leaq	-20(%rbp), %rsi
	callq	_PACKET_get_length_prefixed_2
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	-16(%rbp), %eax
	movq	_TLSEXT_TYPE_server_name@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_TLS1_get_client_version
	movq	_TLS1_2_VERSION@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	setge	%dl
	shlq	$4, %rdx
	addq	$18, %rdx
	leaq	_ssl_check_for_safari.kSafariExtensionsBlock(%rip), %rsi
	leaq	-12(%rbp), %rdi
	callq	_PACKET_equal
	movl	%eax, (%rbx)
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @ssl_check_for_safari.kSafariExtensionsBlock
_ssl_check_for_safari.kSafariExtensionsBlock:
	.ascii	"\000\n\000\b\000\006\000\027\000\030\000\031\000\013\000\002\001\000\000\r\000\f\000\n\005\001\004\001\002\001\004\003\002\003"

	.comm	_TLSEXT_TYPE_server_name,4,2    ## @TLSEXT_TYPE_server_name
	.comm	_TLS1_2_VERSION,8,3             ## @TLS1_2_VERSION
	.no_dead_strip	_ssl_check_for_safari
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssl_check_for_safari
_ssl_check_for_safari:                  ; @ssl_check_for_safari
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	w8, [x1]
	str	w8, [sp, #4]
	add	x0, sp, #4
	mov	w1, #2
	bl	_PACKET_forward
	cbz	w0, LBB0_5
; %bb.1:
	add	x0, sp, #4
	add	x1, sp, #12
	bl	_PACKET_get_net_2
	cbz	w0, LBB0_5
; %bb.2:
	add	x0, sp, #4
	add	x1, sp, #8
	bl	_PACKET_get_length_prefixed_2
	cbz	w0, LBB0_5
; %bb.3:
	ldr	w8, [sp, #12]
Lloh0:
	adrp	x9, _TLSEXT_TYPE_server_name@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TLSEXT_TYPE_server_name@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_TLS1_get_client_version
Lloh3:
	adrp	x8, _TLS1_2_VERSION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TLS1_2_VERSION@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	mov	w9, #34
	mov	w10, #18
	cmp	x0, x8
	csel	x2, x10, x9, lt
Lloh6:
	adrp	x1, _ssl_check_for_safari.kSafariExtensionsBlock@PAGE
Lloh7:
	add	x1, x1, _ssl_check_for_safari.kSafariExtensionsBlock@PAGEOFF
	add	x0, sp, #4
	bl	_PACKET_equal
	str	w0, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_ssl_check_for_safari.kSafariExtensionsBlock: ; @ssl_check_for_safari.kSafariExtensionsBlock
	.ascii	"\000\n\000\b\000\006\000\027\000\030\000\031\000\013\000\002\001\000\000\r\000\f\000\n\005\001\004\001\002\001\004\003\002\003"

	.comm	_TLSEXT_TYPE_server_name,4,2    ; @TLSEXT_TYPE_server_name
	.comm	_TLS1_2_VERSION,8,3             ; @TLS1_2_VERSION
	.no_dead_strip	_ssl_check_for_safari
.subsections_via_symbols
