	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_ttls_build_phase2_eap_req
_eap_ttls_build_phase2_eap_req:         ## @eap_ttls_build_phase2_eap_req
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rsi), %rax
	movl	4(%rsi), %esi
	callq	*(%rax)
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdx
	callq	_wpa_hexdump_buf_key
	movq	_RADIUS_ATTR_EAP_MESSAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_eap_ttls_avp_encapsulate
	movl	(%r12), %edi
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdx
	callq	_wpa_hexdump_buf_key
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_eap_server_tls_encrypt
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_wpabuf_free
	movq	%r14, %rax
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
LBB0_3:
	xorl	%eax, %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-TTLS/EAP: Encapsulate Phase 2 data"

	.comm	_RADIUS_ATTR_EAP_MESSAGE,4,2    ## @RADIUS_ATTR_EAP_MESSAGE
L_.str.1:                               ## @.str.1
	.asciz	"EAP-TTLS/EAP: Failed to encapsulate packet"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-TTLS/EAP: Encrypt encapsulated Phase 2 data"

	.no_dead_strip	_eap_ttls_build_phase2_eap_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_ttls_build_phase2_eap_req
_eap_ttls_build_phase2_eap_req:         ; @eap_ttls_build_phase2_eap_req
	.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	x20, x0
	ldr	x8, [x1, #8]
	ldr	x8, [x8]
	ldr	w1, [x1, #4]
	blr	x8
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x22, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_wpa_hexdump_buf_key
Lloh4:
	adrp	x8, _RADIUS_ATTR_EAP_MESSAGE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RADIUS_ATTR_EAP_MESSAGE@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #1
	bl	_eap_ttls_avp_encapsulate
	mov	x21, x0
	ldr	w0, [x22]
	cbz	x21, LBB0_3
; %bb.2:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x21
	bl	_wpa_hexdump_buf_key
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_eap_server_tls_encrypt
	mov	x19, x0
	mov	x0, x21
	bl	_wpabuf_free
	mov	x0, x19
	b	LBB0_5
LBB0_3:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
LBB0_4:
	mov	x0, #0
LBB0_5:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TTLS/EAP: Encapsulate Phase 2 data"

	.comm	_RADIUS_ATTR_EAP_MESSAGE,4,2    ; @RADIUS_ATTR_EAP_MESSAGE
l_.str.1:                               ; @.str.1
	.asciz	"EAP-TTLS/EAP: Failed to encapsulate packet"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-TTLS/EAP: Encrypt encapsulated Phase 2 data"

	.no_dead_strip	_eap_ttls_build_phase2_eap_req
.subsections_via_symbols
