	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fm10k_tlv_attr_get_le_struct   ## -- Begin function fm10k_tlv_attr_get_le_struct
	.p2align	4, 0x90
_fm10k_tlv_attr_get_le_struct:          ## @fm10k_tlv_attr_get_le_struct
	.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
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.3:
	movq	%rdx, %r14
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	_FM10K_TLV_LEN_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrq	%cl, %rax
	cmpq	%rdx, %rax
	jne	LBB0_2
## %bb.4:
	xorl	%r12d, %r12d
	testq	%r14, %r14
	je	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13,%rbx,2), %rdi
	callq	_cpu_to_le32
	movl	%eax, (%r15,%rbx)
	addq	$4, %rbx
	cmpq	%rbx, %r14
	jne	LBB0_6
	jmp	LBB0_7
LBB0_2:
	movq	_FM10K_ERR_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_7:
	movl	%r12d, %eax
	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,8,3        ## @FM10K_TLV_LEN_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fm10k_tlv_attr_get_le_struct   ; -- Begin function fm10k_tlv_attr_get_le_struct
	.p2align	2
_fm10k_tlv_attr_get_le_struct:          ; @fm10k_tlv_attr_get_le_struct
	.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_7
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_7
; %bb.2:
	mov	x19, x2
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _FM10K_TLV_LEN_SHIFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FM10K_TLV_LEN_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	lsr	x8, x8, x9
	cmp	x8, x2
	b.ne	LBB0_7
; %bb.3:
	cbz	x19, LBB0_6
; %bb.4:
	add	x21, x0, #8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21], #8
	bl	_cpu_to_le32
	str	w0, [x20], #4
	subs	x19, x19, #4
	b.ne	LBB0_5
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh3:
	adrp	x8, _FM10K_ERR_PARAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FM10K_ERR_PARAM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_8:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FM10K_ERR_PARAM,4,2            ; @FM10K_ERR_PARAM
	.comm	_FM10K_TLV_LEN_SHIFT,8,3        ; @FM10K_TLV_LEN_SHIFT
.subsections_via_symbols
