	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aat2870_i2c_probe
_aat2870_i2c_probe:                     ## @aat2870_i2c_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, %r15
	callq	_dev_get_platdata
	movq	%rax, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r15, 8(%rax)
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_dev_set_drvdata
	movq	%r15, 48(%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_i2c_set_clientdata
	movq	_aat2870_regs@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movl	(%r14), %eax
	testl	%eax, %eax
	movl	$-1, %ecx
	cmovnsl	%eax, %ecx
	movl	%ecx, (%rbx)
	movq	24(%r14), %rax
	movq	%rax, 16(%rbx)
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	16(%r14), %eax
	movl	%eax, 40(%rbx)
	movq	_aat2870_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_aat2870_write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_aat2870_update@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	%rbx, %rdi
	addq	$24, %rdi
	callq	_mutex_init
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_4:
	movl	(%rbx), %esi
	testl	%esi, %esi
	js	LBB0_7
## %bb.5:
	movq	_GPIOF_OUT_INIT_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	callq	_devm_gpio_request_one
	testl	%eax, %eax
	js	LBB0_6
LBB0_7:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_aat2870_enable
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	cmpl	$0, 4(%r12)
	jle	LBB0_16
## %bb.8:
	xorl	%r13d, %r13d
	movq	_aat2870_devs@GOTPCREL(%rip), %r15
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r13
	movslq	4(%r12), %rax
	cmpq	%rax, %r13
	jge	LBB0_16
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=2
	movq	(%r15), %rdi
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=2
	incq	%r14
	callq	_ARRAY_SIZE
	cltq
	addq	$16, %rbx
	cmpq	%rax, %r14
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jge	LBB0_15
LBB0_11:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r12), %rax
	movq	%r13, %r12
	shlq	$4, %r12
	movq	(%rax,%r12), %rcx
	movq	(%r15), %rdi
	cmpq	(%rdi,%rbx), %rcx
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movl	12(%rax,%r12), %eax
	movl	12(%rdi,%rbx), %esi
	movl	%eax, %edi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_13
## %bb.20:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rax
	movl	8(%rax,%r12), %eax
	movq	%rcx, %r12
	movq	(%r15), %rcx
	movl	%eax, 8(%rcx,%rbx)
	jmp	LBB0_15
LBB0_16:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	8(%r14), %r15
	movq	_aat2870_devs@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	$0, (%rsp)
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mfd_add_devices
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movq	%r14, %rdi
	callq	_aat2870_disable
	movl	%ebx, %r12d
	jmp	LBB0_19
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_19
LBB0_18:
	movq	%r14, %rdi
	callq	_aat2870_init_debugfs
	jmp	LBB0_19
LBB0_6:
	movl	%eax, %r12d
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
LBB0_19:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_aat2870_regs,4,2               ## @aat2870_regs
	.comm	_aat2870_read,4,2               ## @aat2870_read
	.comm	_aat2870_write,4,2              ## @aat2870_write
	.comm	_aat2870_update,4,2             ## @aat2870_update
	.comm	_GPIOF_OUT_INIT_HIGH,4,2        ## @GPIOF_OUT_INIT_HIGH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"aat2870-en"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to request GPIO %d\n"

	.comm	_aat2870_devs,8,3               ## @aat2870_devs
L_.str.2:                               ## @.str.2
	.asciz	"Failed to add subdev: %d\n"

	.no_dead_strip	_aat2870_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aat2870_i2c_probe
