	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_sdio_bus_watchdog
_brcmf_sdio_bus_watchdog:               ## @brcmf_sdio_bus_watchdog
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_brcmf_dbg
	cmpl	$0, 128(%rbx)
	je	LBB0_1
LBB0_9:
	cmpl	$0, 16(%rbx)
	jne	LBB0_15
## %bb.10:
	xorl	%eax, %eax
	callq	_rmb
	cmpl	$0, 64(%rbx)
	je	LBB0_11
LBB0_15:
	movq	$0, 48(%rbx)
LBB0_16:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	cmpq	$0, 120(%rbx)
	je	LBB0_9
## %bb.2:
	movq	(%rbx), %rax
	incq	%rax
	movq	%rax, (%rbx)
	cmpq	8(%rbx), %rax
	jl	LBB0_9
## %bb.3:
	movq	$0, (%rbx)
	cmpl	$0, 116(%rbx)
	je	LBB0_5
## %bb.4:
	movq	80(%rbx), %rax
	cmpq	88(%rbx), %rax
	jne	LBB0_8
LBB0_5:
	cmpl	$0, 16(%rbx)
	jne	LBB0_8
## %bb.6:
	movq	56(%rbx), %rax
	movl	8(%rax), %edi
	callq	_sdio_claim_host
	movq	56(%rbx), %rdi
	movq	_SDIO_CCCR_INTx@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_brcmf_sdiod_func0_rb
	movl	%eax, %r14d
	movq	56(%rbx), %rax
	movl	8(%rax), %edi
	callq	_sdio_release_host
	movq	_INTR_STATUS_FUNC1@GOTPCREL(%rip), %rax
	movq	_INTR_STATUS_FUNC2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r14d, %ecx
	je	LBB0_8
## %bb.7:
	incl	96(%rbx)
	leaq	112(%rbx), %rdi
	movl	$1, %esi
	callq	_atomic_set
	movl	$1, 16(%rbx)
	movl	108(%rbx), %edi
	leaq	104(%rbx), %rsi
	callq	_queue_work
LBB0_8:
	movq	80(%rbx), %rax
	movq	%rax, 88(%rbx)
	jmp	LBB0_9
LBB0_11:
	movq	32(%rbx), %rax
	testq	%rax, %rax
	jle	LBB0_15
## %bb.12:
	movq	40(%rbx), %rcx
	movq	_CLK_AVAIL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_15
## %bb.13:
	movq	48(%rbx), %rcx
	leaq	1(%rcx), %rdx
	movq	%rdx, 48(%rbx)
	cmpq	%rax, %rcx
	jl	LBB0_16
