	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_lpss_probe               ## -- Begin function intel_lpss_probe
	.p2align	4, 0x90
_intel_lpss_probe:                      ## @intel_lpss_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
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movq	%rsi, %r12
	cmpq	$0, 8(%rsi)
	je	LBB0_3
## %bb.2:
	cmpq	$0, (%r12)
	jle	LBB0_3
## %bb.5:
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r14
	movq	8(%r12), %rax
	movq	_LPSS_PRIV_OFFSET@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	movq	_LPSS_PRIV_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_devm_ioremap
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	%r12, 40(%r14)
	movq	%r15, 32(%r14)
	movq	_LPSS_PRIV_CAPS@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, %rdi
	callq	_readl
	movl	%eax, 24(%r14)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_dev_set_drvdata
	movq	%r14, %rdi
	callq	_intel_lpss_assign_devs
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_21
## %bb.9:
	movl	16(%r12), %eax
	movq	8(%r14), %rcx
	movl	%eax, (%rcx)
	movq	%r14, %rdi
	callq	_intel_lpss_init_dev
	movl	(%r13), %ecx
	movq	_intel_lpss_devid_ida@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ida_simple_get
	movq	%rax, (%r14)
	testq	%rax, %rax
	js	LBB0_10
## %bb.11:
	movq	%r14, %rdi
	callq	_intel_lpss_register_clock
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.12:
	movq	%r14, %rdi
	callq	_intel_lpss_ltr_expose
	movq	%r14, %rdi
	callq	_intel_lpss_debugfs_add
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_14:
	movq	%r14, %rdi
	callq	_intel_lpss_has_idma
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	movl	(%r14), %esi
	movq	(%r12), %r9
	movq	8(%r12), %r8
	movq	$0, (%rsp)
	movq	_intel_lpss_idma64_cell@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	movl	$1, %ecx
	callq	_mfd_add_devices
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movq	_LPSS_IDMA64_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_17:
	movl	(%r14), %esi
	movq	8(%r14), %rdx
	movq	(%r12), %r9
	movq	8(%r12), %r8
	movq	$0, (%rsp)
	movq	%r15, %rdi
	movl	$1, %ecx
	callq	_mfd_add_devices
	testl	%eax, %eax
	je	LBB0_18
## %bb.19:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_intel_lpss_debugfs_remove
	movq	%r14, %rdi
	callq	_intel_lpss_ltr_hide
	movq	%r14, %rdi
	callq	_intel_lpss_unregister_clock
LBB0_20:
	movl	(%r14), %esi
	movq	_intel_lpss_devid_ida@GOTPCREL(%rip), %rdi
	callq	_ida_simple_remove
	jmp	LBB0_21
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_10:
	movq	%rax, %rbx
	jmp	LBB0_21
LBB0_18:
	movq	_DPM_FLAG_SMART_SUSPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_dev_pm_set_driver_flags
	xorl	%ebx, %ebx
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_LPSS_PRIV_OFFSET,8,3           ## @LPSS_PRIV_OFFSET
	.comm	_LPSS_PRIV_SIZE,4,2             ## @LPSS_PRIV_SIZE
	.comm	_LPSS_PRIV_CAPS,8,3             ## @LPSS_PRIV_CAPS
	.comm	_intel_lpss_devid_ida,4,2       ## @intel_lpss_devid_ida
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to create debugfs entries\n"

	.comm	_intel_lpss_idma64_cell,4,2     ## @intel_lpss_idma64_cell
L_.str.1:                               ## @.str.1
	.asciz	"Failed to add %s, fallback to PIO\n"

	.comm	_LPSS_IDMA64_DRIVER_NAME,4,2    ## @LPSS_IDMA64_DRIVER_NAME
	.comm	_DPM_FLAG_SMART_SUSPEND,4,2     ## @DPM_FLAG_SMART_SUSPEND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_lpss_probe               ; -- Begin function intel_lpss_probe
	.p2align	2
_intel_lpss_probe:                      ; @intel_lpss_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
	cbz	x1, LBB0_16
; %bb.1:
	mov	x21, x1
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_16
; %bb.2:
	ldr	x8, [x21]
	cmp	x8, #0
	b.le	LBB0_16