_aat2870_i2c_probe:                     ; @aat2870_i2c_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x0
	bl	_dev_get_platdata
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_17
; %bb.1:
	mov	x19, x0
	str	x21, [x0, #8]
	mov	x0, x21
	mov	x1, x19
	bl	_dev_set_drvdata
	str	x21, [x19, #48]
	mov	x0, x21
	mov	x1, x19
	bl	_i2c_set_clientdata
Lloh3:
	adrp	x8, _aat2870_regs@GOTPAGE
Lloh4:
	ldr	x8, [x8, _aat2870_regs@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #44]
	ldr	w8, [x20]
	cmp	w8, #0
	csinv	w8, w8, wzr, ge
	str	w8, [x19]
	ldr	x8, [x20, #24]
	str	x8, [x19, #16]
	ldr	w8, [x20, #16]
Lloh6:
	adrp	x9, _aat2870_read@GOTPAGE
Lloh7:
	ldr	x9, [x9, _aat2870_read@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #36]
Lloh9:
	adrp	x8, _aat2870_write@GOTPAGE
Lloh10:
	ldr	x8, [x8, _aat2870_write@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _aat2870_update@GOTPAGE
Lloh13:
	ldr	x9, [x9, _aat2870_update@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #28]
	add	x0, x19, #24
	bl	_mutex_init
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	blr	x8
LBB0_3:
	ldr	w1, [x19]
	tbnz	w1, #31, LBB0_5
; %bb.4:
Lloh15:
	adrp	x8, _GPIOF_OUT_INIT_HIGH@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GPIOF_OUT_INIT_HIGH@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x3, l_.str@PAGE
Lloh19:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x21
	bl	_devm_gpio_request_one
	tbnz	w0, #31, LBB0_19
LBB0_5:
	mov	x0, x19
	bl	_aat2870_enable
	ldr	w8, [x20, #4]
Lloh20:
	adrp	x21, _aat2870_devs@GOTPAGE
Lloh21:
	ldr	x21, [x21, _aat2870_devs@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.6:
	mov	x22, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x20, #4]
	cmp	x22, x8
	b.ge	LBB0_15
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x23, #0
	mov	x24, #0
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=2
	ldr	x0, [x21]
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x24, x24, #1
	bl	_ARRAY_SIZE
	add	x23, x23, #16
	cmp	x24, w0, sxtw
	b.ge	LBB0_7
LBB0_12:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20, #8]
	lsl	x9, x22, #4
	ldr	x9, [x8, x9]
	ldr	x0, [x21]
	ldr	x10, [x0, x23]
	cmp	x9, x10
	b.ne	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	add	x8, x8, x22, lsl #4
	ldr	w8, [x8, #12]
	add	x9, x0, x23
	ldr	w1, [x9, #12]
	mov	x0, x8
	bl	_strcmp
	cbnz	w0, LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x20, #8]
	add	x8, x8, x22, lsl #4
	ldr	w8, [x8, #8]
	ldr	x9, [x21]
	add	x9, x9, x23
	str	w8, [x9, #8]
	b	LBB0_7
LBB0_15:
	ldr	x20, [x19, #8]
	ldr	x21, [x21]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	bl	_mfd_add_devices
	mov	x22, x0
	cbz	w0, LBB0_18
; %bb.16:
	ldr	x0, [x19, #8]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x22
	bl	_dev_err
	mov	x0, x19
	bl	_aat2870_disable
	b	LBB0_20
LBB0_17:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_20
LBB0_18:
	mov	x0, x19
	bl	_aat2870_init_debugfs
	b	LBB0_20
LBB0_19:
	mov	x22, x0
	ldr	w2, [x19]
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_err
LBB0_20:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_aat2870_regs,4,2               ; @aat2870_regs
	.comm	_aat2870_read,4,2               ; @aat2870_read
	.comm	_aat2870_write,4,2              ; @aat2870_write
	.comm	_aat2870_update,4,2             ; @aat2870_update
	.comm	_GPIOF_OUT_INIT_HIGH,4,2        ; @GPIOF_OUT_INIT_HIGH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"aat2870-en"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to request GPIO %d\n"

	.comm	_aat2870_devs,8,3               ; @aat2870_devs
l_.str.2:                               ; @.str.2
	.asciz	"Failed to add subdev: %d\n"

	.no_dead_strip	_aat2870_i2c_probe
.subsections_via_symbols
