	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function show_event_log
_show_event_log:                        ## @show_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_ipw_get_event_log_len
	movl	%eax, %ecx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	movabsq	$-6148914691236517205, %r13     ## imm = 0xAAAAAAAAAAAAAAAB
	movq	%rsi, %rax
	mulq	%r13
	shrq	$3, %rdx
	movslq	%ecx, %rax
	leal	(,%rax,4), %ecx
	cmpq	%rax, %rdx
	leal	(%rcx,%rcx,2), %r12d
	cmovbel	%esi, %r12d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movslq	%r12d, %rax
	mulq	%r13
	movq	%rdx, %r12
	shrq	$3, %r12
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%rbx, %rdx
	callq	_ipw_capture_event_log
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %r15
	movq	%r14, %rdi
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_snprintf
	testl	%r12d, %r12d
	jle	LBB0_3
## %bb.4:
	movl	%r12d, %ecx
	shlq	$2, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%eax, %r14
	leaq	(%r15,%r14), %rdi
	movl	(%r12), %esi
	subl	%r14d, %esi
	movl	(%rbx,%r13), %ecx
	movl	4(%rbx,%r13), %r8d
	movl	8(%rbx,%r13), %r9d
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_snprintf
	addl	%r14d, %eax
	addq	$12, %r13
	cmpq	%r13, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_5
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_IPW_ERROR
	xorl	%r14d, %r14d
	jmp	LBB0_7
LBB0_3:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r12
LBB0_6:
	movslq	%eax, %r13
	addq	%r13, %r15
	movl	(%r12), %esi
	subl	%r13d, %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_snprintf
	movl	%eax, %r14d
	addl	%r13d, %r14d
	movq	%rbx, %rdi
	callq	_kfree
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to allocate memory for log\n"

L_.str.1:                               ## @.str.1
	.asciz	"%08X"

L_.str.2:                               ## @.str.2
	.asciz	"\n%08X%08X%08X"

L_.str.3:                               ## @.str.3
	.asciz	"\n"

	.no_dead_strip	_show_event_log
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function show_event_log
_show_event_log:                        ; @show_event_log
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x2
	bl	_dev_get_drvdata
	mov	x21, x0
	bl	_ipw_get_event_log_len
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x23, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PAGE_SIZE@GOTPAGEOFF]
	ldrsw	x8, [x23]
	mov	x24, #-6148914691236517206
	movk	x24, #43691
	umulh	x9, x8, x24
	sxtw	x10, w0
	add	w11, w0, w0, lsl #1
	lsl	w11, w11, #2
	cmp	x10, x9, lsr #3
	csel	w22, w11, w8, lo
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	sxtw	x8, w22
	umulh	x8, x8, x24
	lsr	x22, x8, #3
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_ipw_capture_event_log
	ldr	w1, [x23]
	str	x22, [sp]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_snprintf
	mov	x21, x0
	cmp	w22, #1
	b.lt	LBB0_4
; %bb.2:
	and	x24, x22, #0xffffffff
	add	x25, x20, #4
Lloh7:
	adrp	x22, l_.str.2@PAGE
Lloh8:
	add	x22, x22, l_.str.2@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x19, w21, sxtw
	ldr	w8, [x23]
	sub	w1, w8, w21
	ldp	w8, w9, [x25, #-4]
	ldr	w10, [x25, #4]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
	mov	x2, x22
	bl	_snprintf
	add	w21, w0, w21
	add	x25, x25, #12
	subs	x24, x24, #1
	b.ne	LBB0_3
LBB0_4:
	add	x0, x19, w21, sxtw
	ldr	w8, [x23]
	sub	w1, w8, w21
Lloh9:
	adrp	x2, l_.str.3@PAGE
Lloh10:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_snprintf
	add	w19, w0, w21
	mov	x0, x20
	bl	_kfree
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IPW_ERROR
	mov	w19, #0
LBB0_6:
	mov	x0, x19
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to allocate memory for log\n"

l_.str.1:                               ; @.str.1
	.asciz	"%08X"

l_.str.2:                               ; @.str.2
	.asciz	"\n%08X%08X%08X"

l_.str.3:                               ; @.str.3
	.asciz	"\n"

	.no_dead_strip	_show_event_log
.subsections_via_symbols
