	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpc_ich_probe
_lpc_ich_probe:                         ## @lpc_ich_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	(%r15), %rax
	movq	%rax, (%rbx)
	movq	$-1, 8(%rbx)
	movq	_ACPIBASE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rbx)
	movq	_ACPICTRL_PMCBASE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 28(%rbx)
	movl	$-1, 16(%rbx)
	movq	_LPC_ICH5@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	_GPIOCTRL_ICH0@GOTPCREL(%rip), %rax
	cmovaq	_GPIOCTRL_ICH6@GOTPCREL(%rip), %rax
	movq	_GPIOBASE_ICH0@GOTPCREL(%rip), %rcx
	cmovaq	_GPIOBASE_ICH6@GOTPCREL(%rip), %rcx
	movl	(%rax), %eax
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rbx)
	movl	%eax, 20(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_pci_set_drvdata
	movq	_lpc_chipset_info@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%rbx), %rcx
	leaq	(%rcx,%rcx,2), %rdx
	cmpq	$0, 16(%rax,%rdx,8)
	je	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	callq	_lpc_ich_init_wdt
	xorl	%r15d, %r15d
	testl	%eax, %eax
	sete	%r15b
	movq	(%r12), %rax
	movq	(%rbx), %rcx
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_3:
	xorl	%r15d, %r15d
LBB0_5:
	leaq	(%rcx,%rcx,2), %rdx
	cmpq	$0, 8(%rax,%rdx,8)
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_lpc_ich_init_gpio
	testl	%eax, %eax
	movl	$1, %eax
	cmovel	%eax, %r15d
	movq	(%r12), %rax
	movq	(%rbx), %rcx
LBB0_7:
	leaq	(%rcx,%rcx,2), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_lpc_ich_init_spi
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_13
## %bb.10:
	testl	%r15d, %r15d
	je	LBB0_11
	jmp	LBB0_13
LBB0_9:
	xorl	%eax, %eax
	testl	%r15d, %r15d
	jne	LBB0_13
LBB0_11:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
	movq	%r14, %rdi
	callq	_lpc_ich_restore_config_space
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_12:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ACPIBASE,4,2                   ## @ACPIBASE
	.comm	_ACPICTRL_PMCBASE,4,2           ## @ACPICTRL_PMCBASE
	.comm	_LPC_ICH5,8,3                   ## @LPC_ICH5
	.comm	_GPIOBASE_ICH0,4,2              ## @GPIOBASE_ICH0
	.comm	_GPIOCTRL_ICH0,4,2              ## @GPIOCTRL_ICH0
	.comm	_GPIOBASE_ICH6,4,2              ## @GPIOBASE_ICH6
	.comm	_GPIOCTRL_ICH6,4,2              ## @GPIOCTRL_ICH6
	.comm	_lpc_chipset_info,8,3           ## @lpc_chipset_info
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No MFD cells added\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_lpc_ich_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpc_ich_probe
_lpc_ich_probe:                         ; @lpc_ich_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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	x8, [x21]
	str	x8, [x0]
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x0, #8]
Lloh3:
	adrp	x9, _ACPIBASE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ACPIBASE@GOTPAGEOFF]
Lloh5:
	adrp	x10, _ACPICTRL_PMCBASE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ACPICTRL_PMCBASE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	ldr	w10, [x10]
	stp	w10, w9, [x0, #28]
	mov	w9, #-1
	str	w9, [x0, #16]
Lloh9:
	adrp	x9, _LPC_ICH5@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LPC_ICH5@GOTPAGEOFF]
Lloh11:
	adrp	x10, _GPIOCTRL_ICH6@GOTPAGE
Lloh12:
	ldr	x10, [x10, _GPIOCTRL_ICH6@GOTPAGEOFF]
Lloh13:
	adrp	x11, _GPIOCTRL_ICH0@GOTPAGE
Lloh14:
	ldr	x11, [x11, _GPIOCTRL_ICH0@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x8, x10, x11, hi
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _GPIOBASE_ICH6@GOTPAGE
Lloh17:
	ldr	x9, [x9, _GPIOBASE_ICH6@GOTPAGEOFF]
Lloh18:
	adrp	x10, _GPIOBASE_ICH0@GOTPAGE
Lloh19:
	ldr	x10, [x10, _GPIOBASE_ICH0@GOTPAGEOFF]
	csel	x9, x9, x10, hi
	ldr	w9, [x9]
	stp	w8, w9, [x0, #20]
	mov	x0, x19
	mov	x1, x20
	bl	_pci_set_drvdata
Lloh20:
	adrp	x22, _lpc_chipset_info@GOTPAGE
Lloh21:
	ldr	x22, [x22, _lpc_chipset_info@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x9, [x20]
	mov	w10, #24
	madd	x10, x9, x10, x8
	ldr	x10, [x10, #16]
	cbz	x10, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_lpc_ich_init_wdt
	cmp	w0, #0
	cset	w21, eq
	ldr	x8, [x22]
	ldr	x9, [x20]
	b	LBB0_5
LBB0_3:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_13
LBB0_4:
	mov	w21, #0
LBB0_5:
	mov	w10, #24
	madd	x10, x9, x10, x8
	ldr	x10, [x10, #8]
	cbz	x10, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_lpc_ich_init_gpio
	cmp	w0, #0
	csinc	w21, w21, wzr, ne
	ldr	x8, [x22]
	ldr	x9, [x20]
LBB0_7:
	mov	w10, #24
	mul	x9, x9, x10
	ldr	x8, [x8, x9]
	cbz	x8, LBB0_10
; %bb.8:
	mov	x0, x19
	bl	_lpc_ich_init_spi
	mov	x8, x0
	mov	w0, #0
	cbz	w8, LBB0_14
; %bb.9:
	cbz	w21, LBB0_12
	b	LBB0_14
LBB0_10:
	cbz	w21, LBB0_12
; %bb.11:
	mov	w0, #0
	b	LBB0_14
LBB0_12:
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
	mov	x0, x19
	bl	_lpc_ich_restore_config_space
Lloh26:
	adrp	x8, _ENODEV@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh15
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ACPIBASE,4,2                   ; @ACPIBASE
	.comm	_ACPICTRL_PMCBASE,4,2           ; @ACPICTRL_PMCBASE
	.comm	_LPC_ICH5,8,3                   ; @LPC_ICH5
	.comm	_GPIOBASE_ICH0,4,2              ; @GPIOBASE_ICH0
	.comm	_GPIOCTRL_ICH0,4,2              ; @GPIOCTRL_ICH0
	.comm	_GPIOBASE_ICH6,4,2              ; @GPIOBASE_ICH6
	.comm	_GPIOCTRL_ICH6,4,2              ; @GPIOCTRL_ICH6
	.comm	_lpc_chipset_info,8,3           ; @lpc_chipset_info
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No MFD cells added\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_lpc_ich_probe
.subsections_via_symbols
