	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cw1200_bh
_cw1200_bh:                             ## @cw1200_bh
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movl	$0, -60(%rbp)
	movl	$0, -64(%rbp)
	leaq	80(%rdi), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	40(%rdi), %r14
	leaq	100(%rdi), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	leaq	96(%rdi), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	leaq	48(%rdi), %r15
	leaq	44(%rdi), %r12
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movq	%r12, -120(%rbp)                ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, 8(%r13)
	je	LBB0_36
LBB0_38:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-72(%rbp), %r14                 ## 8-byte Reload
LBB0_62:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	24(%r13), %rax
	movl	20(%r13), %edi
	callq	*8(%rax)
	movq	%r13, %rdi
	movl	$1, %esi
	callq	___cw1200_irq_enable
	movq	24(%r13), %rax
	movl	20(%r13), %edi
	callq	*(%rax)
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_51 Depth 2
                                        ##       Child Loop BB0_56 Depth 3
	cmpq	$0, (%r13)
	je	LBB0_2
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, 72(%r13)
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, 8(%r13)
	je	LBB0_4
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_MAX_SCHEDULE_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpl	$-1, 12(%r13)
	je	LBB0_14
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_atomic_read
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_ST90TDS_CONFIG_REG_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	leaq	-132(%rbp), %rdx
	movl	$4, %ecx
	callq	_cw1200_reg_read
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movl	64(%r13), %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_atomic_xchg
	movl	%eax, %r12d
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	xorl	%esi, %esi
	callq	_atomic_xchg
	movl	%eax, -44(%rbp)
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	xorl	%esi, %esi
	callq	_atomic_xchg
	movl	%eax, %r15d
	cmpl	$0, -64(%rbp)
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_read
	movq	%rax, %r14
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	testl	%r15d, %r15d
	setne	-56(%rbp)                       ## 1-byte Folded Spill
	movb	$1, %al
	testl	%r12d, %r12d
	jne	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, -44(%rbp)
	jne	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%r15d, %r15d
	jne	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%r14d, %r14d
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, 16(%r13)
	setne	%al
LBB0_22:                                ##   in Loop: Header=BB0_1 Depth=1
	movzbl	%al, %esi
	movl	%ebx, %edi
	callq	_wait_event_interruptible_timeout
	movq	%rax, %rbx
	movl	-44(%rbp), %edx
	movl	16(%r13), %r9d
	movq	%rax, (%rsp)
	leaq	L_.str.2(%rip), %rdi
	movl	%r12d, %esi
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_pr_debug
	testq	%rbx, %rbx
	js	LBB0_23
## %bb.33:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%r15d, %r15d
	je	LBB0_25
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%rbx, %rax
	jne	LBB0_45
## %bb.24:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%r15d, %r15d
	jne	LBB0_45
LBB0_25:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, 16(%r13)
	jne	LBB0_45
## %bb.26:                              ##   in Loop: Header=BB0_1 Depth=1
	testq	%rbx, %rbx
	je	LBB0_27
## %bb.39:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%r14d, %r14d
	je	LBB0_40
## %bb.41:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	cmpq	$0, 72(%r13)
	je	LBB0_43
## %bb.42:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_ST90TDS_CONTROL_REG_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_cw1200_reg_write_16
	movl	$1, 8(%r13)
