	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tlsv1_client_hello_ext         ## -- Begin function tlsv1_client_hello_ext
	.p2align	4, 0x90
_tlsv1_client_hello_ext:                ## @tlsv1_client_hello_ext
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movl	$0, (%rdi)
	movq	8(%rdi), %rdi
	callq	_os_free
	movq	$0, 8(%rbx)
	movl	$0, 4(%rbx)
	xorl	%eax, %eax
	testq	%r12, %r12
	je	LBB0_7
## %bb.1:
	testq	%r15, %r15
	je	LBB0_7
## %bb.2:
	leal	4(%r15), %edi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	callq	_os_malloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movslq	%r13d, %r13
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_WPA_PUT_BE16
	leaq	8(%r14), %rdi
	movq	%r15, %rsi
	callq	_WPA_PUT_BE16
	addq	$16, %r14
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_os_memcpy
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%rbx)
	movq	_TLS_EXT_PAC_OPAQUE@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_6
## %bb.5:
	movl	$1, (%rbx)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_3:
	movl	$-1, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TLS_EXT_PAC_OPAQUE,4,2         ## @TLS_EXT_PAC_OPAQUE
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TLSv1: Using session ticket"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tlsv1_client_hello_ext         ; -- Begin function tlsv1_client_hello_ext
	.p2align	2
_tlsv1_client_hello_ext:                ; @tlsv1_client_hello_ext
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	str	wzr, [x0]
	ldr	x0, [x0, #8]
	bl	_os_free
	mov	w0, #0
	str	xzr, [x19, #8]
	str	wzr, [x19, #4]
	cbz	x22, LBB0_7
; %bb.1:
	cbz	x21, LBB0_7
; %bb.2:
	add	w23, w21, #4
	mov	x0, x23
	bl	_os_malloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_6
; %bb.3:
	mov	x24, x0
	sxtw	x1, w20
	bl	_WPA_PUT_BE16
	add	x0, x24, #8
	mov	x1, x21
	bl	_WPA_PUT_BE16
	add	x0, x24, #16
	mov	x1, x22
	mov	x2, x21
	bl	_os_memcpy
	str	w23, [x19, #4]
Lloh0:
	adrp	x8, _TLS_EXT_PAC_OPAQUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TLS_EXT_PAC_OPAQUE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_5
; %bb.4:
	mov	w8, #1
	str	w8, [x19]
Lloh3:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TLS_EXT_PAC_OPAQUE,4,2         ; @TLS_EXT_PAC_OPAQUE
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TLSv1: Using session ticket"

.subsections_via_symbols
