	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_derive_keys                ## -- Begin function tls_derive_keys
	.p2align	4, 0x90
_tls_derive_keys:                       ## @tls_derive_keys
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_TLS_RANDOM_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leal	(%rbx,%rbx), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_TLS_MAX_KEY_BLOCK_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	testq	%r13, %r13
	je	LBB0_5
## %bb.1:
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	callq	_wpa_hexdump_key
	movq	80(%r14), %rsi
	movq	_TLS_RANDOM_LEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_os_memcpy
	movslq	(%rbx), %rdx
	leaq	(%r15,%rdx,4), %rdi
	movq	88(%r14), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_os_memcpy
	movl	(%rbx), %r9d
	addl	%r9d, %r9d
	movq	(%r14), %rdi
	movq	_TLS_MASTER_SECRET_LEN@GOTPCREL(%rip), %rbx
	leaq	L_.str.1(%rip), %rcx
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	%r15, %r8
	pushq	(%rbx)
	pushq	72(%r14)
	callq	_tls_prf
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_3
LBB0_4:
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	72(%r14), %rdx
	movq	(%rbx), %rcx
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_hexdump_key
	movq	_TLS_RANDOM_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_5:
	movq	88(%r14), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_os_memcpy
	movq	_TLS_RANDOM_LEN@GOTPCREL(%rip), %r13
	movslq	(%r13), %rdx
	leaq	(%r15,%rdx,4), %rdi
	movq	80(%r14), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_os_memcpy
	movslq	8(%r14), %rax
	movslq	12(%r14), %rbx
	addq	%rax, %rbx
	addq	%rbx, %rbx
	movq	(%r14), %rdi
	movq	_TLS_VERSION_1@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rdi
	movq	%r13, %rcx
	jne	LBB0_7
## %bb.6:
	movslq	16(%r14), %rax
	leaq	(%rbx,%rax,2), %rbx
LBB0_7:
	movq	72(%r14), %rsi
	movq	_TLS_MASTER_SECRET_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	(%rcx), %r9d
	addl	%r9d, %r9d
	leaq	L_.str.4(%rip), %rcx
	movq	%r15, %r8
	pushq	%rbx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	pushq	%r15
	callq	_tls_prf
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
LBB0_3:
	callq	_wpa_printf
	movl	$-1, %ebx
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_wpa_hexdump_key
	movq	64(%r14), %rdi
	movl	8(%r14), %edx
	movq	%r15, %rsi
	callq	_os_memcpy
	movslq	8(%r14), %rdx
	leaq	(%r15,%rdx,4), %rbx
	movq	56(%r14), %rdi
	movq	%rbx, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_os_memcpy
	movslq	8(%r14), %rax
	leaq	(%rbx,%rax,4), %rbx
	movq	48(%r14), %rdi
	movl	12(%r14), %edx
	movq	%rbx, %rsi
	callq	_os_memcpy
	movslq	12(%r14), %rdx
	leaq	(%rbx,%rdx,4), %rbx
	movq	40(%r14), %rdi
	movq	%rbx, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_os_memcpy
	movq	(%r14), %rax
	cmpq	(%r12), %rax
	jne	LBB0_11
## %bb.10:
	movslq	12(%r14), %rax
	leaq	(%rbx,%rax,4), %rbx
	movq	24(%r14), %rdi
	movl	16(%r14), %edx
	movq	%rbx, %rsi
	callq	_os_memcpy
	movslq	16(%r14), %rdx
	leaq	(%rbx,%rdx,4), %rsi
	movq	32(%r14), %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_os_memcpy
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_11:
	movq	24(%r14), %rdi
	movl	16(%r14), %edx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_os_memset
	jmp	LBB0_12
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TLS_RANDOM_LEN,4,2             ## @TLS_RANDOM_LEN
	.comm	_TLS_MAX_KEY_BLOCK_LEN,4,2      ## @TLS_MAX_KEY_BLOCK_LEN
	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TLSv1: pre_master_secret"

L_.str.1:                               ## @.str.1
	.asciz	"master secret"

	.comm	_TLS_MASTER_SECRET_LEN,8,3      ## @TLS_MASTER_SECRET_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"TLSv1: Failed to derive master_secret"

L_.str.3:                               ## @.str.3
	.asciz	"TLSv1: master_secret"

	.comm	_TLS_VERSION_1,8,3              ## @TLS_VERSION_1
L_.str.4:                               ## @.str.4
	.asciz	"key expansion"

L_.str.5:                               ## @.str.5
	.asciz	"TLSv1: Failed to derive key_block"

L_.str.6:                               ## @.str.6
	.asciz	"TLSv1: key_block"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_derive_keys                ; -- Begin function tls_derive_keys
	.p2align	2
_tls_derive_keys:                       ; @tls_derive_keys
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x24, _TLS_RANDOM_LEN@GOTPAGE
Lloh4:
	ldr	x24, [x24, _TLS_RANDOM_LEN@GOTPAGEOFF]
	ldr	w2, [x24]
	lsl	w8, w2, #1
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh7:
	adrp	x8, _TLS_MAX_KEY_BLOCK_LEN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TLS_MAX_KEY_BLOCK_LEN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh12:
	adrp	x25, _TLS_MASTER_SECRET_LEN@GOTPAGE
