	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_dump_nic_event_log         ## -- Begin function iwl_dump_nic_event_log
	.p2align	4, 0x90
_iwl_dump_nic_event_log:                ## @iwl_dump_nic_event_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	16(%rdi), %r13d
	movq	_IWL_UCODE_INIT@GOTPCREL(%rip), %rbx
	movq	(%rdi), %rcx
	movq	8(%rdi), %rax
	cmpq	(%rbx), %rcx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	jne	LBB0_3
## %bb.1:
	movl	(%rax), %r15d
	testl	%r13d, %r13d
	jne	LBB0_6
## %bb.2:
	addq	$4, %rax
	jmp	LBB0_5
LBB0_3:
	movl	8(%rax), %r15d
	testl	%r13d, %r13d
	jne	LBB0_6
## %bb.4:
	addq	$12, %rax
LBB0_5:
	movl	(%rax), %r13d
LBB0_6:
	movq	24(%r14), %r12
	movl	%r13d, %edi
	callq	_iwlagn_hw_valid_rtc_data_addr
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_iwl_trans_read_mem32
	movl	%eax, %ebx
	leal	4(%r13), %esi
	movq	%r12, %rdi
	callq	_iwl_trans_read_mem32
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	leal	8(%r13), %esi
	movq	%r12, %rdi
	callq	_iwl_trans_read_mem32
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	addl	$12, %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_iwl_trans_read_mem32
	movl	%eax, %r13d
	cmpl	%r15d, %ebx
	jg	LBB0_9
## %bb.10:
	cmpl	%r15d, %r13d
	jle	LBB0_11
LBB0_12:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%r13d, %edx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_IWL_ERR
	jmp	LBB0_13
LBB0_7:
	movq	(%r14), %rax
	cmpq	(%rbx), %rax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_IWL_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_9:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_IWL_ERR
	movl	%r15d, %ebx
	cmpl	%r15d, %r13d
	jg	LBB0_12
LBB0_11:
	movl	%r13d, %r15d
LBB0_13:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	movl	%ebx, %r13d
	cmovel	%r15d, %ebx
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.17:
	movq	_IWL_DL_FW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_iwl_have_debug_level
	movq	_DEFAULT_DUMP_EVENT_LOG_ENTRIES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	cmpl	%r12d, %ebx
	cmovll	%ebx, %r12d
	testq	%rax, %rax
	cmovnel	%ebx, %r12d
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	cmovnel	%ebx, %r12d
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_IWL_ERR
	subq	$8, %rsp
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	pushq	$0
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	$0
	callq	_iwl_print_last_event_logs
	addq	$56, %rsp
	jmp	LBB0_16
LBB0_14:
	leaq	L_.str.5(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_IWL_ERR
LBB0_15:
	movl	%ebx, %eax
	addq	$24, %rsp
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_UCODE_INIT,8,3             ## @IWL_UCODE_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid event log pointer 0x%08X for %s uCode\n"

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

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

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"Log capacity %d is bogus, limit to %d entries\n"

L_.str.4:                               ## @.str.4
	.asciz	"Log write index %d is bogus, limit to %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"Start IWL Event Log Dump: nothing in log\n"

	.comm	_IWL_DL_FW,4,2                  ## @IWL_DL_FW
	.comm	_DEFAULT_DUMP_EVENT_LOG_ENTRIES,4,2 ## @DEFAULT_DUMP_EVENT_LOG_ENTRIES
L_.str.6:                               ## @.str.6
	.asciz	"Start IWL Event Log Dump: display last %u entries\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_dump_nic_event_log         ; -- Begin function iwl_dump_nic_event_log
	.p2align	2
_iwl_dump_nic_event_log:                ; @iwl_dump_nic_event_log
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w26, [x0, #16]
Lloh0:
	adrp	x22, _IWL_UCODE_INIT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IWL_UCODE_INIT@GOTPAGEOFF]
	ldr	x9, [x22]
	ldp	x10, x8, [x0]
	cmp	x10, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	w27, [x8]
	cbnz	w26, LBB0_6
; %bb.2:
	add	x8, x8, #4
	b	LBB0_5
LBB0_3:
	ldr	w27, [x8, #8]
	cbnz	w26, LBB0_6
; %bb.4:
	add	x8, x8, #12
LBB0_5:
	ldr	w26, [x8]
LBB0_6:
	ldr	x24, [x19, #24]
	mov	x0, x26
	bl	_iwlagn_hw_valid_rtc_data_addr
	cbz	w0, LBB0_13
; %bb.7:
	mov	x0, x24
	mov	x1, x26
	bl	_iwl_trans_read_mem32
	mov	x23, x0
	add	w1, w26, #4
	mov	x0, x24
	bl	_iwl_trans_read_mem32
	mov	x22, x0
	add	w1, w26, #8
	mov	x0, x24
	bl	_iwl_trans_read_mem32
	mov	x25, x0
	add	w1, w26, #12
	mov	x0, x24
	bl	_iwl_trans_read_mem32
	mov	x26, x0
	cmp	w23, w27
	b.le	LBB0_9
; %bb.8:
	stp	x23, x27, [sp]
Lloh2:
	adrp	x1, l_.str.3@PAGE
Lloh3:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
	mov	x23, x27
LBB0_9:
	cmp	w26, w27
	b.le	LBB0_11
; %bb.10:
	mov	x8, x27
	stp	x26, x8, [sp]
Lloh4:
	adrp	x1, l_.str.4@PAGE
Lloh5:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
	mov	x26, x27
LBB0_11:
	cmp	w25, #0
	csel	w27, w26, w23, eq
	cbz	w27, LBB0_14
; %bb.12:
Lloh6:
	adrp	x8, _IWL_DL_FW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IWL_DL_FW@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_iwl_have_debug_level
Lloh9:
	adrp	x8, _DEFAULT_DUMP_EVENT_LOG_ENTRIES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DEFAULT_DUMP_EVENT_LOG_ENTRIES@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w27, w8
	csel	w8, w27, w8, lt
	cmp	x0, #0
	ccmp	w21, #0, #0, eq
	csel	w21, w27, w8, ne
	str	x21, [sp]
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
	str	xzr, [sp]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x25
	mov	x3, x26
	mov	x4, x21
	mov	x5, x22
	mov	w6, #0
	mov	x7, x20
	bl	_iwl_print_last_event_logs
	b	LBB0_15
LBB0_13:
	ldr	x8, [x19]
	ldr	x9, [x22]
Lloh14:
	adrp	x10, l_.str.2@PAGE
Lloh15:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh16:
	adrp	x11, l_.str.1@PAGE
Lloh17:
	add	x11, x11, l_.str.1@PAGEOFF
	cmp	x8, x9
	csel	x8, x11, x10, eq
	stp	x26, x8, [sp]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_14:
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x24
	bl	_IWL_ERR
	mov	w0, #0
LBB0_15:
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_UCODE_INIT,8,3             ; @IWL_UCODE_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid event log pointer 0x%08X for %s uCode\n"

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

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

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"Log capacity %d is bogus, limit to %d entries\n"

l_.str.4:                               ; @.str.4
	.asciz	"Log write index %d is bogus, limit to %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"Start IWL Event Log Dump: nothing in log\n"

	.comm	_IWL_DL_FW,4,2                  ; @IWL_DL_FW
	.comm	_DEFAULT_DUMP_EVENT_LOG_ENTRIES,4,2 ; @DEFAULT_DUMP_EVENT_LOG_ENTRIES
l_.str.6:                               ; @.str.6
	.asciz	"Start IWL Event Log Dump: display last %u entries\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
.subsections_via_symbols
