	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_fw_txf_len
_iwl_fw_txf_len:                        ## @iwl_fw_txf_len
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_IWL_FW_ERROR_DUMP_TXF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_iwl_fw_dbg_type_on
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movl	(%r15), %eax
	movq	_MAX_NUM_LMAC@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpl	(%rbx), %eax
	setg	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	(%rbx), %eax
	movl	%eax, (%r15)
	testl	%eax, %eax
	jg	LBB0_5
	jmp	LBB0_11
LBB0_2:
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_11
LBB0_5:
	movl	4(%r15), %ecx
	xorl	%r12d, %r12d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r12
	movslq	%eax, %rdx
	cmpq	%rdx, %r12
	jge	LBB0_11
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r15), %rax
	movq	(%rax,%r12,8), %rax
	movl	(%rax,%rbx,4), %esi
	movl	$8, %edx
	xorl	%edi, %edi
	callq	_ADD_LEN
	incq	%rbx
	movslq	4(%r15), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r15), %eax
	jmp	LBB0_10
LBB0_11:
	movq	_IWL_FW_ERROR_DUMP_INTERNAL_TXF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_iwl_fw_dbg_type_on
	testq	%rax, %rax
	je	LBB0_16
## %bb.12:
	movq	(%r14), %rdi
	movq	_IWL_UCODE_TLV_CAPA_EXTEND_SHARED_MEM_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fw_has_capa
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	movq	8(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_16
## %bb.14:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%rbx,4), %esi
	movl	$8, %edx
	xorl	%edi, %edi
	callq	_ADD_LEN
	incq	%rbx
	movq	8(%r15), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_15
LBB0_16:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_FW_ERROR_DUMP_TXF,4,2      ## @IWL_FW_ERROR_DUMP_TXF
	.comm	_MAX_NUM_LMAC,4,2               ## @MAX_NUM_LMAC
	.comm	_IWL_FW_ERROR_DUMP_INTERNAL_TXF,4,2 ## @IWL_FW_ERROR_DUMP_INTERNAL_TXF
	.comm	_IWL_UCODE_TLV_CAPA_EXTEND_SHARED_MEM_CFG,4,2 ## @IWL_UCODE_TLV_CAPA_EXTEND_SHARED_MEM_CFG
	.no_dead_strip	_iwl_fw_txf_len
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_fw_txf_len
_iwl_fw_txf_len:                        ; @iwl_fw_txf_len
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _IWL_FW_ERROR_DUMP_TXF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_FW_ERROR_DUMP_TXF@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_iwl_fw_dbg_type_on
	cbz	x0, LBB0_10
; %bb.1:
	ldr	w8, [x19]
Lloh3:
	adrp	x21, _MAX_NUM_LMAC@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MAX_NUM_LMAC@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w8, w9
	cset	w0, gt
	bl	_WARN_ON
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w8, [x21]
	str	w8, [x19]
	cmp	w8, #1
	b.ge	LBB0_4
	b	LBB0_10
LBB0_3:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_10
LBB0_4:
	mov	x21, #0
	ldr	w9, [x19, #4]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_10
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, #0
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x21, lsl #3]
	ldr	w1, [x8, x22, lsl #2]
	mov	w0, #0
	mov	w2, #8
	bl	_ADD_LEN
	add	x22, x22, #1
	ldrsw	x9, [x19, #4]
	cmp	x22, x9
	b.lt	LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x19]
	b	LBB0_5
LBB0_10:
Lloh5:
	adrp	x8, _IWL_FW_ERROR_DUMP_INTERNAL_TXF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IWL_FW_ERROR_DUMP_INTERNAL_TXF@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_iwl_fw_dbg_type_on
	cbz	x0, LBB0_15
; %bb.11:
	ldr	x0, [x20]
Lloh8:
	adrp	x8, _IWL_UCODE_TLV_CAPA_EXTEND_SHARED_MEM_CFG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IWL_UCODE_TLV_CAPA_EXTEND_SHARED_MEM_CFG@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_fw_has_capa
	cbz	x0, LBB0_15
; %bb.12:
	ldr	x0, [x19, #8]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.13:
	mov	x20, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w1, [x8, x20, lsl #2]
	mov	w0, #0
	mov	w2, #8
	bl	_ADD_LEN
	add	x20, x20, #1
	ldr	x0, [x19, #8]
	bl	_ARRAY_SIZE
	cmp	x20, w0, sxtw
	b.lt	LBB0_14
LBB0_15:
	mov	w0, #0
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_FW_ERROR_DUMP_TXF,4,2      ; @IWL_FW_ERROR_DUMP_TXF
	.comm	_MAX_NUM_LMAC,4,2               ; @MAX_NUM_LMAC
	.comm	_IWL_FW_ERROR_DUMP_INTERNAL_TXF,4,2 ; @IWL_FW_ERROR_DUMP_INTERNAL_TXF
	.comm	_IWL_UCODE_TLV_CAPA_EXTEND_SHARED_MEM_CFG,4,2 ; @IWL_UCODE_TLV_CAPA_EXTEND_SHARED_MEM_CFG
	.no_dead_strip	_iwl_fw_txf_len
.subsections_via_symbols
