	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_i3c_probe
_dw_i3c_probe:                          ## @dw_i3c_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, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 32(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	32(%r14), %rdi
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_14:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	8(%r14), %rdi
	jmp	LBB0_4
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_reset_control_get_optional_exclusive
	movq	%rax, 16(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	16(%r14), %rdi
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_9:
	movq	8(%r14), %rdi
	callq	_clk_prepare_enable
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:
	movq	16(%r14), %rdi
	callq	_reset_control_deassert
	leaq	48(%r14), %r15
	leaq	52(%r14), %rdi
	callq	_spin_lock_init
	movq	%r15, %rdi
	callq	_INIT_LIST_HEAD
	movq	_INTR_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_INTR_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	32(%r14), %rsi
	callq	_writel
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r12d
	movq	_dw_i3c_master_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%rbx, %rdi
	callq	_dev_name
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	movq	%r14, %r9
	callq	_devm_request_irq
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	_QUEUE_STATUS_LEVEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	32(%r14), %rdi
	callq	_readl
	movl	%eax, %edi
	callq	_QUEUE_STATUS_LEVEL_CMD
	movl	%eax, 44(%r14)
	movq	_DATA_BUFFER_STATUS_LEVEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	32(%r14), %rdi
	callq	_readl
	movl	%eax, %edi
	callq	_DATA_BUFFER_STATUS_LEVEL_TX
	movl	%eax, 40(%r14)
	movq	_DEVICE_ADDR_TABLE_POINTER@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	32(%r14), %rdi
	callq	_readl
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, (%r14)
	sarl	$16, %eax
	movl	%eax, 4(%r14)
	leal	-1(%rax), %edi
	xorl	%esi, %esi
	callq	_GENMASK
	movl	%eax, 28(%r14)
	movq	%r14, %rdi
	addq	$24, %rdi
	movq	_dw_mipi_i3c_ops@GOTPCREL(%rip), %rdx
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_i3c_master_register
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_14
LBB0_12:
	movq	16(%r14), %rdi
	callq	_reset_control_assert
LBB0_13:
	movq	8(%r14), %rdi
	callq	_clk_disable_unprepare
	movl	%r12d, %r15d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"core_rst"

	.comm	_INTR_ALL,4,2                   ## @INTR_ALL
	.comm	_INTR_STATUS,8,3                ## @INTR_STATUS
	.comm	_dw_i3c_master_irq_handler,4,2  ## @dw_i3c_master_irq_handler
	.comm	_QUEUE_STATUS_LEVEL,8,3         ## @QUEUE_STATUS_LEVEL
	.comm	_DATA_BUFFER_STATUS_LEVEL,8,3   ## @DATA_BUFFER_STATUS_LEVEL
	.comm	_DEVICE_ADDR_TABLE_POINTER,8,3  ## @DEVICE_ADDR_TABLE_POINTER
	.comm	_dw_mipi_i3c_ops,4,2            ## @dw_mipi_i3c_ops
	.no_dead_strip	_dw_i3c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_i3c_probe
_dw_i3c_probe:                          ; @dw_i3c_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	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x20
	bl	_devm_ioremap_resource
	str	x0, [x19, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x0, [x19, #32]
	b	LBB0_9
LBB0_3:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_4:
	mov	x0, x21
	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_5:
	mov	x0, x20
	mov	x1, #0
	bl	_devm_clk_get
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x0, [x19, #8]
	b	LBB0_9
LBB0_7:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_devm_reset_control_get_optional_exclusive
	str	x0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.8:
	ldr	x0, [x19, #16]
LBB0_9:
	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
	b	_PTR_ERR
LBB0_10:
	ldr	x0, [x19, #8]
	bl	_clk_prepare_enable
	mov	x21, x0
	cbnz	w0, LBB0_14
; %bb.11:
	ldr	x0, [x19, #16]
	bl	_reset_control_deassert
	add	x21, x19, #48
	add	x0, x19, #52
	bl	_spin_lock_init
	mov	x0, x21
	bl	_INIT_LIST_HEAD
Lloh11:
	adrp	x8, _INTR_ALL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _INTR_ALL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	x8, [x19, #32]
Lloh14:
	adrp	x9, _INTR_STATUS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _INTR_STATUS@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x20
	mov	w1, #0
	bl	_platform_get_irq
	mov	x21, x0
Lloh17:
	adrp	x8, _dw_i3c_master_irq_handler@GOTPAGE
Lloh18:
	ldr	x8, [x8, _dw_i3c_master_irq_handler@GOTPAGEOFF]
Lloh19:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_dev_name
	mov	x4, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	w3, #0
	mov	x5, x19
	bl	_devm_request_irq
	mov	x21, x0
	cbnz	w0, LBB0_13
; %bb.12:
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	ldr	x8, [x19, #32]
Lloh20:
	adrp	x9, _QUEUE_STATUS_LEVEL@GOTPAGE
Lloh21:
	ldr	x9, [x9, _QUEUE_STATUS_LEVEL@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	bl	_QUEUE_STATUS_LEVEL_CMD
	str	w0, [x19, #44]
	ldr	x8, [x19, #32]
Lloh23:
	adrp	x9, _DATA_BUFFER_STATUS_LEVEL@GOTPAGE
Lloh24:
	ldr	x9, [x9, _DATA_BUFFER_STATUS_LEVEL@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	bl	_DATA_BUFFER_STATUS_LEVEL_TX
	str	w0, [x19, #40]
	ldr	x8, [x19, #32]
Lloh26:
	adrp	x9, _DEVICE_ADDR_TABLE_POINTER@GOTPAGE
Lloh27:
	ldr	x9, [x9, _DEVICE_ADDR_TABLE_POINTER@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	asr	w8, w0, #16
	stp	w0, w8, [x19]
	sub	w0, w8, #1
	mov	w1, #0
	bl	_GENMASK
	str	w0, [x19, #28]
	add	x0, x19, #24
Lloh29:
	adrp	x2, _dw_mipi_i3c_ops@GOTPAGE
Lloh30:
	ldr	x2, [x2, _dw_mipi_i3c_ops@GOTPAGEOFF]
	mov	x1, x20
	mov	w3, #0
	bl	_i3c_master_register
	mov	x21, x0
	cbz	w0, LBB0_4
LBB0_13:
	ldr	x0, [x19, #16]
	bl	_reset_control_assert
LBB0_14:
	ldr	x0, [x19, #8]
	bl	_clk_disable_unprepare
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"core_rst"

	.comm	_INTR_ALL,4,2                   ; @INTR_ALL
	.comm	_INTR_STATUS,8,3                ; @INTR_STATUS
	.comm	_dw_i3c_master_irq_handler,4,2  ; @dw_i3c_master_irq_handler
	.comm	_QUEUE_STATUS_LEVEL,8,3         ; @QUEUE_STATUS_LEVEL
	.comm	_DATA_BUFFER_STATUS_LEVEL,8,3   ; @DATA_BUFFER_STATUS_LEVEL
	.comm	_DEVICE_ADDR_TABLE_POINTER,8,3  ; @DEVICE_ADDR_TABLE_POINTER
	.comm	_dw_mipi_i3c_ops,4,2            ; @dw_mipi_i3c_ops
	.no_dead_strip	_dw_i3c_probe
.subsections_via_symbols
