	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cw1200_spi_probe
_cw1200_spi_probe:                      ## @cw1200_spi_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_dev_get_platdata
	movq	%rax, %r15
	movl	(%rbx), %r8d
	movl	$52000000, %eax                 ## imm = 0x3197500
	cmpl	$52000000, %r8d                 ## imm = 0x3197500
	jg	LBB0_2
## %bb.1:
	movl	$1000000, %eax                  ## imm = 0xF4240
	cmpl	$999999, %r8d                   ## imm = 0xF423F
	jg	LBB0_3
LBB0_2:
	movl	%eax, (%rbx)
	movl	%eax, %r8d
LBB0_3:
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	je	LBB0_4
LBB0_6:
	movl	%ecx, 4(%rbx)
	jmp	LBB0_7
LBB0_4:
	movl	4(%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_5
LBB0_7:
	movq	_SPI_MODE_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, 12(%rbx)
	movl	16(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movq	%r15, %rdi
	callq	_cw1200_spi_on
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_9
LBB0_10:
	movq	%rbx, %rdi
	callq	_spi_setup
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rdi
LBB0_9:
	callq	_pr_err
	movl	$-1, %ebx
LBB0_17:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	$16, %ecx
	jmp	LBB0_6
LBB0_12:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	%rax, %r12
	movq	%r15, (%rax)
	movq	%rbx, 24(%rax)
	leaq	16(%rax), %rdi
	callq	_spin_lock_init
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_spi_set_drvdata
	leaq	12(%r12), %rdi
	callq	_init_waitqueue_head
	movq	%r12, %rdi
	callq	_cw1200_spi_irq_subscribe
	movq	%r12, %rcx
	addq	$8, %rcx
	movq	(%r12), %rax
	movl	16(%rax), %r8d
	movl	12(%rax), %r9d
	movl	4(%rax), %ebx
	movl	8(%rax), %eax
	movq	_cw1200_spi_hwbus_ops@GOTPCREL(%rip), %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	pushq	%rbx
	pushq	%rax
	callq	_cw1200_core_probe
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_cw1200_spi_irq_unsubscribe
	movq	%r15, %rdi
	callq	_cw1200_spi_off
	jmp	LBB0_17
LBB0_13:
	leaq	L_.str.3(%rip), %rdi
	callq	_pr_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_15:
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_SPI_MODE_0,4,2                 ## @SPI_MODE_0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cw1200_wlan_spi: Probe called (CS %d M %d BPW %d CLK %d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"spi_on() failed!\n"

L_.str.2:                               ## @.str.2
	.asciz	"spi_setup() failed!\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.3:                               ## @.str.3
	.asciz	"Can't allocate SPI hwbus_priv."

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_cw1200_spi_hwbus_ops,4,2       ## @cw1200_spi_hwbus_ops
	.no_dead_strip	_cw1200_spi_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cw1200_spi_probe
_cw1200_spi_probe:                      ; @cw1200_spi_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x0
	mov	w22, #29952
	movk	w22, #793, lsl #16
	add	x20, x0, #8
	mov	x0, x20
	bl	_dev_get_platdata
	mov	x19, x0
	ldr	w4, [x21]
	cmp	w4, w22
	b.gt	LBB0_2
; %bb.1:
	mov	w22, #16960
	movk	w22, #15, lsl #16
	cmp	w4, w22
	b.ge	LBB0_3
LBB0_2:
	str	w22, [x21]
	mov	x4, x22
LBB0_3:
	ldr	w3, [x19]
	cbz	w3, LBB0_5
LBB0_4:
	str	w3, [x21, #4]
	b	LBB0_6
LBB0_5:
	ldr	w3, [x21, #4]
	cbz	w3, LBB0_12
LBB0_6:
Lloh0:
	adrp	x8, _SPI_MODE_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPI_MODE_0@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	str	w2, [x21, #12]
	ldr	w1, [x21, #16]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	mov	x0, x19
	bl	_cw1200_spi_on
	cbz	x0, LBB0_8
; %bb.7:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_8:
	mov	x0, x21
	bl	_spi_setup
	cbz	x0, LBB0_13
; %bb.9:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_10:
	bl	_pr_err
	mov	w20, #-1
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	w3, #16
	b	LBB0_4
LBB0_13:
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_16
; %bb.14:
	mov	x22, x0
	str	x19, [x0]
	str	x21, [x0, #24]
	add	x0, x0, #16
	bl	_spin_lock_init
	mov	x0, x21
	mov	x1, x22
	bl	_spi_set_drvdata
	add	x0, x22, #12
	bl	_init_waitqueue_head
	mov	x0, x22
	bl	_cw1200_spi_irq_subscribe
	add	x3, x22, #8
	ldr	x8, [x22]
	ldp	w5, w4, [x8, #12]
	ldp	w7, w6, [x8, #4]
Lloh12:
	adrp	x0, _cw1200_spi_hwbus_ops@GOTPAGE
Lloh13:
	ldr	x0, [x0, _cw1200_spi_hwbus_ops@GOTPAGEOFF]
	mov	x1, x22
	mov	x2, x20
	bl	_cw1200_core_probe
	mov	x20, x0
	cbz	w0, LBB0_11
; %bb.15:
	mov	x0, x22
	bl	_cw1200_spi_irq_unsubscribe
	mov	x0, x19
	bl	_cw1200_spi_off
	b	LBB0_11
LBB0_16:
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_err
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_11
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SPI_MODE_0,4,2                 ; @SPI_MODE_0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cw1200_wlan_spi: Probe called (CS %d M %d BPW %d CLK %d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"spi_on() failed!\n"

l_.str.2:                               ; @.str.2
	.asciz	"spi_setup() failed!\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.3:                               ; @.str.3
	.asciz	"Can't allocate SPI hwbus_priv."

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_cw1200_spi_hwbus_ops,4,2       ; @cw1200_spi_hwbus_ops
	.no_dead_strip	_cw1200_spi_probe
.subsections_via_symbols
