	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_print_event_log
_iwl_print_event_log:                   ## @iwl_print_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movl	%r8d, %eax
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	testq	%rdx, %rdx
	je	LBB0_21
## %bb.1:
	movq	%rdx, %r12
	movq	%rsi, %r14
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	24(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	16(%rdi), %rbx
	movq	_IWL_UCODE_INIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	testq	%rbx, %rbx
	jne	LBB0_7
## %bb.3:
	movq	8(%rdi), %rax
	jmp	LBB0_6
LBB0_4:
	testq	%rbx, %rbx
	jne	LBB0_7
## %bb.5:
	movq	8(%rdi), %rax
	addq	$8, %rax
LBB0_6:
	movq	(%rax), %rbx
LBB0_7:
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	_EVENT_START_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	leaq	-104(%rbp), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_iwl_trans_grab_nic_access
	testl	%eax, %eax
	je	LBB0_20
## %bb.8:
	xorl	%eax, %eax
	cmpq	$0, -80(%rbp)                   ## 8-byte Folded Reload
	setne	%al
	leaq	16(,%rax,8), %rax
	imulq	%r14, %rax
	addq	%rax, %rbx
	addq	%r15, %rbx
	movq	_HBUS_TARG_MEM_RADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_iwl_write32
	testq	%r12, %r12
	jle	LBB0_19
## %bb.9:
	movq	16(%rbp), %r14
	movq	_HBUS_TARG_MEM_RDAT@GOTPCREL(%rip), %r13
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rsi
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%r15, %rcx
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_IWL_ERR
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_trace_iwlwifi_dev_ucode_event
LBB0_17:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	_HBUS_TARG_MEM_RDAT@GOTPCREL(%rip), %r13
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=1
	decq	%r12
	je	LBB0_19
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_iwl_read32
	movq	%rax, %r15
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_iwl_read32
	movq	%rax, %rcx
	cmpq	$0, -80(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_11
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movl	(%r13), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_iwl_read32
	movq	%rax, %r15
	movq	%r14, %rax
	testq	%r14, %r14
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movslq	%r13d, %rdi
	movq	%r14, %rsi
	subq	%rdi, %rsi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rdi
	leaq	L_.str.1(%rip), %rdx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%r15, %r8
	movq	-96(%rbp), %r9                  ## 8-byte Reload
	xorl	%eax, %eax
	callq	_scnprintf
	addl	%r13d, %eax
                                        ## kill: def $eax killed $eax killed $rax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%r14, %rax
	testq	%r14, %r14
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r15, %r8
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movslq	%r15d, %rdi
	movq	%r14, %rsi
	subq	%rdi, %rsi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rdi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_scnprintf
	addl	%r15d, %eax
	movq	_HBUS_TARG_MEM_RDAT@GOTPCREL(%rip), %r13
                                        ## kill: def $eax killed $eax killed $rax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_18
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	xorl	%esi, %esi
	movq	%rcx, %rdx
	movq	%rcx, %rbx
	movq	%r15, %rcx
	callq	_trace_iwlwifi_dev_ucode_event
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_IWL_ERR
	jmp	LBB0_18
LBB0_19:
	leaq	-104(%rbp), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_iwl_trans_release_nic_access
LBB0_20:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_21:
	addq	$72, %rsp
	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
	.comm	_EVENT_START_OFFSET,8,3         ## @EVENT_START_OFFSET
	.comm	_HBUS_TARG_MEM_RADDR,4,2        ## @HBUS_TARG_MEM_RADDR
	.comm	_HBUS_TARG_MEM_RDAT,4,2         ## @HBUS_TARG_MEM_RDAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EVT_LOG:0x%08x:%04u\n"

L_.str.1:                               ## @.str.1
	.asciz	"EVT_LOGT:%010u:0x%08x:%04u\n"

	.no_dead_strip	_iwl_print_event_log
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_print_event_log
_iwl_print_event_log:                   ; @iwl_print_event_log
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	str	x5, [sp, #16]                   ; 8-byte Folded Spill
	mov	x19, x4
	cbz	x2, LBB0_20
; %bb.1:
	mov	x20, x6
	mov	x23, x3
	mov	x24, x2
	mov	x26, x1
	mov	x25, x0
	ldp	x22, x21, [x0, #16]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _IWL_UCODE_INIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IWL_UCODE_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	cbnz	x22, LBB0_7
; %bb.3:
	ldr	x8, [x25, #8]
	b	LBB0_6
LBB0_4:
	cbnz	x22, LBB0_7
; %bb.5:
	ldr	x8, [x25, #8]
	add	x8, x8, #8
LBB0_6:
	ldr	x22, [x8]
LBB0_7:
Lloh3:
	adrp	x8, _EVENT_START_OFFSET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVENT_START_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	x27, [x8]
	add	x1, sp, #24
	mov	x0, x21
	bl	_iwl_trans_grab_nic_access
	cbz	w0, LBB0_20
; %bb.8:
	mov	w8, #24
	mov	w9, #16
	cmp	x23, #0
	csel	x8, x9, x8, eq
	madd	x8, x8, x26, x22
	add	x2, x8, x27
Lloh6:
	adrp	x8, _HBUS_TARG_MEM_RADDR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HBUS_TARG_MEM_RADDR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_iwl_write32
	cmp	x24, #1
	b.lt	LBB0_19
; %bb.9:
Lloh9:
	adrp	x22, _HBUS_TARG_MEM_RDAT@GOTPAGE
Lloh10:
	ldr	x22, [x22, _HBUS_TARG_MEM_RDAT@GOTPAGEOFF]
	b	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	mov	x9, x19
	sxtw	x9, w9
	add	x0, x8, x9
	sub	x1, x20, x9
	str	x28, [sp]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x3, x26
	mov	x4, x27
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	bl	_scnprintf
	add	w19, w19, w0
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	subs	x24, x24, #1
	b.eq	LBB0_19
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x21
	bl	_iwl_read32
	mov	x28, x0
	ldr	w1, [x22]
	mov	x0, x21
	bl	_iwl_read32
	mov	x26, x0
	cbz	x23, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w1, [x22]
	mov	x0, x21
	bl	_iwl_read32
	mov	x27, x0
	cbnz	x20, LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	str	x28, [sp]
	mov	x0, x25
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x26
	mov	x3, x27
	bl	_IWL_ERR
	ldr	w0, [x21]
	mov	x1, x26
	mov	x2, x27
	mov	x3, x28
	bl	_trace_iwlwifi_dev_ucode_event
	b	LBB0_12
LBB0_16:                                ;   in Loop: Header=BB0_13 Depth=1
	cbz	x20, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	sxtw	x9, w19
	add	x0, x8, x9
	sub	x1, x20, x9
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x26
	mov	x4, x28
	b	LBB0_11
LBB0_18:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x21]
	mov	x1, #0
	mov	x2, x26
	mov	x3, x28
	bl	_trace_iwlwifi_dev_ucode_event
	mov	x0, x25
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x26
	mov	x3, x28
	bl	_IWL_ERR
	b	LBB0_12
LBB0_19:
	add	x1, sp, #24
	mov	x0, x21
	bl	_iwl_trans_release_nic_access
LBB0_20:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_UCODE_INIT,8,3             ; @IWL_UCODE_INIT
	.comm	_EVENT_START_OFFSET,8,3         ; @EVENT_START_OFFSET
	.comm	_HBUS_TARG_MEM_RADDR,4,2        ; @HBUS_TARG_MEM_RADDR
	.comm	_HBUS_TARG_MEM_RDAT,4,2         ; @HBUS_TARG_MEM_RDAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EVT_LOG:0x%08x:%04u\n"

l_.str.1:                               ; @.str.1
	.asciz	"EVT_LOGT:%010u:0x%08x:%04u\n"

	.no_dead_strip	_iwl_print_event_log
.subsections_via_symbols
