	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl12xx_read_fwlog_panic
_wl12xx_read_fwlog_panic:               ## @wl12xx_read_fwlog_panic
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_WLCORE_QUIRK_FWLOG_NOT_IMPLEMENTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_wl1271_info
	movl	20(%rbx), %edi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_9
## %bb.2:
	cmpl	$0, 16(%rbx)
	jne	LBB0_5
## %bb.3:
	movq	8(%rbx), %rax
	movq	_WL12XX_FWLOG_OUTPUT_DBG_PINS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_wl12xx_cmd_stop_fwlog
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	testq	%rax, %rax
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_wlcore_event_fw_logger
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$100, %edi
	callq	_msleep
	movq	%rbx, %rdi
	callq	_wlcore_event_fw_logger
	jmp	LBB0_7
LBB0_9:
	movl	20(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_pm_runtime_put_noidle          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WLCORE_QUIRK_FWLOG_NOT_IMPLEMENTED,4,2 ## @WLCORE_QUIRK_FWLOG_NOT_IMPLEMENTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reading FW panic log"

	.comm	_WL12XX_FWLOG_OUTPUT_DBG_PINS,8,3 ## @WL12XX_FWLOG_OUTPUT_DBG_PINS
	.no_dead_strip	_wl12xx_read_fwlog_panic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl12xx_read_fwlog_panic
_wl12xx_read_fwlog_panic:               ; @wl12xx_read_fwlog_panic
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _WLCORE_QUIRK_FWLOG_NOT_IMPLEMENTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WLCORE_QUIRK_FWLOG_NOT_IMPLEMENTED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_wl1271_info
	ldr	w0, [x19, #20]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_9
; %bb.3:
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_7
; %bb.4:
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x9, _WL12XX_FWLOG_OUTPUT_DBG_PINS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _WL12XX_FWLOG_OUTPUT_DBG_PINS@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_wl12xx_cmd_stop_fwlog
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	cbz	x0, LBB0_1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_wlcore_event_fw_logger
	cbnz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #100
	bl	_msleep
	mov	x0, x19
	bl	_wlcore_event_fw_logger
	b	LBB0_6
LBB0_9:
	ldr	w0, [x19, #20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pm_runtime_put_noidle
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_WLCORE_QUIRK_FWLOG_NOT_IMPLEMENTED,4,2 ; @WLCORE_QUIRK_FWLOG_NOT_IMPLEMENTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reading FW panic log"

	.comm	_WL12XX_FWLOG_OUTPUT_DBG_PINS,8,3 ; @WL12XX_FWLOG_OUTPUT_DBG_PINS
	.no_dead_strip	_wl12xx_read_fwlog_panic
.subsections_via_symbols
