	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_core_probe              ## -- Begin function cw1200_core_probe
	.p2align	4, 0x90
_cw1200_core_probe:                     ## @cw1200_core_probe
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	24(%rbp), %esi
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movl	$1, -48(%rbp)
	movq	_cw1200_power_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	%r9, %rdi
	callq	_cw1200_init_common
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%r12, %rbx
	movq	(%rax), %r12
	movl	%r14d, (%r12)
	movq	%r15, %rdx
	movq	%rax, %r15
	movq	_cw1200_refclk@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	cmovel	%r14d, %eax
	movq	16(%rbp), %rcx
	movl	%eax, (%r12)
	movq	_cw1200_sdd_path@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	cmovneq	%rax, %rcx
	movq	%rcx, 8(%r12)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 48(%r12)
	movq	%rdx, 40(%r12)
	movq	%r13, 32(%r12)
	movl	24(%r12), %edi
	movq	%r13, %rsi
	callq	_SET_IEEE80211_DEV
	movq	%rbx, %r14
	movq	%r12, (%rbx)
	movq	%r12, %rdi
	callq	_cw1200_register_bh
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	movq	%r12, %rdi
	callq	_cw1200_load_firmware
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
LBB0_5:
	movq	%r12, %rdi
	callq	_cw1200_unregister_bh
LBB0_6:
	movq	%r15, %rdi
	callq	_cw1200_free_common
	movq	%r14, %r12
LBB0_7:
	movq	$0, (%r12)
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	16(%r12), %esi
	movl	20(%r12), %edi
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,2), %edx
	callq	_wait_event_interruptible_timeout
	testq	%rax, %rax
	jle	LBB0_4
## %bb.8:
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_wsm_set_operational_mode
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_wsm_use_multi_tx_conf
	movq	%r15, %rdi
	callq	_cw1200_register_common
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.9:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_cw1200_power_mode,4,2          ## @cw1200_power_mode
	.comm	_cw1200_refclk,4,2              ## @cw1200_refclk
	.comm	_cw1200_sdd_path,8,3            ## @cw1200_sdd_path
	.comm	_HZ,4,2                         ## @HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Timeout waiting on device startup\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_core_probe              ; -- Begin function cw1200_core_probe
	.p2align	2
_cw1200_core_probe:                     ; @cw1200_core_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x23, x6
	mov	x26, x4
	mov	x19, x3
	mov	x22, x2
	mov	x24, x1
	mov	x25, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _cw1200_power_mode@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cw1200_power_mode@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w9, #1
	stp	w9, w8, [sp, #8]
	mov	x0, x5
	mov	x1, x7
	bl	_cw1200_init_common
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	x21, [x0]
	str	w26, [x21]
Lloh6:
	adrp	x8, _cw1200_refclk@GOTPAGE
Lloh7:
	ldr	x8, [x8, _cw1200_refclk@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, #0
	csel	w8, w26, w8, eq
	str	w8, [x21]
Lloh9:
	adrp	x8, _cw1200_sdd_path@GOTPAGE
Lloh10:
	ldr	x8, [x8, _cw1200_sdd_path@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x8, #0
	csel	x8, x23, x8, eq
	str	x8, [x21, #8]
	stp	x24, x25, [x21, #40]
	str	x22, [x21, #32]
	ldr	w0, [x21, #24]
	mov	x1, x22
	bl	_SET_IEEE80211_DEV
	str	x21, [x19]
	mov	x0, x21
	bl	_cw1200_register_bh
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_cw1200_load_firmware
	mov	x22, x0
	cbz	w0, LBB0_8
LBB0_3:
	mov	x0, x21
	bl	_cw1200_unregister_bh
LBB0_4:
	mov	x0, x20
	bl	_cw1200_free_common
	b	LBB0_6
LBB0_5:
	neg	w22, w21
LBB0_6:
	str	xzr, [x19]
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_8:
	ldp	w1, w0, [x21, #16]
Lloh12:
	adrp	x8, _HZ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	add	w2, w8, w8, lsl #1
	bl	_wait_event_interruptible_timeout
	cmp	x0, #0
	b.le	LBB0_10
; %bb.9:
	add	x1, sp, #8
	mov	x0, x21
	bl	_wsm_set_operational_mode
	mov	x0, x21
	mov	w1, #1
	bl	_wsm_use_multi_tx_conf
	mov	x0, x20
	bl	_cw1200_register_common
	mov	x22, x0
	cbnz	w0, LBB0_3
	b	LBB0_7
LBB0_10:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh17:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_cw1200_power_mode,4,2          ; @cw1200_power_mode
	.comm	_cw1200_refclk,4,2              ; @cw1200_refclk
	.comm	_cw1200_sdd_path,8,3            ; @cw1200_sdd_path
	.comm	_HZ,4,2                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Timeout waiting on device startup\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
.subsections_via_symbols
