	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ca8210_probe
_ca8210_probe:                          ## @ca8210_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	_ca8210_phy_ops@GOTPCREL(%rip), %rsi
	movl	$80, %edi
	callq	_ieee802154_alloc_hw
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	16(%rax), %rbx
	movq	%rax, 72(%rbx)
	movq	%r14, 16(%rbx)
	movq	%r14, 8(%rax)
	leaq	64(%rbx), %rdi
	callq	_spin_lock_init
	movq	$0, (%rbx)
	movl	$0, 8(%rbx)
	leaq	32(%rbx), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rbx)
	movq	$0, 56(%rbx)
	callq	_init_completion
	leaq	28(%rbx), %rdi
	callq	_init_completion
	leaq	24(%rbx), %rdi
	callq	_init_completion
	movq	16(%rbx), %rdi
	movq	%rbx, %rsi
	callq	_spi_set_drvdata
	movq	_CONFIG_IEEE802154_CA8210_DEBUGFS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_ca8210_test_int_driver_write@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_cascoda_api_upstream@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	%rbx, %rdi
	callq	_ca8210_test_interface_init
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_crit
	jmp	LBB0_6
LBB0_4:
	movq	_cascoda_api_upstream@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_5:
	movq	%r15, %rdi
	callq	_ca8210_hw_setup
	movq	(%r15), %rdi
	callq	_ieee802154_random_extended_addr
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	%rax, %r13
	movq	16(%rbx), %rdi
	movq	%rax, (%rdi)
	movq	%rax, %rsi
	callq	_ca8210_get_platform_data
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_10
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_7
LBB0_11:
	movq	%rbx, %rdi
	callq	_ca8210_dev_com_init
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_10
LBB0_13:
	movq	16(%rbx), %rdi
	callq	_ca8210_reset_init
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %r12d
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_10
LBB0_15:
	movq	16(%rbx), %rdi
	callq	_ca8210_interrupt_init
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	%eax, %r12d
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_10
LBB0_17:
	movl	$100, %edi
	callq	_msleep
	movq	16(%rbx), %rdi
	movl	$1, %esi
	callq	_ca8210_reset_send
	movq	16(%rbx), %rdi
	callq	_tdme_chipinit
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movl	%eax, %r12d
	leaq	L_.str.6(%rip), %rsi
LBB0_10:
	movq	%r14, %rdi
	callq	_dev_crit
LBB0_7:
	movl	$100, %edi
	callq	_msleep
	movq	%r14, %rdi
	callq	_ca8210_remove
	movl	%r12d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_link_to_linux_err              ## TAILCALL
LBB0_19:
	cmpq	$0, (%r13)
	je	LBB0_24
## %bb.20:
	movq	16(%rbx), %rsi
	movq	%r13, %rdi
	movl	$1, %edx
	callq	_ca8210_config_extern_clk
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movl	%eax, %r12d
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_10
LBB0_22:
	movq	16(%rbx), %rdi
	callq	_ca8210_register_ext_clock
	testl	%eax, %eax
	je	LBB0_24
## %bb.23:
	movl	%eax, %r12d
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_10
LBB0_24:
	movq	%r15, %rdi
	callq	_ieee802154_register_hw
	testl	%eax, %eax
	je	LBB0_26
