	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cs5535_mfd_probe
_cs5535_mfd_probe:                      ## @cs5535_mfd_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_pci_enable_device
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	_cs5535_mfd_cells@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movslq	(%rax,%rbx,4), %r14
	movq	_cs5535_mfd_resources@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_IORESOURCE_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	(%r14,%r14,2), %r12
	movl	%eax, 8(%r13,%r12,4)
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_pci_resource_start
	movl	%eax, 4(%r13,%r12,4)
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_pci_resource_end
	movl	%eax, (%r13,%r12,4)
	movq	_cs5535_mfd_cells@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	movl	$0, (%rdi,%rbx,4)
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_4:
	movq	(%r12), %r14
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	movq	$0, (%rsp)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$-1, %esi
	movq	%r14, %rdx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mfd_add_devices
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_pci_disable_device
	jmp	LBB0_9
LBB0_6:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_machine_is_olpc
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_olpc_acpi_clones@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_mfd_clone_cell
LBB0_8:
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_dev_info
LBB0_9:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cs5535_mfd_cells,8,3           ## @cs5535_mfd_cells
	.comm	_cs5535_mfd_resources,8,3       ## @cs5535_mfd_resources
	.comm	_IORESOURCE_IO,4,2              ## @IORESOURCE_IO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MFD add devices failed: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"cs5535-acpi"

	.comm	_olpc_acpi_clones,8,3           ## @olpc_acpi_clones
L_.str.2:                               ## @.str.2
	.asciz	"%zu devices registered.\n"

	.no_dead_strip	_cs5535_mfd_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cs5535_mfd_probe
_cs5535_mfd_probe:                      ; @cs5535_mfd_probe
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_pci_enable_device
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.1:
Lloh0:
	adrp	x21, _cs5535_mfd_cells@GOTPAGE
Lloh1:
	ldr	x21, [x21, _cs5535_mfd_cells@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x22, #0
Lloh2:
	adrp	x23, _cs5535_mfd_resources@GOTPAGE
Lloh3:
	ldr	x23, [x23, _cs5535_mfd_resources@GOTPAGEOFF]
Lloh4:
	adrp	x24, _IORESOURCE_IO@GOTPAGE
Lloh5:
	ldr	x24, [x24, _IORESOURCE_IO@GOTPAGEOFF]
	mov	w25, #12
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	lsl	x26, x22, #2
	ldrsw	x20, [x8, x26]
	ldr	x8, [x23]
	ldr	w9, [x24]
	madd	x27, x20, x25, x8
	str	w9, [x27, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_pci_resource_start
	str	w0, [x27, #4]
	mov	x0, x19
	mov	x1, x20
	bl	_pci_resource_end
	str	w0, [x27]
	ldr	x0, [x21]
	str	wzr, [x0, x26]
	add	x22, x22, #1
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	b.lt	LBB0_3
LBB0_4:
	ldr	x20, [x21]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x19
	mov	w1, #-1
	mov	x2, x20
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	bl	_mfd_add_devices
	cbz	w0, LBB0_6
; %bb.5:
	mov	x20, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
	mov	x0, x19
	bl	_pci_disable_device
	b	LBB0_9
LBB0_6:
	bl	_machine_is_olpc
	cbz	x0, LBB0_8
; %bb.7:
Lloh8:
	adrp	x8, _olpc_acpi_clones@GOTPAGE
Lloh9:
	ldr	x8, [x8, _olpc_acpi_clones@GOTPAGEOFF]
Lloh10:
	ldr	x20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x2, x0
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_mfd_clone_cell
LBB0_8:
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	mov	x2, x0
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w20, #0
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_cs5535_mfd_cells,8,3           ; @cs5535_mfd_cells
	.comm	_cs5535_mfd_resources,8,3       ; @cs5535_mfd_resources
	.comm	_IORESOURCE_IO,4,2              ; @IORESOURCE_IO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MFD add devices failed: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"cs5535-acpi"

	.comm	_olpc_acpi_clones,8,3           ; @olpc_acpi_clones
l_.str.2:                               ; @.str.2
	.asciz	"%zu devices registered.\n"

	.no_dead_strip	_cs5535_mfd_probe
.subsections_via_symbols
