	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fm10k_tlv_attr_put_value       ## -- Begin function fm10k_tlv_attr_put_value
	.p2align	4, 0x90
_fm10k_tlv_attr_put_value:              ## @fm10k_tlv_attr_put_value
	.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	%ecx, %ebx
	leal	-1(%rbx), %eax
	testl	%eax, %ecx
	jne	LBB0_4
## %bb.1:
	cmpl	$8, %ebx
	jg	LBB0_4
## %bb.2:
	movq	%rdi, %r14
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.5:
	movl	%edx, %r12d
	movl	%esi, %r15d
	movl	(%r14), %edi
	callq	_FM10K_TLV_DWORD_LEN
	movq	%rax, %r13
	cmpl	$3, %ebx
	jg	LBB0_7
## %bb.6:
	leal	(,%rbx,8), %edi
	callq	_BIT
	decl	%eax
	andl	%eax, %r12d
LBB0_7:
	movl	%r12d, 4(%r14,%r13,4)
	movq	_FM10K_TLV_LEN_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	orl	%ebx, %r15d
	movl	%r15d, (%r14,%r13,4)
	movq	_FM10K_TLV_HDR_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movb	(%rax), %cl
	shll	%cl, %edi
	addl	%ebx, %edi
	callq	_FM10K_TLV_LEN_ALIGN
	addl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_4:
	movq	_FM10K_ERR_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FM10K_ERR_PARAM,4,2            ## @FM10K_ERR_PARAM
	.comm	_FM10K_TLV_LEN_SHIFT,4,2        ## @FM10K_TLV_LEN_SHIFT
	.comm	_FM10K_TLV_HDR_LEN,4,2          ## @FM10K_TLV_HDR_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fm10k_tlv_attr_put_value       ; -- Begin function fm10k_tlv_attr_put_value
	.p2align	2
_fm10k_tlv_attr_put_value:              ; @fm10k_tlv_attr_put_value
	.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
	sub	w8, w3, #1
	and	w8, w3, w8
	cmp	w8, #0
	ccmp	w3, #8, #0, eq
	ccmp	x0, #0, #4, le
	ccmp	w3, #0, #4, ne
	b.eq	LBB0_4
; %bb.1:
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_FM10K_TLV_DWORD_LEN
	add	x23, x19, x0, lsl #2
	cmp	w20, #3
	b.gt	LBB0_3
; %bb.2:
	lsl	w0, w20, #3
	bl	_BIT
	sub	w8, w0, #1
	and	w22, w8, w22
LBB0_3:
	str	w22, [x23, #4]
Lloh0:
	adrp	x8, _FM10K_TLV_LEN_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FM10K_TLV_LEN_SHIFT@GOTPAGEOFF]
	ldr	w9, [x8]
	lsl	w9, w20, w9
	orr	w10, w9, w21
	str	w10, [x23]
Lloh2:
	adrp	x10, _FM10K_TLV_HDR_LEN@GOTPAGE
Lloh3:
	ldr	x10, [x10, _FM10K_TLV_HDR_LEN@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	ldr	w8, [x8]
	lsl	w8, w10, w8
	add	w0, w8, w9
	bl	_FM10K_TLV_LEN_ALIGN
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [x19]
	add	w8, w9, w8
	str	w8, [x19]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _FM10K_ERR_PARAM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FM10K_ERR_PARAM@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
LBB0_5:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_FM10K_ERR_PARAM,4,2            ; @FM10K_ERR_PARAM
	.comm	_FM10K_TLV_LEN_SHIFT,4,2        ; @FM10K_TLV_LEN_SHIFT
	.comm	_FM10K_TLV_HDR_LEN,4,2          ; @FM10K_TLV_HDR_LEN
.subsections_via_symbols
