	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2400m_tlv_buffer_walk
_i2400m_tlv_buffer_walk:                ## @i2400m_tlv_buffer_walk
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r12
	callq	_i2400m_dev
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%r14), %r13
	movq	%r12, %r15
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	callq	_le16_to_cpu
	cltq
	leaq	(%rbx,%rax), %r15
	addq	$8, %r15
LBB0_2:
	cmpq	%r13, %r15
	je	LBB0_5
## %bb.3:
	jbe	LBB0_6
## %bb.4:
	movl	$1, %edi
	callq	_WARN_ON
LBB0_5:
	xorl	%r15d, %r15d
LBB0_10:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r15, %r13
	subq	%r12, %r13
	movq	%r14, %rbx
	subq	%r13, %rbx
	cmpq	$7, %rbx
	ja	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rdx
	movq	%r14, %rcx
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_10
LBB0_8:
	movl	4(%r15), %edi
	callq	_le16_to_cpu
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r15), %edi
	callq	_le16_to_cpu
	movslq	%eax, %r10
	addq	$8, %r10
	cmpq	%r10, %rbx
	jae	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rdx
	movq	%r14, %rcx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	%r13, %r9
	xorl	%eax, %eax
	pushq	%r10
	pushq	%rbx
	callq	_dev_err
	addq	$16, %rsp
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HW BUG? tlv_buf %p [%zu bytes], tlv @%zu: short header\n"

L_.str.1:                               ## @.str.1
	.asciz	"HW BUG? tlv_buf %p [%zu bytes], tlv type 0x%04x @%zu: short data (%zu bytes vs %zu needed)\n"

	.no_dead_strip	_i2400m_tlv_buffer_walk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2400m_tlv_buffer_walk
_i2400m_tlv_buffer_walk:                ; @i2400m_tlv_buffer_walk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x3
	mov	x19, x2
	mov	x21, x1
	bl	_i2400m_dev
	mov	x22, x0
	add	x24, x21, x19
	mov	x20, x21
	cbz	x23, LBB0_2
; %bb.1:
	ldr	w0, [x23]
	bl	_le16_to_cpu
	add	x8, x23, w0, sxtw
	add	x20, x8, #8
LBB0_2:
	cmp	x20, x24
	b.eq	LBB0_5
; %bb.3:
	b.ls	LBB0_6
; %bb.4:
	mov	w0, #1
	bl	_WARN_ON
LBB0_5:
	mov	x20, #0
	b	LBB0_11
LBB0_6:
	sub	x23, x20, x21
	sub	x25, x19, x23
	cmp	x25, #7
	b.hi	LBB0_8
; %bb.7:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	mov	x3, x19
	mov	x4, x23
	b	LBB0_10
LBB0_8:
	ldr	w0, [x20, #4]
	bl	_le16_to_cpu
	mov	x24, x0
	ldr	w0, [x20]
	bl	_le16_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	add	x8, x8, #8
	cmp	x25, x8
	b.hs	LBB0_11
; %bb.9:
	stp	x25, x8, [sp, #8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	str	x23, [sp]
	mov	x0, x22
	mov	x2, x21
	mov	x3, x19
	mov	x4, x24
LBB0_10:
	bl	_dev_err
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HW BUG? tlv_buf %p [%zu bytes], tlv @%zu: short header\n"

l_.str.1:                               ; @.str.1
	.asciz	"HW BUG? tlv_buf %p [%zu bytes], tlv type 0x%04x @%zu: short data (%zu bytes vs %zu needed)\n"

	.no_dead_strip	_i2400m_tlv_buffer_walk
.subsections_via_symbols
