	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adc128_probe
_adc128_probe:                          ## @adc128_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, %r15
	leaq	4(%rdi), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regulator_get_optional
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	%rax, %rcx
	movl	$2560, %eax                     ## imm = 0xA00
	testq	%rcx, %rcx
	je	LBB0_3
LBB0_7:
	movl	%eax, (%r12)
	movl	(%r14), %edi
	leaq	4(%r12), %r13
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdx
	callq	_of_property_read_u8
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:
	movq	_ADC128_REG_CONFIG_ADV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_17
## %bb.11:
	shrl	%ebx
	movq	_ADC128_REG_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movl	%ebx, (%r13)
	jmp	LBB0_12
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_3:
	movq	%r13, 8(%r12)
	movq	%r13, %rdi
	callq	_regulator_enable
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	%r13, %rdi
	callq	_regulator_get_voltage
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_17
## %bb.6:
	movl	%ebx, %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_DIV_ROUND_CLOSEST
	jmp	LBB0_7
LBB0_8:
	movl	(%r13), %edx
	cmpl	$4, %edx
	jl	LBB0_12
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_12:
	movq	%r15, 24(%r12)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_i2c_set_clientdata
	movq	%r12, %rdi
	addq	$16, %rdi
	callq	_mutex_init
	movq	%r12, %rdi
	callq	_adc128_init_client
	testl	%eax, %eax
	js	LBB0_16
## %bb.13:
	movl	(%r15), %esi
	movq	_adc128_groups@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_devm_hwmon_device_register_with_groups
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movq	%rbx, %rdi
	callq	_PTR_ERR
LBB0_16:
	movl	%eax, %ebx
LBB0_17:
	movq	8(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.18:
	callq	_regulator_disable
	jmp	LBB0_19
LBB0_4:
	movl	%eax, %ebx
	jmp	LBB0_19
LBB0_14:
	xorl	%ebx, %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vref"

L_.str.1:                               ## @.str.1
	.asciz	"ti,mode"

L_.str.2:                               ## @.str.2
	.asciz	"invalid operation mode %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ADC128_REG_CONFIG_ADV,4,2      ## @ADC128_REG_CONFIG_ADV
	.comm	_ADC128_REG_MASK,4,2            ## @ADC128_REG_MASK
	.comm	_adc128_groups,4,2              ## @adc128_groups
	.no_dead_strip	_adc128_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adc128_probe
_adc128_probe:                          ; @adc128_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
	add	x20, x0, #4
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_devm_regulator_get_optional
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.2:
	mov	w0, #2560
LBB0_3:
	mov	x23, x19
	str	w0, [x23], #4
	ldr	w0, [x20]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x23
	bl	_of_property_read_u8
	cbz	x0, LBB0_10
; %bb.4:
Lloh7:
	adrp	x8, _ADC128_REG_CONFIG_ADV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ADC128_REG_CONFIG_ADV@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
	tbnz	w0, #31, LBB0_16
; %bb.5:
Lloh10:
	adrp	x8, _ADC128_REG_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ADC128_REG_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	and	w8, w8, w22, lsr #1
	str	w8, [x23]
	b	LBB0_12
LBB0_6:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_20
LBB0_7:
	str	x23, [x19, #8]
	mov	x0, x23
	bl	_regulator_enable
	tbnz	w0, #31, LBB0_18
; %bb.8:
	mov	x0, x23
	bl	_regulator_get_voltage
	mov	x22, x0
	tbnz	w0, #31, LBB0_16
; %bb.9:
	mov	x0, x22
	mov	w1, #1000
	bl	_DIV_ROUND_CLOSEST
	b	LBB0_3
LBB0_10:
	ldr	w2, [x23]
	cmp	w2, #4
	b.lt	LBB0_12
; %bb.11:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_16
LBB0_12:
	str	x21, [x19, #24]
	mov	x0, x21
	mov	x1, x19
	bl	_i2c_set_clientdata
	add	x0, x19, #16
	bl	_mutex_init
	mov	x0, x19
	bl	_adc128_init_client
	tbnz	w0, #31, LBB0_15
; %bb.13:
	ldr	w1, [x21]
Lloh21:
	adrp	x8, _adc128_groups@GOTPAGE
Lloh22:
	ldr	x8, [x8, _adc128_groups@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_devm_hwmon_device_register_with_groups
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_19
; %bb.14:
	mov	x0, x20
	bl	_PTR_ERR
LBB0_15:
	mov	x22, x0
LBB0_16:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_20
; %bb.17:
	bl	_regulator_disable
	b	LBB0_20
LBB0_18:
	mov	x22, x0
	b	LBB0_20
LBB0_19:
	mov	w22, #0
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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vref"

l_.str.1:                               ; @.str.1
	.asciz	"ti,mode"

l_.str.2:                               ; @.str.2
	.asciz	"invalid operation mode %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ADC128_REG_CONFIG_ADV,4,2      ; @ADC128_REG_CONFIG_ADV
	.comm	_ADC128_REG_MASK,4,2            ; @ADC128_REG_MASK
	.comm	_adc128_groups,4,2              ; @adc128_groups
	.no_dead_strip	_adc128_probe
.subsections_via_symbols
