	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function softing_pdev_probe
_softing_pdev_probe:                    ## @softing_pdev_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
	callq	_dev_get_platdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movl	(%rax), %r15d
	callq	_ARRAY_SIZE
	cmpl	%eax, %r15d
	jle	LBB0_5
## %bb.4:
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_warn
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_32
LBB0_5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$72, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r15
	movq	%rbx, 16(%rax)
	movq	%r14, 24(%rax)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	leaq	64(%r15), %rdi
	callq	_mutex_init
	movq	%r15, %rdi
	addq	$60, %rdi
	callq	_spin_lock_init
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_29
## %bb.8:
	movl	(%rax), %ecx
	movl	%ecx, 56(%r15)
	movq	%rax, %rdi
	callq	_resource_size
	movl	%eax, 52(%r15)
	movl	56(%r15), %edi
	movl	%eax, %esi
	callq	_ioremap_nocache
	movl	%eax, (%r15)
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movq	_IORESOURCE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	(%rax), %eax
	movl	%eax, 48(%r15)
LBB0_12:
	movq	%r15, %rdi
	callq	_softing_card_boot
	testl	%eax, %eax
	js	LBB0_13
## %bb.14:
	movq	16(%r15), %rax
	movl	8(%rax), %eax
	movl	%eax, 40(%r15)
	movq	_softing_pdev_group@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_create_group
	testl	%eax, %eax
	js	LBB0_33