; %bb.3:
	mov	x19, x0
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_19
; %bb.4:
	mov	x20, x0
	ldr	x8, [x21, #8]
Lloh2:
	adrp	x9, _LPSS_PRIV_OFFSET@GOTPAGE
Lloh3:
	ldr	x9, [x9, _LPSS_PRIV_OFFSET@GOTPAGEOFF]
	ldr	x8, [x8]
Lloh4:
	ldr	x9, [x9]
	add	x1, x9, x8
Lloh5:
	adrp	x8, _LPSS_PRIV_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LPSS_PRIV_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_devm_ioremap
	str	x0, [x20, #16]
	cbz	x0, LBB0_19
; %bb.5:
	stp	x19, x21, [x20, #32]
Lloh8:
	adrp	x8, _LPSS_PRIV_CAPS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LPSS_PRIV_CAPS@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	add	x0, x8, x0
	bl	_readl
	str	w0, [x20, #24]
	mov	x0, x19
	mov	x1, x20
	bl	_dev_set_drvdata
	mov	x0, x20
	bl	_intel_lpss_assign_devs
	mov	x22, x0
	cbnz	w0, LBB0_18
; %bb.6:
	ldr	w8, [x21, #16]
	ldr	x9, [x20, #8]
	str	w8, [x9]
	mov	x0, x20
	bl	_intel_lpss_init_dev
	ldr	w3, [x23]
Lloh11:
	adrp	x0, _intel_lpss_devid_ida@GOTPAGE
Lloh12:
	ldr	x0, [x0, _intel_lpss_devid_ida@GOTPAGEOFF]
	mov	w1, #0
	mov	w2, #0
	bl	_ida_simple_get
	str	x0, [x20]
	tbnz	x0, #63, LBB0_20
; %bb.7:
	mov	x0, x20
	bl	_intel_lpss_register_clock
	mov	x22, x0
	cbnz	w0, LBB0_15
; %bb.8:
	mov	x0, x20
	bl	_intel_lpss_ltr_expose
	mov	x0, x20
	bl	_intel_lpss_debugfs_add
	cbz	w0, LBB0_10
; %bb.9:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_10:
	mov	x0, x20
	bl	_intel_lpss_has_idma
	cbz	x0, LBB0_13
; %bb.11:
	ldr	w1, [x20]
	ldp	x5, x4, [x21]
Lloh15:
	adrp	x2, _intel_lpss_idma64_cell@GOTPAGE
Lloh16:
	ldr	x2, [x2, _intel_lpss_idma64_cell@GOTPAGEOFF]
	mov	x0, x19
	mov	w3, #1
	mov	x6, #0
	bl	_mfd_add_devices
	cbz	w0, LBB0_13
; %bb.12:
Lloh17:
	adrp	x8, _LPSS_IDMA64_DRIVER_NAME@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LPSS_IDMA64_DRIVER_NAME@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_13:
	ldr	w1, [x20]
	ldr	x2, [x20, #8]
	ldp	x5, x4, [x21]
	mov	x0, x19
	mov	w3, #1
	mov	x6, #0
	bl	_mfd_add_devices
	mov	x22, x0
	cbz	w0, LBB0_21
; %bb.14:
	mov	x0, x20
	bl	_intel_lpss_debugfs_remove
	mov	x0, x20
	bl	_intel_lpss_ltr_hide
	mov	x0, x20
	bl	_intel_lpss_unregister_clock
LBB0_15:
	ldr	w1, [x20]
Lloh22:
	adrp	x0, _intel_lpss_devid_ida@GOTPAGE
Lloh23:
	ldr	x0, [x0, _intel_lpss_devid_ida@GOTPAGEOFF]
	bl	_ida_simple_remove
	b	LBB0_18
LBB0_16:
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_18:
	mov	x0, x22
	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_19:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_17
LBB0_20:
	mov	x22, x0
	b	LBB0_18
LBB0_21:
Lloh28:
	adrp	x8, _DPM_FLAG_SMART_SUSPEND@GOTPAGE
Lloh29:
	ldr	x8, [x8, _DPM_FLAG_SMART_SUSPEND@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dev_pm_set_driver_flags
	b	LBB0_18
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_LPSS_PRIV_OFFSET,8,3           ; @LPSS_PRIV_OFFSET
	.comm	_LPSS_PRIV_SIZE,4,2             ; @LPSS_PRIV_SIZE
	.comm	_LPSS_PRIV_CAPS,8,3             ; @LPSS_PRIV_CAPS
	.comm	_intel_lpss_devid_ida,4,2       ; @intel_lpss_devid_ida
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to create debugfs entries\n"

	.comm	_intel_lpss_idma64_cell,4,2     ; @intel_lpss_idma64_cell
l_.str.1:                               ; @.str.1
	.asciz	"Failed to add %s, fallback to PIO\n"

	.comm	_LPSS_IDMA64_DRIVER_NAME,4,2    ; @LPSS_IDMA64_DRIVER_NAME
	.comm	_DPM_FLAG_SMART_SUSPEND,4,2     ; @DPM_FLAG_SMART_SUSPEND
.subsections_via_symbols