## %bb.14:
	movq	_SDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_brcmf_dbg
	movq	56(%rbx), %rax
	movl	8(%rax), %edi
	callq	_sdio_claim_host
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_brcmf_sdio_wd_timer
	movq	$0, 48(%rbx)
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_brcmf_sdio_bus_sleep
	movq	56(%rbx), %rax
	movl	8(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sdio_release_host              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TIMER,4,2                      ## @TIMER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter\n"

	.comm	_SDIO_CCCR_INTx,4,2             ## @SDIO_CCCR_INTx
	.comm	_INTR_STATUS_FUNC1,4,2          ## @INTR_STATUS_FUNC1
	.comm	_INTR_STATUS_FUNC2,4,2          ## @INTR_STATUS_FUNC2
	.comm	_CLK_AVAIL,8,3                  ## @CLK_AVAIL
	.comm	_SDIO,4,2                       ## @SDIO
L_.str.1:                               ## @.str.1
	.asciz	"idle\n"

	.comm	_BRCMF_SDIOD_DATA,8,3           ## @BRCMF_SDIOD_DATA
	.comm	_BRCMF_WD_POLL,4,2              ## @BRCMF_WD_POLL
	.no_dead_strip	_brcmf_sdio_bus_watchdog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_sdio_bus_watchdog
_brcmf_sdio_bus_watchdog:               ; @brcmf_sdio_bus_watchdog
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _TIMER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TIMER@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
	ldr	w8, [x19, #128]
	cbz	w8, LBB0_5
LBB0_1:
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_3
; %bb.2:
	bl	_rmb
	ldr	w8, [x19, #64]
	cbz	w8, LBB0_13
LBB0_3:
	str	xzr, [x19, #48]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	x8, [x19, #120]
	cbz	x8, LBB0_1
; %bb.6:
	ldp	x8, x9, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	cmp	x8, x9
	b.lt	LBB0_1
; %bb.7:
	str	xzr, [x19]
	ldr	w8, [x19, #116]
	cbz	w8, LBB0_9
; %bb.8:
	ldp	x8, x9, [x19, #80]
	cmp	x8, x9
	b.ne	LBB0_12
LBB0_9:
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_12
; %bb.10:
	ldr	x8, [x19, #56]
	ldr	w0, [x8, #8]
	bl	_sdio_claim_host
	ldr	x0, [x19, #56]
Lloh5:
	adrp	x8, _SDIO_CCCR_INTx@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SDIO_CCCR_INTx@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_brcmf_sdiod_func0_rb
	mov	x20, x0
	ldr	x8, [x19, #56]
	ldr	w0, [x8, #8]
	bl	_sdio_release_host
Lloh8:
	adrp	x8, _INTR_STATUS_FUNC1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INTR_STATUS_FUNC1@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _INTR_STATUS_FUNC2@GOTPAGE
Lloh12:
	ldr	x9, [x9, _INTR_STATUS_FUNC2@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w20
	b.eq	LBB0_12
; %bb.11:
	ldr	w8, [x19, #96]
	add	w8, w8, #1
	str	w8, [x19, #96]
	add	x0, x19, #112
	mov	w20, #1
	mov	w1, #1
	bl	_atomic_set
	str	w20, [x19, #16]
	ldr	w0, [x19, #108]
	add	x1, x19, #104
	bl	_queue_work
LBB0_12:
	ldr	x8, [x19, #80]
	str	x8, [x19, #88]
	b	LBB0_1
LBB0_13:
	ldr	x8, [x19, #32]
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.14:
	ldr	x9, [x19, #40]
Lloh14:
	adrp	x10, _CLK_AVAIL@GOTPAGE
Lloh15:
	ldr	x10, [x10, _CLK_AVAIL@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.15:
	ldr	x9, [x19, #48]
	add	x10, x9, #1
	str	x10, [x19, #48]
	cmp	x9, x8
	b.lt	LBB0_4
; %bb.16:
Lloh17:
	adrp	x8, _SDIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SDIO@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_brcmf_dbg
	ldr	x8, [x19, #56]
	ldr	w0, [x8, #8]
	bl	_sdio_claim_host
	mov	x0, x19
	mov	w1, #0
	bl	_brcmf_sdio_wd_timer
	str	xzr, [x19, #48]
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	bl	_brcmf_sdio_bus_sleep
	ldr	x8, [x19, #56]
	ldr	w0, [x8, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sdio_release_host
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_TIMER,4,2                      ; @TIMER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter\n"

	.comm	_SDIO_CCCR_INTx,4,2             ; @SDIO_CCCR_INTx
	.comm	_INTR_STATUS_FUNC1,4,2          ; @INTR_STATUS_FUNC1
	.comm	_INTR_STATUS_FUNC2,4,2          ; @INTR_STATUS_FUNC2
	.comm	_CLK_AVAIL,8,3                  ; @CLK_AVAIL
	.comm	_SDIO,4,2                       ; @SDIO
l_.str.1:                               ; @.str.1
	.asciz	"idle\n"

	.comm	_BRCMF_SDIOD_DATA,8,3           ; @BRCMF_SDIOD_DATA
	.comm	_BRCMF_WD_POLL,4,2              ; @BRCMF_WD_POLL
	.no_dead_strip	_brcmf_sdio_bus_watchdog
.subsections_via_symbols