## %bb.15:
	movq	8(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_31
## %bb.16:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rax
	movl	(%rax,%r13,4), %esi
	movq	%r15, %rdi
	callq	_softing_netdev_create
	movq	%rax, %rbx
	movq	8(%r15), %rax
	movq	%rbx, (%rax,%r13,8)
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	%r13d, (%rbx)
	movq	8(%r15), %rax
	movq	(%rax,%r13,8), %rdi
	callq	_netdev_priv
	movl	%r13d, (%rax)
	movq	%rbx, %rdi
	callq	_softing_netdev_register
	testl	%eax, %eax
	jne	LBB0_20
## %bb.30:                              ##   in Loop: Header=BB0_17 Depth=1
	incq	%r13
	movq	8(%r15), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r13
	jl	LBB0_17
LBB0_31:
	movq	16(%r15), %rax
	movq	24(%r15), %rdi
	movl	4(%rax), %edx
	leaq	L_.str.7(%rip), %rsi
	callq	_dev_info
	xorl	%r12d, %r12d
	jmp	LBB0_32
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_32
LBB0_9:
	movq	24(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_alert
	jmp	LBB0_29
LBB0_13:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_alert
	jmp	LBB0_28
LBB0_33:
	movl	%eax, %r12d
	movq	24(%r15), %rdi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_alert
	jmp	LBB0_27
LBB0_18:
	leaq	L_.str.5(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_dev_alert
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_21
LBB0_20:
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_free_candev
	movq	8(%r15), %rax
	movq	$0, (%rax,%r13,8)
	movq	24(%r15), %rdi
	leaq	L_.str.6(%rip), %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_dev_alert
LBB0_21:
	movq	8(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_26
## %bb.22:
	xorl	%ebx, %ebx
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_23 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_26
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdi
	movq	(%rdi,%rbx,8), %rax
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	%rax, %rdi
	callq	_softing_netdev_cleanup
	movq	8(%r15), %rdi
	jmp	LBB0_25
LBB0_26:
	movq	_softing_pdev_group@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_remove_group
LBB0_27:
	movq	%r15, %rdi
	callq	_softing_card_shutdown
LBB0_28:
	movl	(%r15), %edi
	callq	_iounmap
LBB0_29:
	movq	%r15, %rdi
	callq	_kfree
LBB0_32:
	movl	%r12d, %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	"no platform data\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"%u nets??\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.2:                               ## @.str.2
	.asciz	"dpram ioremap failed\n"

	.comm	_IORESOURCE_IRQ,4,2             ## @IORESOURCE_IRQ
L_.str.3:                               ## @.str.3
	.asciz	"failed to boot\n"

	.comm	_softing_pdev_group,4,2         ## @softing_pdev_group
L_.str.4:                               ## @.str.4
	.asciz	"sysfs failed\n"

L_.str.5:                               ## @.str.5
	.asciz	"failed to make can[%i]"

L_.str.6:                               ## @.str.6
	.asciz	"failed to register can[%i]\n"

L_.str.7:                               ## @.str.7
	.asciz	"%s ready.\n"

	.no_dead_strip	_softing_pdev_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function softing_pdev_probe
_softing_pdev_probe:                    ; @softing_pdev_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x0
	bl	_dev_get_platdata
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	ldr	w19, [x0]
	bl	_ARRAY_SIZE
	cmp	w19, w0
	b.le	LBB0_7
; %bb.2:
	ldr	w8, [x21]
	str	x8, [sp]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	mov	x0, x20
	bl	_dev_warn
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #72
	bl	_kzalloc
	cbz	x0, LBB0_20
; %bb.8:
	mov	x19, x0
	stp	x21, x20, [x0, #16]
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	add	x0, x19, #64
	bl	_mutex_init
	add	x0, x19, #60
	bl	_spin_lock_init
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w21, w8
Lloh12:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_34
; %bb.9:
	ldr	w8, [x0]
	str	w8, [x19, #56]
	bl	_resource_size
	mov	x1, x0
	str	w0, [x19, #52]
	ldr	w0, [x19, #56]
	bl	_ioremap_nocache
	str	w0, [x19]
	cbz	w0, LBB0_21
; %bb.10:
Lloh15:
	adrp	x8, _IORESOURCE_IRQ@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IORESOURCE_IRQ@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_12
; %bb.11:
	ldr	w8, [x0]
	str	w8, [x19, #48]
LBB0_12:
	mov	x0, x19
	bl	_softing_card_boot
	tbnz	w0, #31, LBB0_22
; %bb.13:
	ldr	x8, [x19, #16]
	ldr	w8, [x8, #8]
	str	w8, [x19, #40]
Lloh18:
	adrp	x1, _softing_pdev_group@GOTPAGE
Lloh19:
	ldr	x1, [x1, _softing_pdev_group@GOTPAGEOFF]
	mov	x0, x20
	bl	_sysfs_create_group
	tbnz	w0, #31, LBB0_23
; %bb.14:
	ldr	x0, [x19, #8]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_19
; %bb.15:
	mov	x23, #0
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	ldr	w1, [x8, x23, lsl #2]
	mov	x0, x19
	bl	_softing_netdev_create
	ldr	x8, [x19, #8]
	str	x0, [x8, x23, lsl #3]
	cbz	x0, LBB0_24
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x22, x0
	str	w23, [x0]
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x23, lsl #3]
	bl	_netdev_priv
	str	w23, [x0]
	mov	x0, x22
	bl	_softing_netdev_register
	cbnz	w0, LBB0_25
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x23, x23, #1
	ldr	x0, [x19, #8]
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.lt	LBB0_16
LBB0_19:
	ldp	x8, x0, [x19, #16]
	ldr	w2, [x8, #4]
Lloh20:
	adrp	x1, l_.str.7@PAGE
Lloh21:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_dev_info
	mov	w21, #0
	b	LBB0_6
LBB0_20:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
LBB0_21:
	ldr	x0, [x19, #24]
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_alert
	b	LBB0_34
LBB0_22:
	mov	x21, x0
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_alert
	b	LBB0_33
LBB0_23:
	mov	x21, x0
	ldr	x0, [x19, #24]
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_alert
	b	LBB0_32
LBB0_24:
	str	x23, [sp]
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_alert
Lloh32:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_26
LBB0_25:
	mov	x21, x0
	mov	x0, x22
	bl	_free_candev
	ldr	x8, [x19, #8]
	str	xzr, [x8, x23, lsl #3]
	ldr	x0, [x19, #24]
	str	x23, [sp]
Lloh35:
	adrp	x1, l_.str.6@PAGE
Lloh36:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_alert
LBB0_26:
	ldr	x0, [x19, #8]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_31
; %bb.27:
	mov	x22, #0
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=1
	add	x22, x22, #1
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	b.ge	LBB0_31
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #8]
	ldr	x8, [x0, x22, lsl #3]
	cbz	x8, LBB0_28
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	mov	x0, x8
	bl	_softing_netdev_cleanup
	ldr	x0, [x19, #8]
	b	LBB0_28
LBB0_31:
Lloh37:
	adrp	x1, _softing_pdev_group@GOTPAGE
Lloh38:
	ldr	x1, [x1, _softing_pdev_group@GOTPAGEOFF]
	mov	x0, x20
	bl	_sysfs_remove_group
LBB0_32:
	mov	x0, x19
	bl	_softing_card_shutdown
LBB0_33:
	ldr	w0, [x19]
	bl	_iounmap
LBB0_34:
	mov	x0, x19
	bl	_kfree
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no platform data\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"%u nets??\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.2:                               ; @.str.2
	.asciz	"dpram ioremap failed\n"

	.comm	_IORESOURCE_IRQ,4,2             ; @IORESOURCE_IRQ
l_.str.3:                               ; @.str.3
	.asciz	"failed to boot\n"

	.comm	_softing_pdev_group,4,2         ; @softing_pdev_group
l_.str.4:                               ; @.str.4
	.asciz	"sysfs failed\n"

l_.str.5:                               ; @.str.5
	.asciz	"failed to make can[%i]"

l_.str.6:                               ; @.str.6
	.asciz	"failed to register can[%i]\n"

l_.str.7:                               ; @.str.7
	.asciz	"%s ready.\n"

	.no_dead_strip	_softing_pdev_probe
.subsections_via_symbols
