	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il4965_dump_nic_error_log      ## -- Begin function il4965_dump_nic_error_log
	.p2align	4, 0x90
_il4965_dump_nic_error_log:             ## @il4965_dump_nic_error_log
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_UCODE_INIT@GOTPCREL(%rip), %r15
	xorl	%ecx, %ecx
	cmpq	(%r15), %rax
	sete	%cl
	movl	24(%rdi,%rcx,4), %edi
	callq	_le32_to_cpu
	movl	%eax, %r14d
	movq	16(%rbx), %rax
	movl	%r14d, %edi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_il_read_targ_mem
	movl	%eax, %r15d
	movq	_ERROR_START_OFFSET@GOTPCREL(%rip), %rax
	movq	_ERROR_ELEM_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	%r15d, %ecx
	cmpl	%ecx, (%rax)
	jg	LBB0_3
## %bb.2:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_IL_ERR
	movl	12(%rbx), %esi
	leaq	L_.str.4(%rip), %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_IL_ERR
LBB0_3:
	leal	4(%r14), %esi
	movq	%rbx, %rdi
	callq	_il_read_targ_mem
	movl	%eax, %r13d
	movl	%eax, 8(%rbx)
	leal	8(%r14), %esi
	movq	%rbx, %rdi
	callq	_il_read_targ_mem
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	leal	12(%r14), %esi
	movq	%rbx, %rdi
	callq	_il_read_targ_mem
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	leal	16(%r14), %esi
	movq	%rbx, %rdi
	callq	_il_read_targ_mem
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	leal	20(%r14), %esi
	movq	%rbx, %rdi
	callq	_il_read_targ_mem
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	leal	24(%r14), %esi
	movq	%rbx, %rdi
	callq	_il_read_targ_mem
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	leal	28(%r14), %esi
	movq	%rbx, %rdi
	callq	_il_read_targ_mem
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	leal	32(%r14), %esi
	movq	%rbx, %rdi
	callq	_il_read_targ_mem
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leal	36(%r14), %esi
	movq	%rbx, %rdi
	callq	_il_read_targ_mem
	movl	%eax, %r12d
	leal	44(%r14), %esi
	movq	%rbx, %rdi
	callq	_il_read_targ_mem
	movl	%eax, %r15d
	addl	$88, %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_il_read_targ_mem
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_IL_ERR
	movl	%r13d, %edi
	callq	_il4965_desc_lookup
	movl	%r12d, (%rsp)
	leaq	L_.str.6(%rip), %rdi
	movl	%eax, %esi
	movl	%r13d, %edx
	movl	%r15d, %ecx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_IL_ERR
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_IL_ERR
	movl	%ebx, (%rsp)
	leaq	L_.str.8(%rip), %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_IL_ERR
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	(%rbx), %rax
	cmpq	(%r15), %rax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IL_ERR                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UCODE_INIT,8,3                 ## @UCODE_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not valid error log pointer 0x%08X for %s uCode\n"

L_.str.1:                               ## @.str.1
	.asciz	"Init"

L_.str.2:                               ## @.str.2
	.asciz	"RT"

	.comm	_ERROR_START_OFFSET,4,2         ## @ERROR_START_OFFSET
	.comm	_ERROR_ELEM_SIZE,4,2            ## @ERROR_ELEM_SIZE
L_.str.3:                               ## @.str.3
	.asciz	"Start IWL Error Log Dump:\n"

L_.str.4:                               ## @.str.4
	.asciz	"Status: 0x%08lX, count: %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"Desc                                  Time       data1      data2      line\n"

L_.str.6:                               ## @.str.6
	.asciz	"%-28s (0x%04X) %010u 0x%08X 0x%08X %u\n"

L_.str.7:                               ## @.str.7
	.asciz	"pc      blink1  blink2  ilink1  ilink2  hcmd\n"

L_.str.8:                               ## @.str.8
	.asciz	"0x%05X 0x%05X 0x%05X 0x%05X 0x%05X 0x%05X\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il4965_dump_nic_error_log      ; -- Begin function il4965_dump_nic_error_log
	.p2align	2
