	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tc6387xb_probe
_tc6387xb_probe:                        ## @tc6387xb_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	4(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_dev_get_platdata
	movq	%rax, %r14
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_18
## %bb.5:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_clk_get
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_19
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_19
LBB0_7:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str.1(%rip), %rax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%rax, (%r14)
	movq	8(%r13), %rax
	movq	%rax, 8(%r14)
	movl	$255, %eax
	addq	8(%r13), %rax
	movq	%rax, 24(%r14)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_request_resource
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.8:
	movq	8(%r14), %rbx
	movq	%r14, %rdi
	callq	_resource_size
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ioremap
	movl	%eax, 32(%r14)
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 40(%r14)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%r12, %rdi
	callq	*%rax
LBB0_13:
	leaq	L_.str.2(%rip), %rsi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_dev_info
	movl	(%r12), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_tc6387xb_cells@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r12d, %edi
	callq	_ARRAY_SIZE
	movq	$0, (%rsp)
	movq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	movl	%eax, %ecx
	movq	%r13, %r8
	movl	%r15d, %r9d
	callq	_mfd_add_devices
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	movl	%eax, %ebx
	movl	32(%r14), %edi
	callq	_iounmap
	jmp	LBB0_16
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movq	%r14, %rdi
	callq	_release_resource
LBB0_17:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_clk_put
	movl	%ebx, %r15d
LBB0_18:
	movq	%r14, %rdi
	callq	_kfree
LBB0_19:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	xorl	%r15d, %r15d
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CLK_CK32K"

L_.str.1:                               ## @.str.1
	.asciz	"tc6387xb-core"

L_.str.2:                               ## @.str.2
	.asciz	"Toshiba tc6387xb initialised\n"

	.comm	_tc6387xb_cells,4,2             ## @tc6387xb_cells
	.no_dead_strip	_tc6387xb_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tc6387xb_probe
_tc6387xb_probe:                        ; @tc6387xb_probe
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x0
	add	x20, x0, #4
	mov	x0, x20
	bl	_dev_get_platdata
	mov	x25, x0
Lloh0:
	adrp	x26, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x26, [x26, _IORESOURCE_MEM@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x22
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_5
; %bb.1:
	mov	x24, x0
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x19, x0
	mov	x0, x22
	mov	w1, #0
	bl	_platform_get_irq
	mov	x21, x0
	tbnz	w0, #31, LBB0_18
; %bb.3:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_clk_get
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.4:
	mov	x0, x23
	bl	_PTR_ERR
	mov	x21, x0
	b	LBB0_18
LBB0_5:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_19
LBB0_8:
Lloh11:
	adrp	x8, l_.str.1@PAGE
Lloh12:
	add	x8, x8, l_.str.1@PAGEOFF
	ldr	x9, [x24, #8]
	stp	x8, x9, [x19]
	ldr	x8, [x24, #8]
	add	x8, x8, #255
	str	x8, [x19, #24]
	ldr	w8, [x26]
	str	w8, [x19, #16]
	mov	x0, x24
	mov	x1, x19
	bl	_request_resource
	mov	x26, x0
	cbnz	w0, LBB0_17
; %bb.9:
	ldr	x26, [x19, #8]
	mov	x0, x19
	bl	_resource_size
	mov	x1, x0
	mov	x0, x26
	bl	_ioremap
	str	w0, [x19, #32]
	cbz	w0, LBB0_15
; %bb.10:
	str	x23, [x19, #40]
	mov	x0, x22
	mov	x1, x19
	bl	_platform_set_drvdata
	cbz	x25, LBB0_13
; %bb.11:
	ldr	x8, [x25]
	cbz	x8, LBB0_13
; %bb.12:
	mov	x0, x22
	blr	x8
LBB0_13:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	ldr	w22, [x22]
Lloh15:
	adrp	x8, _tc6387xb_cells@GOTPAGE
Lloh16:
	ldr	x8, [x8, _tc6387xb_cells@GOTPAGEOFF]
Lloh17:
	ldr	w25, [x8]
	mov	x0, x25
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x20
	mov	x1, x22
	mov	x2, x25
	mov	x4, x24
	mov	x5, x21
	mov	x6, #0
	bl	_mfd_add_devices
	cbz	w0, LBB0_20
; %bb.14:
	mov	x26, x0
	ldr	w0, [x19, #32]
	bl	_iounmap
	b	LBB0_16
LBB0_15:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w26, w8
LBB0_16:
	mov	x0, x19
	bl	_release_resource
LBB0_17:
	mov	x0, x23
	bl	_clk_put
	mov	x21, x26
LBB0_18:
	mov	x0, x19
	bl	_kfree
LBB0_19:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_20:
	mov	w21, #0
	b	LBB0_19
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CLK_CK32K"

l_.str.1:                               ; @.str.1
	.asciz	"tc6387xb-core"

l_.str.2:                               ; @.str.2
	.asciz	"Toshiba tc6387xb initialised\n"

	.comm	_tc6387xb_cells,4,2             ; @tc6387xb_cells
	.no_dead_strip	_tc6387xb_probe
.subsections_via_symbols
