	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_teap_tlv_eap_payload       ## -- Begin function eap_teap_tlv_eap_payload
	.p2align	4, 0x90
_eap_teap_tlv_eap_payload:              ## @eap_teap_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %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	_TEAP_TLV_MANDATORY@GOTPCREL(%rip), %rax
	movq	_TEAP_TLV_EAP_PAYLOAD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_eap_teap_put_tlv_buf
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_3:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %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
	popq	%rbx
	popq	%r14
	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 EAP-Payload TLV"

	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"EAP-TEAP: Failed to allocate memory for TLV encapsulation"

	.comm	_TEAP_TLV_MANDATORY,4,2         ## @TEAP_TLV_MANDATORY
	.comm	_TEAP_TLV_EAP_PAYLOAD,4,2       ## @TEAP_TLV_EAP_PAYLOAD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_teap_tlv_eap_payload       ; -- Begin function eap_teap_tlv_eap_payload
	.p2align	2
_eap_teap_tlv_eap_payload:              ; @eap_teap_tlv_eap_payload
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	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:
Lloh5:
	adrp	x8, _TEAP_TLV_MANDATORY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TEAP_TLV_MANDATORY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _TEAP_TLV_EAP_PAYLOAD@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TEAP_TLV_EAP_PAYLOAD@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x20
	mov	x2, x19
	bl	_eap_teap_put_tlv_buf
	b	LBB0_5
LBB0_3:
	mov	x20, #0
	b	LBB0_6
LBB0_4:
Lloh11:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	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, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TEAP: Add EAP-Payload TLV"

	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"EAP-TEAP: Failed to allocate memory for TLV encapsulation"

	.comm	_TEAP_TLV_MANDATORY,4,2         ; @TEAP_TLV_MANDATORY
	.comm	_TEAP_TLV_EAP_PAYLOAD,4,2       ; @TEAP_TLV_EAP_PAYLOAD
.subsections_via_symbols
