	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_ttls_avp_hdr
_eap_ttls_avp_hdr:                      ## @eap_ttls_avp_hdr
	.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	%r8, %r12
	movl	%esi, %r15d
	movq	%rdi, %r14
	testl	%ecx, %ecx
	je	LBB0_1
## %bb.2:
	movq	_AVP_FLAGS_MANDATORY@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testl	%edx, %edx
	je	LBB0_4
LBB0_5:
	movq	_AVP_FLAGS_VENDOR@GOTPCREL(%rip), %rax
	orq	(%rax), %rbx
	movl	%edx, %edi
	callq	_host_to_be32
	movq	%rax, 16(%r14)
	movl	$24, %r13d
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
	testl	%edx, %edx
	jne	LBB0_5
LBB0_4:
	movl	$4, %r13d
LBB0_6:
	movl	%r15d, %edi
	callq	_host_to_be32
	movq	%rax, 8(%r14)
	shll	$24, %ebx
	addl	%r13d, %r12d
	orl	%ebx, %r12d
	movl	%r12d, %edi
	callq	_host_to_be32
	movq	%rax, (%r14)
	leaq	(%r14,%r13,8), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVP_FLAGS_MANDATORY,8,3        ## @AVP_FLAGS_MANDATORY
	.comm	_AVP_FLAGS_VENDOR,8,3           ## @AVP_FLAGS_VENDOR
	.no_dead_strip	_eap_ttls_avp_hdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_ttls_avp_hdr
_eap_ttls_avp_hdr:                      ; @eap_ttls_avp_hdr
	.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	x20, x4
	mov	x21, x1
	mov	x19, x0
	cmp	w3, #0
Lloh0:
	adrp	x8, _AVP_FLAGS_MANDATORY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVP_FLAGS_MANDATORY@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	csel	x22, xzr, x8, eq
	cbz	w2, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _AVP_FLAGS_VENDOR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVP_FLAGS_VENDOR@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	orr	x22, x8, x22
	mov	x0, x2
	bl	_host_to_be32
	str	x0, [x19, #16]
	mov	w23, #24
	b	LBB0_3
LBB0_2:
	mov	w23, #4
LBB0_3:
	mov	x0, x21
	bl	_host_to_be32
	str	x0, [x19, #8]
	add	w8, w23, w20
	orr	w0, w8, w22, lsl #24
	bl	_host_to_be32
	str	x0, [x19]
	add	x0, x19, x23, lsl #3
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AVP_FLAGS_MANDATORY,8,3        ; @AVP_FLAGS_MANDATORY
	.comm	_AVP_FLAGS_VENDOR,8,3           ; @AVP_FLAGS_VENDOR
	.no_dead_strip	_eap_ttls_avp_hdr
.subsections_via_symbols
