	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_teap_use_pac_opaque
_eap_teap_use_pac_opaque:               ## @eap_teap_use_pac_opaque
	.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, %r13
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	(%r13), %r14
	leaq	16(%r14), %r12
	movq	%r12, %rdi
	callq	_os_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_PAC_TYPE_PAC_OPAQUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_host_to_be16
	movq	%rax, 8(%rbx)
	movq	%r14, %rdi
	callq	_host_to_be16
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	addq	$16, %rdi
	movl	8(%r13), %esi
	movq	%r14, %rdx
	callq	_os_memcpy
	movl	(%r15), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	_TLS_EXT_PAC_OPAQUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rcx
	movq	%r12, %r8
	callq	_tls_connection_client_hello_ext
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	callq	_os_free
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_2:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movq	%rbx, %rdi
	callq	_os_free
	movl	$-1, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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-TEAP: Add PAC-Opaque TLS extension"

	.comm	_PAC_TYPE_PAC_OPAQUE,8,3        ## @PAC_TYPE_PAC_OPAQUE
	.comm	_TLS_EXT_PAC_OPAQUE,4,2         ## @TLS_EXT_PAC_OPAQUE
L_.str.1:                               ## @.str.1
	.asciz	"EAP-TEAP: Failed to add PAC-Opaque TLS extension"

	.no_dead_strip	_eap_teap_use_pac_opaque
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_teap_use_pac_opaque
_eap_teap_use_pac_opaque:               ; @eap_teap_use_pac_opaque
	.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
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x25, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	x24, [x23]
	add	x22, x24, #16
	mov	x0, x22
	bl	_os_malloc
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
Lloh4:
	adrp	x8, _PAC_TYPE_PAC_OPAQUE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PAC_TYPE_PAC_OPAQUE@GOTPAGEOFF]
Lloh6:
	ldr	x0, [x8]
	bl	_host_to_be16
	str	x0, [x19, #8]
	mov	x0, x24
	bl	_host_to_be16
	str	x0, [x19]
	add	x0, x19, #16
	ldr	w1, [x23, #8]
	mov	x2, x24
	bl	_os_memcpy
	ldr	w0, [x21]
	ldr	w1, [x20]
Lloh7:
	adrp	x8, _TLS_EXT_PAC_OPAQUE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TLS_EXT_PAC_OPAQUE@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x3, x19
	mov	x4, x22
	bl	_tls_connection_client_hello_ext
	tbnz	x0, #63, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_os_free
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	ldr	w0, [x25]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	x0, x19
	bl	_os_free
	mov	w0, #-1
LBB0_4:
	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
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TEAP: Add PAC-Opaque TLS extension"

	.comm	_PAC_TYPE_PAC_OPAQUE,8,3        ; @PAC_TYPE_PAC_OPAQUE
	.comm	_TLS_EXT_PAC_OPAQUE,4,2         ; @TLS_EXT_PAC_OPAQUE
l_.str.1:                               ; @.str.1
	.asciz	"EAP-TEAP: Failed to add PAC-Opaque TLS extension"

	.no_dead_strip	_eap_teap_use_pac_opaque
.subsections_via_symbols
