	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function as3711_i2c_probe
_as3711_i2c_probe:                      ## @as3711_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	cmpl	$0, (%rdi)
	je	LBB0_1
## %bb.8:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_devm_kzalloc
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_3
	jmp	LBB0_9
LBB0_1:
	movq	%r12, %rdi
	callq	_dev_get_platdata
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_dbg
	xorl	%r14d, %r14d
LBB0_3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	%rax, %r15
	movq	%r12, (%rax)
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_i2c_set_clientdata
	cmpq	$0, 8(%r12)
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_notice
LBB0_6:
	movq	_as3711_regmap_config@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_regmap_init_i2c
	movl	%eax, 8(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	8(%r15), %edi
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	jmp	LBB0_23
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_10:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_24
LBB0_11:
	movq	_AS3711_ASIC_ID_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	callq	_regmap_read
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	testl	%ebx, %ebx
	js	LBB0_14
LBB0_15:
	cmpl	$139, -40(%rbp)
	jne	LBB0_16
## %bb.17:
	movq	(%r15), %rdi
	movl	-36(%rbp), %ecx
	leaq	L_.str.4(%rip), %rsi
	movl	$139, %edx
	callq	_dev_info
	testq	%r14, %r14
	je	LBB0_19
## %bb.18:
	leaq	4(%r14), %rax
	movq	_as3711_subdevs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_AS3711_REGULATOR@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	shlq	$4, %rsi
	movq	%rax, 8(%rdx,%rsi)
	movq	(%rcx), %rax
	movl	$4, (%rax,%rsi)
	movq	_AS3711_BACKLIGHT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	shlq	$4, %rdx
	movq	%r14, 8(%rax,%rdx)
	movq	(%rcx), %rbx
	movl	$4, (%rbx,%rdx)
	jmp	LBB0_20
LBB0_12:
	movl	8(%r15), %edi
	movq	_AS3711_ASIC_ID_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	movl	%eax, %ebx
	testl	%ebx, %ebx
	jns	LBB0_15
LBB0_14:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_22
LBB0_16:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_19:
	movq	_as3711_subdevs@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_AS3711_REGULATOR@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	shlq	$4, %rdx
	movq	$0, 8(%rcx,%rdx)
	movq	(%rax), %rcx
	movl	$0, (%rcx,%rdx)
	movq	_AS3711_BACKLIGHT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	shlq	$4, %rdx
	movq	$0, 8(%rcx,%rdx)
	movq	(%rax), %rbx
	movl	$0, (%rbx,%rdx)
LBB0_20:
	movq	(%r15), %r14
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	$0, (%rsp)
	movq	%r14, %rdi
	movl	$-1, %esi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_devm_mfd_add_devices
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_24
## %bb.21:
	leaq	L_.str.5(%rip), %rsi
LBB0_22:
	movq	%r12, %rdi
	movl	%ebx, %edx
LBB0_23:
	callq	_dev_err
LBB0_24:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Platform data not found\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"IRQ not supported yet\n"

	.comm	_as3711_regmap_config,4,2       ## @as3711_regmap_config
L_.str.2:                               ## @.str.2
	.asciz	"regmap initialization failed: %d\n"

	.comm	_AS3711_ASIC_ID_1,4,2           ## @AS3711_ASIC_ID_1
	.comm	_AS3711_ASIC_ID_2,4,2           ## @AS3711_ASIC_ID_2
L_.str.3:                               ## @.str.3
	.asciz	"regmap_read() failed: %d\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.4:                               ## @.str.4
	.asciz	"AS3711 detected: %x:%x\n"

	.comm	_as3711_subdevs,8,3             ## @as3711_subdevs
	.comm	_AS3711_REGULATOR,8,3           ## @AS3711_REGULATOR
	.comm	_AS3711_BACKLIGHT,8,3           ## @AS3711_BACKLIGHT
L_.str.5:                               ## @.str.5
	.asciz	"add mfd devices failed: %d\n"

	.no_dead_strip	_as3711_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function as3711_i2c_probe
_as3711_i2c_probe:                      ; @as3711_i2c_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w2, [x20]
	mov	x0, x19
	mov	w1, #8
	bl	_devm_kzalloc
	mov	x21, x0
	cbnz	x0, LBB0_4
	b	LBB0_10
LBB0_2:
	mov	x0, x19
	bl	_dev_get_platdata
	mov	x21, x0
	cbnz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
LBB0_4:
	ldr	w2, [x20]
	mov	x0, x19
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_10
; %bb.5:
	mov	x20, x0
	str	x19, [x0]
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.6:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_notice
LBB0_7:
Lloh6:
	adrp	x1, _as3711_regmap_config@GOTPAGE
Lloh7:
	ldr	x1, [x1, _as3711_regmap_config@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_regmap_init_i2c
	str	w0, [x20, #8]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x20, #8]
	cbz	x8, LBB0_13
; %bb.8:
	bl	_PTR_ERR
	mov	x22, x0
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_9:
	mov	x0, x19
	mov	x2, x22
	bl	_dev_err
	b	LBB0_12
LBB0_10:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_12:
	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
	add	sp, sp, #64
	ret
LBB0_13:
Lloh12:
	adrp	x8, _AS3711_ASIC_ID_1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AS3711_ASIC_ID_1@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	mov	x22, x0
	cbz	w0, LBB0_18
; %bb.14:
	tbnz	w22, #31, LBB0_19
LBB0_15:
	ldr	w8, [sp, #12]
	cmp	w8, #139
	b.ne	LBB0_20
; %bb.16:
	ldr	x0, [x20]
	ldr	w3, [sp, #8]
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w2, #139
	bl	_dev_info
	cbz	x21, LBB0_21
; %bb.17:
	add	x8, x21, #4
Lloh17:
	adrp	x9, _as3711_subdevs@GOTPAGE
Lloh18:
	ldr	x9, [x9, _as3711_subdevs@GOTPAGEOFF]
Lloh19:
	adrp	x10, _AS3711_REGULATOR@GOTPAGE
Lloh20:
	ldr	x10, [x10, _AS3711_REGULATOR@GOTPAGEOFF]
	ldr	x11, [x9]
Lloh21:
	ldr	x10, [x10]
	lsl	x10, x10, #4
	add	x11, x11, x10
	str	x8, [x11, #8]
	ldr	x8, [x9]
	mov	w11, #4
	str	w11, [x8, x10]
Lloh22:
	adrp	x10, _AS3711_BACKLIGHT@GOTPAGE
Lloh23:
	ldr	x10, [x10, _AS3711_BACKLIGHT@GOTPAGEOFF]
Lloh24:
	ldr	x10, [x10]
	lsl	x10, x10, #4
	add	x8, x8, x10
	str	x21, [x8, #8]
	ldr	x21, [x9]
	str	w11, [x21, x10]
	b	LBB0_22
LBB0_18:
	ldr	w0, [x20, #8]
Lloh25:
	adrp	x8, _AS3711_ASIC_ID_2@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AS3711_ASIC_ID_2@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_regmap_read
	mov	x22, x0
	tbz	w22, #31, LBB0_15
LBB0_19:
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_20:
Lloh30:
	adrp	x8, _ENODEV@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_11
LBB0_21:
Lloh32:
	adrp	x8, _as3711_subdevs@GOTPAGE
Lloh33:
	ldr	x8, [x8, _as3711_subdevs@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh34:
	adrp	x10, _AS3711_REGULATOR@GOTPAGE
Lloh35:
	ldr	x10, [x10, _AS3711_REGULATOR@GOTPAGEOFF]
Lloh36:
	ldr	x10, [x10]
	lsl	x10, x10, #4
	add	x9, x9, x10
	str	xzr, [x9, #8]
	ldr	x9, [x8]
	str	wzr, [x9, x10]
Lloh37:
	adrp	x10, _AS3711_BACKLIGHT@GOTPAGE
Lloh38:
	ldr	x10, [x10, _AS3711_BACKLIGHT@GOTPAGEOFF]
Lloh39:
	ldr	x10, [x10]
	lsl	x10, x10, #4
	add	x9, x9, x10
	str	xzr, [x9, #8]
	ldr	x21, [x8]
	str	wzr, [x21, x10]
LBB0_22:
	ldr	x20, [x20]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x20
	mov	w1, #-1
	mov	x2, x21
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	bl	_devm_mfd_add_devices
	mov	x22, x0
	tbz	w0, #31, LBB0_12
; %bb.23:
Lloh40:
	adrp	x1, l_.str.5@PAGE
Lloh41:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Platform data not found\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"IRQ not supported yet\n"

	.comm	_as3711_regmap_config,4,2       ; @as3711_regmap_config
l_.str.2:                               ; @.str.2
	.asciz	"regmap initialization failed: %d\n"

	.comm	_AS3711_ASIC_ID_1,4,2           ; @AS3711_ASIC_ID_1
	.comm	_AS3711_ASIC_ID_2,4,2           ; @AS3711_ASIC_ID_2
l_.str.3:                               ; @.str.3
	.asciz	"regmap_read() failed: %d\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.4:                               ; @.str.4
	.asciz	"AS3711 detected: %x:%x\n"

	.comm	_as3711_subdevs,8,3             ; @as3711_subdevs
	.comm	_AS3711_REGULATOR,8,3           ; @AS3711_REGULATOR
	.comm	_AS3711_BACKLIGHT,8,3           ; @AS3711_BACKLIGHT
l_.str.5:                               ; @.str.5
	.asciz	"add mfd devices failed: %d\n"

	.no_dead_strip	_as3711_i2c_probe
.subsections_via_symbols
