	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tls_process_server_hello_extensions
_tls_process_server_hello_extensions:   ## @tls_process_server_hello_extensions
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	callq	_wpa_hexdump
	testq	%r14, %r14
	jle	LBB0_1
## %bb.2:
	leaq	(%rbx,%r14,4), %r12
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rax
	subq	%rbx, %rax
	cmpq	$16, %rax
	jl	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_WPA_GET_BE16
	movl	%eax, %r15d
	leaq	8(%rbx), %rdi
	callq	_WPA_GET_BE16
	addq	$16, %rbx
	movslq	%eax, %r13
	movq	%r12, %rax
	subq	%rbx, %rax
	sarq	$2, %rax
	cmpq	%r13, %rax
	jl	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdx
	movl	%r13d, %ecx
	callq	_wpa_hexdump
	leaq	(%rbx,%r13,4), %rbx
	cmpq	%r12, %rbx
	jb	LBB0_3
	jmp	LBB0_8
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
LBB0_7:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TLSv1: ServerHello extensions"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"TLSv1: Truncated ServerHello extension header"

L_.str.2:                               ## @.str.2
	.asciz	"TLSv1: Truncated ServerHello extension"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.3:                               ## @.str.3
	.asciz	"TLSv1: ServerHello ExtensionType %u"

L_.str.4:                               ## @.str.4
	.asciz	"TLSv1: ServerHello extension data"

	.no_dead_strip	_tls_process_server_hello_extensions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tls_process_server_hello_extensions
_tls_process_server_hello_extensions:   ; @tls_process_server_hello_extensions
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x22, x1
Lloh0:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	mov	x3, x19
	bl	_wpa_hexdump
	cmp	x19, #1
	b.lt	LBB0_5
; %bb.1:
	add	x26, x22, x19, lsl #2
Lloh5:
	adrp	x19, l_.str.1@PAGE
Lloh6:
	add	x19, x19, l_.str.1@PAGEOFF
Lloh7:
	adrp	x25, l_.str.2@PAGE
Lloh8:
	add	x25, x25, l_.str.2@PAGEOFF
Lloh9:
	adrp	x27, _MSG_DEBUG@GOTPAGE
Lloh10:
	ldr	x27, [x27, _MSG_DEBUG@GOTPAGEOFF]
Lloh11:
	adrp	x20, l_.str.3@PAGE
Lloh12:
	add	x20, x20, l_.str.3@PAGEOFF
Lloh13:
	adrp	x21, l_.str.4@PAGE
Lloh14:
	add	x21, x21, l_.str.4@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	x8, x26, x22
	cmp	x8, #16
	b.lt	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_WPA_GET_BE16
	mov	x24, x0
	add	x0, x22, #8
	bl	_WPA_GET_BE16
                                        ; kill: def $w0 killed $w0 def $x0
	add	x22, x22, #16
	sxtw	x23, w0
	sub	x8, x26, x22
	cmp	x23, x8, asr #2
	b.gt	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x27]
	str	x24, [sp]
	mov	x1, x20
	bl	_wpa_printf
	ldr	w0, [x27]
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	bl	_wpa_hexdump
	add	x22, x22, x23, lsl #2
	cmp	x22, x26
	b.lo	LBB0_2
LBB0_5:
	mov	w0, #0
	b	LBB0_8
LBB0_6:
	mov	x19, x25
LBB0_7:
Lloh15:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_wpa_printf
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TLSv1: ServerHello extensions"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"TLSv1: Truncated ServerHello extension header"

l_.str.2:                               ; @.str.2
	.asciz	"TLSv1: Truncated ServerHello extension"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.3:                               ; @.str.3
	.asciz	"TLSv1: ServerHello ExtensionType %u"

l_.str.4:                               ; @.str.4
	.asciz	"TLSv1: ServerHello extension data"

	.no_dead_strip	_tls_process_server_hello_extensions
.subsections_via_symbols
