	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function as3722_i2c_probe
_as3722_i2c_probe:                      ## @as3722_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r15
	movq	%r14, 8(%rax)
	movl	4(%r14), %eax
	movl	%eax, 32(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_i2c_set_clientdata
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_as3722_i2c_of_probe
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	movq	_as3722_regmap_config@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regmap_init_i2c
	movl	%eax, 36(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movl	36(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_6
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_7:
	movq	%r15, %rdi
	callq	_as3722_check_device_id
	testl	%eax, %eax
	js	LBB0_5
## %bb.8:
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	orq	(%r15), %rcx
	movq	8(%r15), %rdi
	movl	36(%r15), %esi
	movl	32(%r15), %edx
	movq	%r15, %rax
	addq	$16, %rax
	movq	%rax, (%rsp)
	movq	_as3722_irq_chip@GOTPCREL(%rip), %r9
	movl	$-1, %r8d
	callq	_devm_regmap_add_irq_chip
	testl	%eax, %eax
	js	LBB0_14
## %bb.9:
	movq	%r15, %rdi
	callq	_as3722_configure_pullups
	testl	%eax, %eax
	js	LBB0_5
## %bb.10:
	xorl	%ecx, %ecx
	cmpq	$0, 24(%r15)
	movq	_AS3722_CTRL_SEQU1_AC_OK_PWR_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmovnel	%edx, %ecx
	movq	_AS3722_CTRL_SEQU1_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_as3722_update_bits
	testl	%eax, %eax
	js	LBB0_16
## %bb.11:
	movq	_as3722_devs@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r12d, %edi
	callq	_ARRAY_SIZE
	movl	%eax, %r13d
	movl	16(%r15), %edi
	callq	_regmap_irq_get_domain
	movl	%eax, (%rsp)
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	$-1, %esi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_devm_mfd_add_devices
	movq	8(%r15), %rdi
	testl	%eax, %eax
	je	LBB0_18
## %bb.12:
	movl	%eax, %r14d
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movl	%r14d, %ebx
	jmp	LBB0_6
LBB0_5:
	movl	%eax, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	%eax, %ebx
	movq	8(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_17
LBB0_16:
	movl	%eax, %ebx
	movq	8(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
LBB0_17:
	movl	%ebx, %edx
	callq	_dev_err
	jmp	LBB0_6
LBB0_18:
	movl	$1, %esi
	callq	_device_init_wakeup
	movq	8(%r15), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_dev_dbg
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_as3722_regmap_config,4,2       ## @as3722_regmap_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"regmap init failed: %d\n"

	.comm	_IRQF_ONESHOT,8,3               ## @IRQF_ONESHOT
	.comm	_as3722_irq_chip,4,2            ## @as3722_irq_chip
L_.str.1:                               ## @.str.1
	.asciz	"Failed to add regmap irq: %d\n"

	.comm	_AS3722_CTRL_SEQU1_AC_OK_PWR_ON,4,2 ## @AS3722_CTRL_SEQU1_AC_OK_PWR_ON
	.comm	_AS3722_CTRL_SEQU1_REG,4,2      ## @AS3722_CTRL_SEQU1_REG
L_.str.2:                               ## @.str.2
	.asciz	"CTRLsequ1 update failed: %d\n"

	.comm	_as3722_devs,4,2                ## @as3722_devs
L_.str.3:                               ## @.str.3
	.asciz	"Failed to add MFD devices: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"AS3722 core driver initialized successfully\n"

	.no_dead_strip	_as3722_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function as3722_i2c_probe
_as3722_i2c_probe:                      ; @as3722_i2c_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, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	str	x20, [x0, #8]
	ldr	w8, [x20, #4]
	str	w8, [x0, #32]
	mov	x0, x20
	mov	x1, x19
	bl	_i2c_set_clientdata
	mov	x0, x20
	mov	x1, x19
	bl	_as3722_i2c_of_probe
	tbnz	w0, #31, LBB0_12
; %bb.2:
Lloh3:
	adrp	x1, _as3722_regmap_config@GOTPAGE
Lloh4:
	ldr	x1, [x1, _as3722_regmap_config@GOTPAGEOFF]
	mov	x0, x20
	bl	_devm_regmap_init_i2c
	str	w0, [x19, #36]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.3:
	ldr	w0, [x19, #36]
	bl	_PTR_ERR
	mov	x21, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
LBB0_4:
	mov	x2, x21
	bl	_dev_err
	b	LBB0_13
LBB0_5:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_13
LBB0_6:
	mov	x0, x19
	bl	_as3722_check_device_id
	tbnz	w0, #31, LBB0_12
; %bb.7:
Lloh10:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldp	x9, x0, [x19]
	orr	x3, x8, x9
	ldp	w2, w1, [x19, #32]
	add	x6, x19, #16
Lloh13:
	adrp	x5, _as3722_irq_chip@GOTPAGE
Lloh14:
	ldr	x5, [x5, _as3722_irq_chip@GOTPAGEOFF]
	mov	w4, #-1
	bl	_devm_regmap_add_irq_chip
	tbnz	w0, #31, LBB0_14
; %bb.8:
	mov	x0, x19
	bl	_as3722_configure_pullups
	tbnz	w0, #31, LBB0_12
; %bb.9:
	ldr	x8, [x19, #24]
Lloh15:
	adrp	x9, _AS3722_CTRL_SEQU1_AC_OK_PWR_ON@GOTPAGE
Lloh16:
	ldr	x9, [x9, _AS3722_CTRL_SEQU1_AC_OK_PWR_ON@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x9]
	cmp	x8, #0
	csel	w3, wzr, w2, eq
Lloh18:
	adrp	x8, _AS3722_CTRL_SEQU1_REG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AS3722_CTRL_SEQU1_REG@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_as3722_update_bits
	tbnz	w0, #31, LBB0_15
; %bb.10:
Lloh21:
	adrp	x8, _as3722_devs@GOTPAGE
Lloh22:
	ldr	x8, [x8, _as3722_devs@GOTPAGEOFF]
Lloh23:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x22, x0
	ldr	w0, [x19, #16]
	bl	_regmap_irq_get_domain
	mov	x6, x0
	mov	x0, x20
	mov	w1, #-1
	mov	x2, x21
	mov	x3, x22
	mov	x4, #0
	mov	w5, #0
	bl	_devm_mfd_add_devices
	mov	x21, x0
	ldr	x0, [x19, #8]
	cbz	w21, LBB0_16
; %bb.11:
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_12:
	mov	x21, x0
LBB0_13:
	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_14:
	mov	x21, x0
	ldr	x0, [x19, #8]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_15:
	mov	x21, x0
	ldr	x0, [x19, #8]
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_16:
	mov	w1, #1
	bl	_device_init_wakeup
	ldr	x0, [x19, #8]
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_dbg
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_as3722_regmap_config,4,2       ; @as3722_regmap_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"regmap init failed: %d\n"

	.comm	_IRQF_ONESHOT,8,3               ; @IRQF_ONESHOT
	.comm	_as3722_irq_chip,4,2            ; @as3722_irq_chip
l_.str.1:                               ; @.str.1
	.asciz	"Failed to add regmap irq: %d\n"

	.comm	_AS3722_CTRL_SEQU1_AC_OK_PWR_ON,4,2 ; @AS3722_CTRL_SEQU1_AC_OK_PWR_ON
	.comm	_AS3722_CTRL_SEQU1_REG,4,2      ; @AS3722_CTRL_SEQU1_REG
l_.str.2:                               ; @.str.2
	.asciz	"CTRLsequ1 update failed: %d\n"

	.comm	_as3722_devs,4,2                ; @as3722_devs
l_.str.3:                               ; @.str.3
	.asciz	"Failed to add MFD devices: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"AS3722 core driver initialized successfully\n"

	.no_dead_strip	_as3722_i2c_probe
.subsections_via_symbols