_il4965_dump_nic_error_log:             ; @il4965_dump_nic_error_log
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x21, _UCODE_INIT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _UCODE_INIT@GOTPAGEOFF]
	ldr	x9, [x21]
	mov	w10, #24
	mov	w11, #28
	cmp	x8, x9
	csel	x8, x11, x10, eq
	ldr	w0, [x0, x8]
	bl	_le32_to_cpu
	mov	x20, x0
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	blr	x8
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_il_read_targ_mem
Lloh2:
	adrp	x8, _ERROR_START_OFFSET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERROR_START_OFFSET@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _ERROR_ELEM_SIZE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ERROR_ELEM_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	mul	w9, w9, w0
	cmp	w8, w9
	b.gt	LBB0_3
; %bb.2:
	mov	x21, x0
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_IL_ERR
	ldr	w8, [x19, #12]
	stp	x8, x21, [sp]
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_IL_ERR
LBB0_3:
	add	w1, w20, #4
	mov	x0, x19
	bl	_il_read_targ_mem
	mov	x23, x0
	str	w0, [x19, #8]
	add	w1, w20, #8
	mov	x0, x19
	bl	_il_read_targ_mem
	str	x0, [sp, #56]                   ; 8-byte Folded Spill
	add	w1, w20, #12
	mov	x0, x19
	bl	_il_read_targ_mem
	str	x0, [sp, #48]                   ; 8-byte Folded Spill
	add	w1, w20, #16
	mov	x0, x19
	bl	_il_read_targ_mem
	mov	x24, x0
	add	w1, w20, #20
	mov	x0, x19
	bl	_il_read_targ_mem
	mov	x25, x0
	add	w1, w20, #24
	mov	x0, x19
	bl	_il_read_targ_mem
	mov	x26, x0
	add	w1, w20, #28
	mov	x0, x19
	bl	_il_read_targ_mem
	mov	x27, x0
	add	w1, w20, #32
	mov	x0, x19
	bl	_il_read_targ_mem
	mov	x28, x0
	add	w1, w20, #36
	mov	x0, x19
	bl	_il_read_targ_mem
	mov	x21, x0
	add	w1, w20, #44
	mov	x0, x19
	bl	_il_read_targ_mem
	mov	x22, x0
	add	w1, w20, #88
	mov	x0, x19
	bl	_il_read_targ_mem
	mov	x19, x0
Lloh12:
	adrp	x0, l_.str.5@PAGE
Lloh13:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_IL_ERR
	mov	x0, x23
	bl	_il4965_desc_lookup
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x28, x21, [sp, #32]
	stp	x22, x27, [sp, #16]
	stp	x0, x23, [sp]
Lloh14:
	adrp	x0, l_.str.6@PAGE
Lloh15:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_IL_ERR
Lloh16:
	adrp	x0, l_.str.7@PAGE
Lloh17:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_IL_ERR
	stp	x26, x19, [sp, #32]
	stp	x24, x25, [sp, #16]
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	stp	x8, x9, [sp]
Lloh18:
	adrp	x0, l_.str.8@PAGE
Lloh19:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_5
LBB0_4:
	ldr	x8, [x19]
	ldr	x9, [x21]
Lloh20:
	adrp	x10, l_.str.2@PAGE
Lloh21:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh22:
	adrp	x11, l_.str.1@PAGE
Lloh23:
	add	x11, x11, l_.str.1@PAGEOFF
	cmp	x8, x9
	csel	x8, x11, x10, eq
	stp	x20, x8, [sp]
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
LBB0_5:
	bl	_IL_ERR
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_UCODE_INIT,8,3                 ; @UCODE_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not valid error log pointer 0x%08X for %s uCode\n"

l_.str.1:                               ; @.str.1
	.asciz	"Init"

l_.str.2:                               ; @.str.2
	.asciz	"RT"

	.comm	_ERROR_START_OFFSET,4,2         ; @ERROR_START_OFFSET
	.comm	_ERROR_ELEM_SIZE,4,2            ; @ERROR_ELEM_SIZE
l_.str.3:                               ; @.str.3
	.asciz	"Start IWL Error Log Dump:\n"

l_.str.4:                               ; @.str.4
	.asciz	"Status: 0x%08lX, count: %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"Desc                                  Time       data1      data2      line\n"

l_.str.6:                               ; @.str.6
	.asciz	"%-28s (0x%04X) %010u 0x%08X 0x%08X %u\n"

l_.str.7:                               ; @.str.7
	.asciz	"pc      blink1  blink2  ilink1  ilink2  hcmd\n"

l_.str.8:                               ; @.str.8
	.asciz	"0x%05X 0x%05X 0x%05X 0x%05X 0x%05X 0x%05X\n"

.subsections_via_symbols