Lloh13:
	ldr	x25, [x25, _TLS_MASTER_SECRET_LEN@GOTPAGEOFF]
	cbz	x1, LBB0_4
; %bb.1:
Lloh14:
	adrp	x26, _MSG_MSGDUMP@GOTPAGE
Lloh15:
	ldr	x26, [x26, _MSG_MSGDUMP@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	mov	x3, x22
	bl	_wpa_hexdump_key
	ldr	x1, [x19, #80]
	ldr	w2, [x24]
	mov	x0, x21
	bl	_os_memcpy
	ldrsw	x2, [x24]
	add	x0, x21, x2, lsl #2
	ldr	x1, [x19, #88]
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_os_memcpy
	ldr	x0, [x19]
	ldr	w8, [x24]
	lsl	w5, w8, #1
	ldr	x6, [x19, #72]
	ldr	x7, [x25]
Lloh18:
	adrp	x3, l_.str.1@PAGE
Lloh19:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x1, x23
	mov	x2, x22
	mov	x4, x21
	bl	_tls_prf
	cbz	x0, LBB0_3
; %bb.2:
Lloh20:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_3:
	ldr	w0, [x26]
	ldr	x2, [x19, #72]
	ldr	x3, [x25]
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_hexdump_key
	ldr	w2, [x24]
LBB0_4:
	ldr	x1, [x19, #88]
	mov	x0, x21
	bl	_os_memcpy
	ldrsw	x2, [x24]
	add	x0, x21, x2, lsl #2
	ldr	x1, [x19, #80]
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_os_memcpy
	ldp	w8, w9, [x19, #8]
	add	w8, w9, w8
	lsl	w8, w8, #1
	sxtw	x22, w8
	ldr	x0, [x19]
Lloh27:
	adrp	x23, _TLS_VERSION_1@GOTPAGE
Lloh28:
	ldr	x23, [x23, _TLS_VERSION_1@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.5:
	ldrsw	x8, [x19, #16]
	add	x22, x22, x8, lsl #1
LBB0_6:
	ldr	x1, [x19, #72]
	ldr	x2, [x25]
	ldr	w8, [x24]
	lsl	w5, w8, #1
Lloh29:
	adrp	x3, l_.str.4@PAGE
Lloh30:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x4, x21
	mov	x6, x20
	mov	x7, x22
	bl	_tls_prf
	cbz	x0, LBB0_9
; %bb.7:
Lloh31:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x1, l_.str.5@PAGE
Lloh35:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_8:
	bl	_wpa_printf
	mov	w0, #-1
	b	LBB0_13
LBB0_9:
Lloh36:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
Lloh39:
	adrp	x1, l_.str.6@PAGE
Lloh40:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x2, x20
	mov	x3, x22
	bl	_wpa_hexdump_key
	ldr	x0, [x19, #64]
	ldr	w2, [x19, #8]
	mov	x1, x20
	bl	_os_memcpy
	ldrsw	x2, [x19, #8]
	add	x20, x20, x2, lsl #2
	ldr	x0, [x19, #56]
	mov	x1, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_os_memcpy
	ldp	w8, w2, [x19, #8]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	add	x20, x20, x8, lsl #2
	ldr	x0, [x19, #48]
	mov	x1, x20
	bl	_os_memcpy
	ldrsw	x2, [x19, #12]
	add	x20, x20, x2, lsl #2
	ldr	x0, [x19, #40]
	mov	x1, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_os_memcpy
	ldr	x8, [x19]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	ldp	w8, w2, [x19, #12]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	add	x20, x20, x8, lsl #2
	ldr	x0, [x19, #24]
	mov	x1, x20
	bl	_os_memcpy
	ldrsw	x2, [x19, #16]
	add	x1, x20, x2, lsl #2
	ldr	x0, [x19, #32]
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_os_memcpy
	b	LBB0_12
LBB0_11:
	ldr	x0, [x19, #24]
	ldr	w2, [x19, #16]
	mov	w1, #0
	bl	_os_memset
LBB0_12:
	mov	w0, #0
LBB0_13:
	ldur	x8, [x29, #-72]
Lloh41:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh42:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_TLS_RANDOM_LEN,4,2             ; @TLS_RANDOM_LEN
	.comm	_TLS_MAX_KEY_BLOCK_LEN,4,2      ; @TLS_MAX_KEY_BLOCK_LEN
	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TLSv1: pre_master_secret"

l_.str.1:                               ; @.str.1
	.asciz	"master secret"

	.comm	_TLS_MASTER_SECRET_LEN,8,3      ; @TLS_MASTER_SECRET_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"TLSv1: Failed to derive master_secret"

l_.str.3:                               ; @.str.3
	.asciz	"TLSv1: master_secret"

	.comm	_TLS_VERSION_1,8,3              ; @TLS_VERSION_1
l_.str.4:                               ; @.str.4
	.asciz	"key expansion"

l_.str.5:                               ; @.str.5
	.asciz	"TLSv1: Failed to derive key_block"

l_.str.6:                               ; @.str.6
	.asciz	"TLSv1: key_block"

.subsections_via_symbols
