	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_tlv_build_result
_eap_tlv_build_result:                  ## @eap_tlv_build_result
	.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
	movl	%r8d, %r12d
	movl	%ecx, %r8d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	_NO_BINDING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%al
	testl	%edx, %edx
	sete	%r13b
	orb	%al, %r13b
	movl	$6, %eax
	movl	$66, %edx
	cmovneq	%rax, %rdx
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EAP_TYPE_TLV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EAP_CODE_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_eap_msg_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$128, %esi
	callq	_wpabuf_put_u8
	movq	_EAP_TLV_RESULT_TLV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wpabuf_put_u8
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_wpabuf_put_be16
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_wpabuf_put_be16
	testb	%r13b, %r13b
	jne	LBB0_5
## %bb.2:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_eap_tlv_add_cryptobinding
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_wpabuf_clear_free
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NO_BINDING,8,3                 ## @NO_BINDING
	.comm	_EAP_VENDOR_IETF,4,2            ## @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_TLV,4,2               ## @EAP_TYPE_TLV
	.comm	_EAP_CODE_RESPONSE,4,2          ## @EAP_CODE_RESPONSE
	.comm	_EAP_TLV_RESULT_TLV,4,2         ## @EAP_TLV_RESULT_TLV
	.no_dead_strip	_eap_tlv_build_result
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_tlv_build_result
_eap_tlv_build_result:                  ; @eap_tlv_build_result
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x4
	mov	x4, x3
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _NO_BINDING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NO_BINDING@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	w2, #0
	ccmp	x8, x9, #4, ne
	cset	w23, eq
	mov	w8, #66
	mov	w9, #6
	csel	x2, x9, x8, eq
Lloh3:
	adrp	x8, _EAP_VENDOR_IETF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAP_VENDOR_IETF@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _EAP_TYPE_TLV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EAP_TYPE_TLV@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _EAP_CODE_RESPONSE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EAP_CODE_RESPONSE@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	bl	_eap_msg_alloc
	mov	x22, x0
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x22
	mov	w1, #128
	bl	_wpabuf_put_u8
Lloh12:
	adrp	x8, _EAP_TLV_RESULT_TLV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EAP_TLV_RESULT_TLV@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_wpabuf_put_u8
	mov	x0, x22
	mov	w1, #2
	bl	_wpabuf_put_be16
	mov	x0, x22
	mov	x1, x21
	bl	_wpabuf_put_be16
	tbnz	w23, #0, LBB0_4
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_eap_tlv_add_cryptobinding
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x22
	bl	_wpabuf_clear_free
	mov	x22, #0
LBB0_4:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_NO_BINDING,8,3                 ; @NO_BINDING
	.comm	_EAP_VENDOR_IETF,4,2            ; @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_TLV,4,2               ; @EAP_TYPE_TLV
	.comm	_EAP_CODE_RESPONSE,4,2          ; @EAP_CODE_RESPONSE
	.comm	_EAP_TLV_RESULT_TLV,4,2         ; @EAP_TLV_RESULT_TLV
	.no_dead_strip	_eap_tlv_build_result
.subsections_via_symbols