## %bb.25:
	movl	%eax, %r12d
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_10
LBB0_26:
	movl	$1, 4(%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Inserting ca8210\n"

	.comm	_ca8210_phy_ops,4,2             ## @ca8210_phy_ops
L_.str.1:                               ## @.str.1
	.asciz	"ieee802154_alloc_hw failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CONFIG_IEEE802154_CA8210_DEBUGFS,4,2 ## @CONFIG_IEEE802154_CA8210_DEBUGFS
	.comm	_ca8210_test_int_driver_write,8,3 ## @ca8210_test_int_driver_write
	.comm	_cascoda_api_upstream,8,3       ## @cascoda_api_upstream
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.2:                               ## @.str.2
	.asciz	"ca8210_get_platform_data failed\n"

L_.str.3:                               ## @.str.3
	.asciz	"ca8210_dev_com_init failed\n"

L_.str.4:                               ## @.str.4
	.asciz	"ca8210_reset_init failed\n"

L_.str.5:                               ## @.str.5
	.asciz	"ca8210_interrupt_init failed\n"

L_.str.6:                               ## @.str.6
	.asciz	"tdme_chipinit failed\n"

L_.str.7:                               ## @.str.7
	.asciz	"ca8210_config_extern_clk failed\n"

L_.str.8:                               ## @.str.8
	.asciz	"ca8210_register_ext_clock failed\n"

L_.str.9:                               ## @.str.9
	.asciz	"ieee802154_register_hw failed\n"

	.no_dead_strip	_ca8210_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ca8210_probe
_ca8210_probe:                          ; @ca8210_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
Lloh2:
	adrp	x1, _ca8210_phy_ops@GOTPAGE
Lloh3:
	ldr	x1, [x1, _ca8210_phy_ops@GOTPAGEOFF]
	mov	w0, #80
	bl	_ieee802154_alloc_hw
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	ldr	x20, [x0, #16]
	str	x0, [x20, #72]
	str	x19, [x20, #16]
	str	x19, [x0, #8]
	add	x0, x20, #64
	bl	_spin_lock_init
	str	xzr, [x20]
	str	wzr, [x20, #8]
	add	x0, x20, #32
	stp	xzr, xzr, [x20, #48]
	str	xzr, [x20, #40]
	bl	_init_completion
	add	x0, x20, #28
	bl	_init_completion
	add	x0, x20, #24
	bl	_init_completion
	ldr	x0, [x20, #16]
	mov	x1, x20
	bl	_spi_set_drvdata
Lloh4:
	adrp	x8, _CONFIG_IEEE802154_CA8210_DEBUGFS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CONFIG_IEEE802154_CA8210_DEBUGFS@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	x0, LBB0_4
; %bb.2:
Lloh7:
	adrp	x8, _ca8210_test_int_driver_write@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ca8210_test_int_driver_write@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _cascoda_api_upstream@GOTPAGE
Lloh11:
	ldr	x9, [x9, _cascoda_api_upstream@GOTPAGEOFF]
Lloh12:
	str	x8, [x9]
	mov	x0, x20
	bl	_ca8210_test_interface_init
	b	LBB0_5
LBB0_3:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_crit
	b	LBB0_8
LBB0_4:
Lloh15:
	adrp	x8, _cascoda_api_upstream@GOTPAGE
Lloh16:
	ldr	x8, [x8, _cascoda_api_upstream@GOTPAGEOFF]
Lloh17:
	str	xzr, [x8]
LBB0_5:
	mov	x0, x21
	bl	_ca8210_hw_setup
	ldr	x0, [x21]
	bl	_ieee802154_random_extended_addr
Lloh18:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kmalloc
	cbz	x0, LBB0_8
; %bb.6:
	mov	x23, x0
	ldr	x0, [x20, #16]
	str	x23, [x0]
	mov	x1, x23
	bl	_ca8210_get_platform_data
	cbz	w0, LBB0_9
; %bb.7:
	mov	x22, x0
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_17
LBB0_8:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_18
LBB0_9:
	mov	x0, x20
	bl	_ca8210_dev_com_init
	cbz	w0, LBB0_11
; %bb.10:
	mov	x22, x0
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_17
LBB0_11:
	ldr	x0, [x20, #16]
	bl	_ca8210_reset_init
	cbz	w0, LBB0_13
; %bb.12:
	mov	x22, x0
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_17
LBB0_13:
	ldr	x0, [x20, #16]
	bl	_ca8210_interrupt_init
	cbz	w0, LBB0_15
; %bb.14:
	mov	x22, x0
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_17
LBB0_15:
	mov	w0, #100
	bl	_msleep
	ldr	x0, [x20, #16]
	mov	w1, #1
	bl	_ca8210_reset_send
	ldr	x0, [x20, #16]
	bl	_tdme_chipinit
	cbz	w0, LBB0_19
; %bb.16:
	mov	x22, x0
Lloh32:
	adrp	x1, l_.str.6@PAGE
Lloh33:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_17:
	mov	x0, x19
	bl	_dev_crit
LBB0_18:
	mov	w0, #100
	bl	_msleep
	mov	x0, x19
	bl	_ca8210_remove
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_link_to_linux_err
LBB0_19:
	ldr	x8, [x23]
	cbz	x8, LBB0_24
; %bb.20:
	ldr	x1, [x20, #16]
	mov	x0, x23
	mov	w2, #1
	bl	_ca8210_config_extern_clk
	cbz	w0, LBB0_22
; %bb.21:
	mov	x22, x0
Lloh34:
	adrp	x1, l_.str.7@PAGE
Lloh35:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_17
LBB0_22:
	ldr	x0, [x20, #16]
	bl	_ca8210_register_ext_clock
	cbz	w0, LBB0_24
; %bb.23:
	mov	x22, x0
Lloh36:
	adrp	x1, l_.str.8@PAGE
Lloh37:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_17
LBB0_24:
	mov	x0, x21
	bl	_ieee802154_register_hw
	cbz	w0, LBB0_26
; %bb.25:
	mov	x22, x0
Lloh38:
	adrp	x1, l_.str.9@PAGE
Lloh39:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_17
LBB0_26:
	mov	w8, #1
	str	w8, [x20, #4]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Inserting ca8210\n"

	.comm	_ca8210_phy_ops,4,2             ; @ca8210_phy_ops
l_.str.1:                               ; @.str.1
	.asciz	"ieee802154_alloc_hw failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CONFIG_IEEE802154_CA8210_DEBUGFS,4,2 ; @CONFIG_IEEE802154_CA8210_DEBUGFS
	.comm	_ca8210_test_int_driver_write,8,3 ; @ca8210_test_int_driver_write
	.comm	_cascoda_api_upstream,8,3       ; @cascoda_api_upstream
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.2:                               ; @.str.2
	.asciz	"ca8210_get_platform_data failed\n"

l_.str.3:                               ; @.str.3
	.asciz	"ca8210_dev_com_init failed\n"

l_.str.4:                               ; @.str.4
	.asciz	"ca8210_reset_init failed\n"

l_.str.5:                               ; @.str.5
	.asciz	"ca8210_interrupt_init failed\n"

l_.str.6:                               ; @.str.6
	.asciz	"tdme_chipinit failed\n"

l_.str.7:                               ; @.str.7
	.asciz	"ca8210_config_extern_clk failed\n"

l_.str.8:                               ; @.str.8
	.asciz	"ca8210_register_ext_clock failed\n"

l_.str.9:                               ; @.str.9
	.asciz	"ieee802154_register_hw failed\n"

	.no_dead_strip	_ca8210_probe
.subsections_via_symbols
