	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_fast_tlv_eap_payload       ## -- Begin function eap_fast_tlv_eap_payload
	.p2align	4, 0x90
_eap_fast_tlv_eap_payload:              ## @eap_fast_tlv_eap_payload
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	%r14, %rdi
	callq	_wpabuf_len
	leaq	4(%rax), %rdi
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	_EAP_TLV_TYPE_MANDATORY@GOTPCREL(%rip), %rax
	movq	_EAP_TLV_EAP_PAYLOAD_TLV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_eap_fast_put_tlv_buf
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_3:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	xorl	%ebx, %ebx
LBB0_5:
	movq	%r14, %rdi
	callq	_wpabuf_free
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	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-FAST: Add EAP-Payload TLV"

L_.str.1:                               ## @.str.1
	.asciz	"EAP-FAST: Failed to allocate memory for TLV encapsulation"

	.comm	_EAP_TLV_TYPE_MANDATORY,4,2     ## @EAP_TLV_TYPE_MANDATORY
	.comm	_EAP_TLV_EAP_PAYLOAD_TLV,4,2    ## @EAP_TLV_EAP_PAYLOAD_TLV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_fast_tlv_eap_payload       ; -- Begin function eap_fast_tlv_eap_payload
	.p2align	2
_eap_fast_tlv_eap_payload:              ; @eap_fast_tlv_eap_payload
	.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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x21, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	x0, x19
	bl	_wpabuf_len
	add	x0, x0, #4
	bl	_wpabuf_alloc
	mov	x20, x0
	cbz	x0, LBB0_4
; %bb.2:
Lloh4:
	adrp	x8, _EAP_TLV_TYPE_MANDATORY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EAP_TLV_TYPE_MANDATORY@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _EAP_TLV_EAP_PAYLOAD_TLV@GOTPAGE
Lloh8:
	ldr	x9, [x9, _EAP_TLV_EAP_PAYLOAD_TLV@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x20
	mov	x2, x19
	bl	_eap_fast_put_tlv_buf
	b	LBB0_5
LBB0_3:
	mov	x20, #0
	b	LBB0_6
LBB0_4:
	ldr	w0, [x21]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
LBB0_5:
	mov	x0, x19
	bl	_wpabuf_free
LBB0_6:
	mov	x0, x20
	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 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-FAST: Add EAP-Payload TLV"

l_.str.1:                               ; @.str.1
	.asciz	"EAP-FAST: Failed to allocate memory for TLV encapsulation"

	.comm	_EAP_TLV_TYPE_MANDATORY,4,2     ; @EAP_TLV_TYPE_MANDATORY
	.comm	_EAP_TLV_EAP_PAYLOAD_TLV,4,2    ; @EAP_TLV_EAP_PAYLOAD_TLV
.subsections_via_symbols
