	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_dbg_tlv_alloc              ## -- Begin function iwl_dbg_tlv_alloc
	.p2align	4, 0x90
_iwl_dbg_tlv_alloc:                     ## @iwl_dbg_tlv_alloc
	.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
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	8(%rsi), %rbx
	movl	(%rsi), %edi
	callq	_le32_to_cpu
	movq	%rax, %r14
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %edi
	callq	_le32_to_cpu
	movq	_IWL_UCODE_TLV_DEBUG_BASE@GOTPCREL(%rip), %rcx
	movq	%r14, %r15
	subq	(%rcx), %r15
	xorl	%ebx, %ebx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	sete	%bl
	shlq	$2, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movq	%r14, %rdx
	movq	%rax, %rcx
	callq	_IWL_DEBUG_FW
	movq	_IWL_DBG_TLV_TYPE_NUM@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jge	LBB0_4
## %bb.1:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_iwl_dbg_tlv_ver_support
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movl	(%r12,%rbx), %eax
	movq	_IWL_INI_CFG_STATE_NOT_LOADED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.3:
	movq	_IWL_INI_CFG_STATE_LOADED@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_IWL_ERR
	jmp	LBB0_6
LBB0_5:
	movl	(%r15), %edi
	callq	_le32_to_cpu
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movq	%r14, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_IWL_ERR
LBB0_6:
	movq	_IWL_INI_CFG_STATE_CORRUPTED@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, (%r12,%rbx)
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_UCODE_TLV_DEBUG_BASE,8,3   ## @IWL_UCODE_TLV_DEBUG_BASE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WRT: read TLV 0x%x, apply point %d\n"

	.comm	_IWL_DBG_TLV_TYPE_NUM,8,3       ## @IWL_DBG_TLV_TYPE_NUM
L_.str.1:                               ## @.str.1
	.asciz	"WRT: Unsupported TLV 0x%x\n"

L_.str.2:                               ## @.str.2
	.asciz	"WRT: Unsupported TLV 0x%x version %u\n"

	.comm	_IWL_INI_CFG_STATE_NOT_LOADED,4,2 ## @IWL_INI_CFG_STATE_NOT_LOADED
	.comm	_IWL_INI_CFG_STATE_LOADED,4,2   ## @IWL_INI_CFG_STATE_LOADED
	.comm	_IWL_INI_CFG_STATE_CORRUPTED,4,2 ## @IWL_INI_CFG_STATE_CORRUPTED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_dbg_tlv_alloc              ; -- Begin function iwl_dbg_tlv_alloc
	.p2align	2
_iwl_dbg_tlv_alloc:                     ; @iwl_dbg_tlv_alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x19, x0
	cmp	w2, #0
	cset	w22, eq
	ldr	x23, [x1, #8]
	ldr	w0, [x1]
	bl	_le32_to_cpu
	mov	x20, x0
	ldr	w0, [x23, #4]
	bl	_le32_to_cpu
	mov	x3, x0
Lloh0:
	adrp	x8, _IWL_UCODE_TLV_DEBUG_BASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_UCODE_TLV_DEBUG_BASE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sub	x24, x20, x8
	lsl	x22, x22, #2
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_IWL_DEBUG_FW
Lloh5:
	adrp	x8, _IWL_DBG_TLV_TYPE_NUM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IWL_DBG_TLV_TYPE_NUM@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x24, x8
	b.ge	LBB0_4
; %bb.1:
	mov	x0, x21
	bl	_iwl_dbg_tlv_ver_support
	cbz	w0, LBB0_5
; %bb.2:
	ldr	w8, [x19, x22]
Lloh8:
	adrp	x9, _IWL_INI_CFG_STATE_NOT_LOADED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IWL_INI_CFG_STATE_NOT_LOADED@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.3:
Lloh11:
	adrp	x8, _IWL_INI_CFG_STATE_LOADED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IWL_INI_CFG_STATE_LOADED@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
	ldr	w0, [x23]
	bl	_le32_to_cpu
	str	x0, [sp]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	mov	x0, x19
	mov	x2, x20
	bl	_IWL_ERR
Lloh17:
	adrp	x8, _IWL_INI_CFG_STATE_CORRUPTED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IWL_INI_CFG_STATE_CORRUPTED@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	str	w8, [x19, x22]
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_UCODE_TLV_DEBUG_BASE,8,3   ; @IWL_UCODE_TLV_DEBUG_BASE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WRT: read TLV 0x%x, apply point %d\n"

	.comm	_IWL_DBG_TLV_TYPE_NUM,8,3       ; @IWL_DBG_TLV_TYPE_NUM
l_.str.1:                               ; @.str.1
	.asciz	"WRT: Unsupported TLV 0x%x\n"

l_.str.2:                               ; @.str.2
	.asciz	"WRT: Unsupported TLV 0x%x version %u\n"

	.comm	_IWL_INI_CFG_STATE_NOT_LOADED,4,2 ; @IWL_INI_CFG_STATE_NOT_LOADED
	.comm	_IWL_INI_CFG_STATE_LOADED,4,2   ; @IWL_INI_CFG_STATE_LOADED
	.comm	_IWL_INI_CFG_STATE_CORRUPTED,4,2 ; @IWL_INI_CFG_STATE_CORRUPTED
.subsections_via_symbols