LBB0_43:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_CW1200_BH_SUSPENDED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_atomic_set
	movq	-120(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	callq	_wake_up
	movl	64(%r13), %r14d
	movq	_CW1200_BH_RESUME@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r15, %rdi
	callq	_atomic_read
	xorl	%esi, %esi
	cmpq	%rax, %rbx
	sete	%sil
	movl	%r14d, %edi
	callq	_wait_event_interruptible
	testq	%rax, %rax
	js	LBB0_44
## %bb.49:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_CW1200_BH_RESUMED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_atomic_set
	movq	%r12, %rdi
	callq	_wake_up
	movl	$1, %edi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_atomic_add
	jmp	LBB0_62
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -112(%rbp)
	movq	(%r13), %rdx
	testq	%rdx, %rdx
	je	LBB0_35
## %bb.28:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%r12d, %r12d
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, -44(%rbp)
	jne	LBB0_35
LBB0_30:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	56(%r13), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_wiphy_warn
	movq	88(%r13), %rdi
	movl	84(%r13), %edx
	leaq	-112(%rbp), %r15
	movq	%r15, %rsi
	callq	_cw1200_queue_get_xmit_timestamp
	movq	%rax, %r14
	movq	88(%r13), %rdi
	addq	$4, %rdi
	movl	84(%r13), %edx
	movq	%r15, %rsi
	callq	_cw1200_queue_get_xmit_timestamp
	movq	%rax, %rbx
	addl	%r14d, %ebx
	movq	88(%r13), %rdi
	addq	$8, %rdi
	movl	84(%r13), %edx
	movq	%r15, %rsi
	callq	_cw1200_queue_get_xmit_timestamp
	movq	%rax, %r14
	addl	%ebx, %r14d
	movq	88(%r13), %rdi
	addq	$12, %rdi
	movl	84(%r13), %edx
	movq	%r15, %rsi
	callq	_cw1200_queue_get_xmit_timestamp
	addl	%r14d, %eax
	je	LBB0_38
## %bb.31:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-112(%rbp), %r8
	movq	_WSM_CMD_LAST_CHANCE_TIMEOUT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%r8, %rcx
	movq	_HZ@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	addq	%rcx, %rdx
	movq	_jiffies@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	subq	%r9, %rdx
	jns	LBB0_38
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_40:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	-64(%rbp), %eax
	addl	%eax, -44(%rbp)
	movl	$0, -64(%rbp)
	movq	%r13, %rdi
	leaq	-60(%rbp), %rsi
	callq	_cw1200_bh_read_ctrl_reg
	testq	%rax, %rax
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	_ST90TDS_CONT_NEXT_LEN_MASK@GOTPCREL(%rip), %rbx
	jne	LBB0_45
LBB0_51:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_56 Depth 3
	movl	(%rbx), %eax
	testl	%eax, -60(%rbp)
	je	LBB0_55
## %bb.52:                              ##   in Loop: Header=BB0_51 Depth=2
	movq	%r13, %rdi
	leaq	-60(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	callq	_cw1200_bh_rx_helper
	testl	%eax, %eax
	js	LBB0_45
## %bb.53:                              ##   in Loop: Header=BB0_51 Depth=2
	movl	(%rbx), %eax
	testl	%eax, -60(%rbp)
	je	LBB0_55
## %bb.54:                              ##   in Loop: Header=BB0_51 Depth=2
	movq	%r13, %rdi
	leaq	-60(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	callq	_cw1200_bh_rx_helper
	testl	%eax, %eax
	js	LBB0_45
LBB0_55:                                ##   in Loop: Header=BB0_51 Depth=2
	movl	-44(%rbp), %eax
	.p2align	4, 0x90
LBB0_56:                                ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_51 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	testl	%eax, %eax
	je	LBB0_59
## %bb.57:                              ##   in Loop: Header=BB0_56 Depth=3
	movl	$0, -44(%rbp)
	movq	(%r13), %rax
	xorl	%edi, %edi
	cmpq	32(%r13), %rax
	setg	%dil
	callq	_BUG_ON
	movl	32(%r13), %eax
	subl	(%r13), %eax
	movl	%eax, -76(%rbp)
	testl	%eax, %eax
	jle	LBB0_58
## %bb.63:                              ##   in Loop: Header=BB0_56 Depth=3
	movq	%r13, %rdi
	leaq	-64(%rbp), %rsi
	leaq	-76(%rbp), %rdx
	callq	_cw1200_bh_tx_helper
	testl	%eax, %eax
	js	LBB0_45
## %bb.64:                              ##   in Loop: Header=BB0_56 Depth=3
	je	LBB0_66
## %bb.65:                              ##   in Loop: Header=BB0_56 Depth=3
	movl	%eax, -44(%rbp)
LBB0_66:                                ##   in Loop: Header=BB0_56 Depth=3
	movq	%r13, %rdi
	leaq	-60(%rbp), %rsi
	callq	_cw1200_bh_read_ctrl_reg
	testq	%rax, %rax
	jne	LBB0_45
LBB0_59:                                ##   in Loop: Header=BB0_56 Depth=3
	cmpl	$0, 16(%r13)
	jne	LBB0_45
LBB0_60:                                ##   in Loop: Header=BB0_56 Depth=3
	movl	(%rbx), %eax
	testl	%eax, -60(%rbp)
	jne	LBB0_50
## %bb.61:                              ##   in Loop: Header=BB0_56 Depth=3
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	jne	LBB0_56
	jmp	LBB0_62
	.p2align	4, 0x90
LBB0_58:                                ##   in Loop: Header=BB0_56 Depth=3
	movl	-44(%rbp), %eax
	movl	%eax, -64(%rbp)
	cmpl	$0, 16(%r13)
	je	LBB0_60
	jmp	LBB0_45
	.p2align	4, 0x90
LBB0_50:                                ##   in Loop: Header=BB0_51 Depth=2
	movl	-64(%rbp), %eax
	addl	%eax, -44(%rbp)
	movl	$0, -64(%rbp)
	movq	%r13, %rdi
	leaq	-60(%rbp), %rsi
	callq	_cw1200_bh_read_ctrl_reg
	testq	%rax, %rax
	je	LBB0_51
	jmp	LBB0_45
LBB0_36:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_read
	testq	%rax, %rax
	jne	LBB0_38
## %bb.37:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_ST90TDS_CONTROL_REG_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_cw1200_reg_write_16
	movl	$1, 8(%r13)
	jmp	LBB0_38
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, (%r13)
	jne	LBB0_7
	jmp	LBB0_8
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_ST90TDS_CONTROL_REG_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_cw1200_reg_write_16
	movl	$1, 8(%r13)
	cmpl	$-1, 12(%r13)
	jne	LBB0_11
	jmp	LBB0_14
LBB0_34:
	movb	$1, %bl
	jmp	LBB0_46
LBB0_44:
	movq	56(%r13), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.8(%rip), %rsi
	movq	%rax, %rdx
	callq	_wiphy_err
	jmp	LBB0_45
LBB0_32:
	movq	(%r13), %rdx
	movq	56(%r13), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_wiphy_warn
LBB0_45:
	movb	-56(%rbp), %bl                  ## 1-byte Reload
LBB0_46:
	movq	24(%r13), %rax
	movl	20(%r13), %edi
	callq	*8(%rax)
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	___cw1200_irq_enable
	movq	24(%r13), %rax
	movl	20(%r13), %edi
	callq	*(%rax)
	testb	%bl, %bl
	jne	LBB0_48
## %bb.47:
	leaq	L_.str.10(%rip), %rdi
	callq	_pr_err
	movl	$1, 16(%r13)
LBB0_48:
	xorl	%eax, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HZ,4,2                         ## @HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[BH] Device wakedown. No data.\n"

	.comm	_ST90TDS_CONTROL_REG_ID,4,2     ## @ST90TDS_CONTROL_REG_ID
	.comm	_MAX_SCHEDULE_TIMEOUT,8,3       ## @MAX_SCHEDULE_TIMEOUT
	.comm	_ST90TDS_CONFIG_REG_ID,4,2      ## @ST90TDS_CONFIG_REG_ID
L_.str.1:                               ## @.str.1
	.asciz	"[BH] waiting ...\n"

L_.str.2:                               ## @.str.2
	.asciz	"[BH] - rx: %d, tx: %d, term: %d, bh_err: %d, suspend: %d, status: %ld\n"

	.comm	_ERESTARTSYS,8,3                ## @ERESTARTSYS
	.comm	_jiffies,8,3                    ## @jiffies
L_.str.3:                               ## @.str.3
	.asciz	"Missed interrupt? (%d frames outstanding)\n"

	.comm	_WSM_CMD_LAST_CHANCE_TIMEOUT,8,3 ## @WSM_CMD_LAST_CHANCE_TIMEOUT
L_.str.4:                               ## @.str.4
	.asciz	"Timeout waiting for TX confirm (%d/%d pending, %ld vs %lu).\n"

L_.str.5:                               ## @.str.5
	.asciz	"[BH] Device wakedown. Timeout.\n"

L_.str.6:                               ## @.str.6
	.asciz	"[BH] Device suspend.\n"

L_.str.7:                               ## @.str.7
	.asciz	"[BH] Device wakedown. Suspend.\n"

	.comm	_CW1200_BH_SUSPENDED,4,2        ## @CW1200_BH_SUSPENDED
	.comm	_CW1200_BH_RESUME,8,3           ## @CW1200_BH_RESUME
L_.str.8:                               ## @.str.8
	.asciz	"Failed to wait for resume: %ld.\n"

L_.str.9:                               ## @.str.9
	.asciz	"[BH] Device resume.\n"

	.comm	_CW1200_BH_RESUMED,4,2          ## @CW1200_BH_RESUMED
	.comm	_ST90TDS_CONT_NEXT_LEN_MASK,4,2 ## @ST90TDS_CONT_NEXT_LEN_MASK
L_.str.10:                              ## @.str.10
	.asciz	"[BH] Fatal error, exiting.\n"

	.no_dead_strip	_cw1200_bh
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cw1200_bh
_cw1200_bh:                             ; @cw1200_bh
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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	x19, x0
	add	x9, x0, #80
	stur	xzr, [x29, #-92]
	add	x21, x0, #40
	add	x10, x0, #100
	add	x8, x0, #96
	stp	x8, x10, [sp, #64]              ; 16-byte Folded Spill
	add	x24, x0, #48
	add	x8, x0, #44
	stp	x9, x8, [sp, #48]               ; 16-byte Folded Spill
Lloh0:
	adrp	x25, _ST90TDS_CONT_NEXT_LEN_MASK@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ST90TDS_CONT_NEXT_LEN_MASK@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_51
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #8]
	ldr	w0, [x19, #20]
	blr	x8
	mov	x0, x19
	mov	w1, #1
	bl	___cw1200_irq_enable
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	w0, [x19, #20]
	blr	x8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_50 Depth 2
                                        ;       Child Loop BB0_40 Depth 3
	ldr	x8, [x19]
	cbz	x8, LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh2:
	adrp	x8, _HZ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh4:
	ldrsw	x26, [x8]
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_53
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh5:
	adrp	x8, _MAX_SCHEDULE_TIMEOUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAX_SCHEDULE_TIMEOUT@GOTPAGEOFF]
Lloh7:
	ldr	x26, [x8]
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #12]
	cmn	w8, #1
	b.eq	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_atomic_read
	cbnz	x0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [sp, #72]                   ; 8-byte Folded Reload
	bl	_atomic_read
	cbnz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh8:
	adrp	x8, _ST90TDS_CONFIG_REG_ID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ST90TDS_CONFIG_REG_ID@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x2, sp, #92
	mov	x0, x19
	mov	w3, #4
	bl	_cw1200_reg_read
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	ldr	w28, [x19, #64]
	mov	x0, x21
	mov	w1, #0
	bl	_atomic_xchg
	mov	x20, x0
	ldr	x0, [sp, #72]                   ; 8-byte Folded Reload
	mov	w1, #0
	bl	_atomic_xchg
	stur	w0, [x29, #-84]
	ldr	x0, [sp, #64]                   ; 8-byte Folded Reload
	mov	w1, #0
	bl	_atomic_xchg
	mov	x27, x0
	ldur	w8, [x29, #-92]
	cbz	w8, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, #0
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x24
	bl	_atomic_read
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x0
	cmp	w27, #0
	cset	w23, ne
	mov	w1, #1
	cbnz	w20, LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	ldur	w8, [x29, #-84]
	cbnz	w8, LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w27, LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w22, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #16]
	cmp	w8, #0
	cset	w1, ne
LBB0_20:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x28
	mov	x2, x26
	bl	_wait_event_interruptible_timeout
	mov	x26, x0
	ldur	w8, [x29, #-84]
	ldr	w9, [x19, #16]
	stp	x9, x0, [sp, #32]
	stp	x27, x22, [sp, #16]
	stp	x20, x8, [sp]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
	tbnz	x26, #63, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_3 Depth=1
	cbz	w27, LBB0_23
	b	LBB0_56
LBB0_22:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh15:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmn	x26, x8
	ccmp	w27, #0, #0, eq
	b.ne	LBB0_59
LBB0_23:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_59
; %bb.24:                               ;   in Loop: Header=BB0_3 Depth=1
	cbz	x26, LBB0_30
; %bb.25:                               ;   in Loop: Header=BB0_3 Depth=1
	cbz	w22, LBB0_50
; %bb.26:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh18:
	adrp	x0, l_.str.6@PAGE
Lloh19:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_pr_debug
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh20:
	adrp	x0, l_.str.7@PAGE
Lloh21:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_pr_debug
Lloh22:
	adrp	x8, _ST90TDS_CONTROL_REG_ID@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ST90TDS_CONTROL_REG_ID@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_cw1200_reg_write_16
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_28:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh25:
	adrp	x8, _CW1200_BH_SUSPENDED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CW1200_BH_SUSPENDED@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_atomic_set
	ldr	x26, [sp, #56]                  ; 8-byte Folded Reload
	mov	x0, x26
	bl	_wake_up
	ldr	w20, [x19, #64]
Lloh28:
	adrp	x8, _CW1200_BH_RESUME@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CW1200_BH_RESUME@GOTPAGEOFF]
Lloh30:
	ldr	x22, [x8]
	mov	x0, x24
	bl	_atomic_read
	cmp	x22, x0
	cset	w1, eq
	mov	x0, x20
	bl	_wait_event_interruptible
	tbnz	x0, #63, LBB0_57
; %bb.29:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh31:
	adrp	x0, l_.str.9@PAGE
Lloh32:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_pr_debug
Lloh33:
	adrp	x8, _CW1200_BH_RESUMED@GOTPAGE
Lloh34:
	ldr	x8, [x8, _CW1200_BH_RESUMED@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_atomic_set
	mov	x0, x26
	bl	_wake_up
	mov	w0, #1
	mov	x1, x21
	bl	_atomic_add
	b	LBB0_2
LBB0_30:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh36:
	adrp	x8, _jiffies@GOTPAGE
Lloh37:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	str	x8, [sp, #80]
	ldr	x2, [x19]
	cbz	x2, LBB0_1
; %bb.31:                               ;   in Loop: Header=BB0_3 Depth=1
	cbz	w20, LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_3 Depth=1
	ldur	w8, [x29, #-84]
	cbnz	w8, LBB0_1
LBB0_33:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #56]
	ldr	w0, [x8]
Lloh39:
	adrp	x1, l_.str.3@PAGE
Lloh40:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wiphy_warn
	ldr	x0, [x19, #88]
	ldr	w2, [x19, #84]
	add	x1, sp, #80
	bl	_cw1200_queue_get_xmit_timestamp
	mov	x20, x0
	ldr	x8, [x19, #88]
	add	x0, x8, #4
	ldr	w2, [x19, #84]
	add	x1, sp, #80
	bl	_cw1200_queue_get_xmit_timestamp
	add	w20, w20, w0
	ldr	x8, [x19, #88]
	add	x0, x8, #8
	ldr	w2, [x19, #84]
	add	x1, sp, #80
	bl	_cw1200_queue_get_xmit_timestamp
	add	w20, w20, w0
	ldr	x8, [x19, #88]
	add	x0, x8, #12
	ldr	w2, [x19, #84]
	add	x1, sp, #80
	bl	_cw1200_queue_get_xmit_timestamp
	add	w8, w20, w0
	cbz	w8, LBB0_2
; %bb.34:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [sp, #80]
Lloh41:
	adrp	x10, _WSM_CMD_LAST_CHANCE_TIMEOUT@GOTPAGE
Lloh42:
	ldr	x10, [x10, _WSM_CMD_LAST_CHANCE_TIMEOUT@GOTPAGEOFF]
Lloh43:
	ldr	x10, [x10]
Lloh44:
	adrp	x11, _HZ@GOTPAGE
Lloh45:
	ldr	x11, [x11, _HZ@GOTPAGEOFF]
Lloh46:
	ldrsw	x11, [x11]
	add	x10, x10, x9
	add	x11, x10, x11
Lloh47:
	adrp	x10, _jiffies@GOTPAGE
Lloh48:
	ldr	x10, [x10, _jiffies@GOTPAGEOFF]
Lloh49:
	ldr	x10, [x10]
	sub	x11, x11, x10
	tbz	x11, #63, LBB0_2
	b	LBB0_58
LBB0_35:                                ;   in Loop: Header=BB0_50 Depth=2
	ldur	w8, [x29, #-88]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_39
; %bb.36:                               ;   in Loop: Header=BB0_50 Depth=2
	sub	x1, x29, #88
	sub	x2, x29, #84
	mov	x0, x19
	bl	_cw1200_bh_rx_helper
	tbnz	w0, #31, LBB0_59
; %bb.37:                               ;   in Loop: Header=BB0_50 Depth=2
	ldur	w8, [x29, #-88]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_39
; %bb.38:                               ;   in Loop: Header=BB0_50 Depth=2
	sub	x1, x29, #88
	sub	x2, x29, #84
	mov	x0, x19
	bl	_cw1200_bh_rx_helper
	tbnz	w0, #31, LBB0_59
LBB0_39:                                ;   in Loop: Header=BB0_50 Depth=2
	ldur	w8, [x29, #-84]
LBB0_40:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_50 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cbz	w8, LBB0_46
; %bb.41:                               ;   in Loop: Header=BB0_40 Depth=3
	stur	wzr, [x29, #-84]
	ldr	x8, [x19]
	ldr	x9, [x19, #32]
	cmp	x8, x9
	cset	w0, gt
	bl	_BUG_ON
	ldr	w8, [x19, #32]
	ldr	w9, [x19]
	sub	w8, w8, w9
	str	w8, [sp, #96]
	cmp	w8, #0
	b.le	LBB0_49
; %bb.42:                               ;   in Loop: Header=BB0_40 Depth=3
	sub	x1, x29, #92
	add	x2, sp, #96
	mov	x0, x19
	bl	_cw1200_bh_tx_helper
	tbnz	w0, #31, LBB0_59
; %bb.43:                               ;   in Loop: Header=BB0_40 Depth=3
	cbz	w0, LBB0_45
; %bb.44:                               ;   in Loop: Header=BB0_40 Depth=3
	stur	w0, [x29, #-84]
LBB0_45:                                ;   in Loop: Header=BB0_40 Depth=3
	sub	x1, x29, #88
	mov	x0, x19
	bl	_cw1200_bh_read_ctrl_reg
	cbnz	x0, LBB0_59
LBB0_46:                                ;   in Loop: Header=BB0_40 Depth=3
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_59
LBB0_47:                                ;   in Loop: Header=BB0_40 Depth=3
	ldur	w8, [x29, #-88]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_50
; %bb.48:                               ;   in Loop: Header=BB0_40 Depth=3
	ldur	w8, [x29, #-84]
	cbnz	w8, LBB0_40
	b	LBB0_2
LBB0_49:                                ;   in Loop: Header=BB0_40 Depth=3
	ldur	w8, [x29, #-84]
	stur	w8, [x29, #-92]
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_47
	b	LBB0_59
LBB0_50:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_40 Depth 3
	ldur	w8, [x29, #-92]
	ldur	w9, [x29, #-84]
	add	w8, w9, w8
	stur	w8, [x29, #-84]
	stur	wzr, [x29, #-92]
	sub	x1, x29, #88
	mov	x0, x19
	bl	_cw1200_bh_read_ctrl_reg
	cbz	x0, LBB0_35
	b	LBB0_59
LBB0_51:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [sp, #48]                   ; 8-byte Folded Reload
	bl	_atomic_read
	cbnz	x0, LBB0_2
; %bb.52:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh50:
	adrp	x0, l_.str.5@PAGE
Lloh51:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pr_debug
Lloh52:
	adrp	x8, _ST90TDS_CONTROL_REG_ID@GOTPAGE
Lloh53:
	ldr	x8, [x8, _ST90TDS_CONTROL_REG_ID@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_cw1200_reg_write_16
	mov	w8, #1
	str	w8, [x19, #8]
	b	LBB0_2
LBB0_53:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [sp, #48]                   ; 8-byte Folded Reload
	bl	_atomic_read
	cbz	x0, LBB0_55
; %bb.54:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	cbnz	x8, LBB0_4
	b	LBB0_7
LBB0_55:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh55:
	adrp	x8, _HZ@GOTPAGE
Lloh56:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh57:
	ldrsw	x26, [x8]
Lloh58:
	adrp	x0, l_.str@PAGE
Lloh59:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
Lloh60:
	adrp	x8, _ST90TDS_CONTROL_REG_ID@GOTPAGE
Lloh61:
	ldr	x8, [x8, _ST90TDS_CONTROL_REG_ID@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_cw1200_reg_write_16
	mov	w8, #1
	str	w8, [x19, #8]
	b	LBB0_8
LBB0_56:
	mov	w23, #1
	b	LBB0_59
LBB0_57:
	mov	x2, x0
	ldr	x8, [x19, #56]
	ldr	w0, [x8]
Lloh63:
	adrp	x1, l_.str.8@PAGE
Lloh64:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_wiphy_err
	b	LBB0_59
LBB0_58:
	ldr	x11, [x19, #56]
	ldr	w0, [x11]
	ldr	x2, [x19]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh65:
	adrp	x1, l_.str.4@PAGE
Lloh66:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wiphy_warn
LBB0_59:
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #8]
	ldr	w0, [x19, #20]
	blr	x8
	mov	x0, x19
	mov	w1, #0
	bl	___cw1200_irq_enable
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	w0, [x19, #20]
	blr	x8
	tbnz	w23, #0, LBB0_61
; %bb.60:
Lloh67:
	adrp	x0, l_.str.10@PAGE
Lloh68:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_pr_err
	mov	w8, #1
	str	w8, [x19, #16]
LBB0_61:
	mov	w0, #0
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpAdd	Lloh67, Lloh68
	.cfi_endproc
                                        ; -- End function
	.comm	_HZ,4,2                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[BH] Device wakedown. No data.\n"

	.comm	_ST90TDS_CONTROL_REG_ID,4,2     ; @ST90TDS_CONTROL_REG_ID
	.comm	_MAX_SCHEDULE_TIMEOUT,8,3       ; @MAX_SCHEDULE_TIMEOUT
	.comm	_ST90TDS_CONFIG_REG_ID,4,2      ; @ST90TDS_CONFIG_REG_ID
l_.str.1:                               ; @.str.1
	.asciz	"[BH] waiting ...\n"

l_.str.2:                               ; @.str.2
	.asciz	"[BH] - rx: %d, tx: %d, term: %d, bh_err: %d, suspend: %d, status: %ld\n"

	.comm	_ERESTARTSYS,8,3                ; @ERESTARTSYS
	.comm	_jiffies,8,3                    ; @jiffies
l_.str.3:                               ; @.str.3
	.asciz	"Missed interrupt? (%d frames outstanding)\n"

	.comm	_WSM_CMD_LAST_CHANCE_TIMEOUT,8,3 ; @WSM_CMD_LAST_CHANCE_TIMEOUT
l_.str.4:                               ; @.str.4
	.asciz	"Timeout waiting for TX confirm (%d/%d pending, %ld vs %lu).\n"

l_.str.5:                               ; @.str.5
	.asciz	"[BH] Device wakedown. Timeout.\n"

l_.str.6:                               ; @.str.6
	.asciz	"[BH] Device suspend.\n"

l_.str.7:                               ; @.str.7
	.asciz	"[BH] Device wakedown. Suspend.\n"

	.comm	_CW1200_BH_SUSPENDED,4,2        ; @CW1200_BH_SUSPENDED
	.comm	_CW1200_BH_RESUME,8,3           ; @CW1200_BH_RESUME
l_.str.8:                               ; @.str.8
	.asciz	"Failed to wait for resume: %ld.\n"

l_.str.9:                               ; @.str.9
	.asciz	"[BH] Device resume.\n"

	.comm	_CW1200_BH_RESUMED,4,2          ; @CW1200_BH_RESUMED
	.comm	_ST90TDS_CONT_NEXT_LEN_MASK,4,2 ; @ST90TDS_CONT_NEXT_LEN_MASK
l_.str.10:                              ; @.str.10
	.asciz	"[BH] Fatal error, exiting.\n"

	.no_dead_strip	_cw1200_bh
.subsections_via_symbols
