	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcp3021_probe
_mcp3021_probe:                         ## @mcp3021_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	8(%rdi), %rbx
	movl	16(%rdi), %edi
	movq	_I2C_FUNC_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$20, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_i2c_set_clientdata
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_of_property_read_u32
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movslq	(%r14), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	jmp	LBB0_11
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_8:
	movq	%r12, %rdi
	callq	_dev_get_platdata
	testq	%rax, %rax
	jne	LBB0_10
LBB0_9:
	movq	_MCP3021_VDD_REF_DEFAULT@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
LBB0_11:
	movl	%eax, (%r14)
	movl	(%r15), %ecx
	cmpl	$129, %ecx
	je	LBB0_12
## %bb.13:
	cmpl	$128, %ecx
	jne	LBB0_16
## %bb.14:
	movq	_MCP3221_OUTPUT_RES@GOTPCREL(%rip), %rcx
	movq	_MCP3221_SAR_MASK@GOTPCREL(%rip), %rdx
	movq	_MCP3221_SAR_SHIFT@GOTPCREL(%rip), %rsi
	jmp	LBB0_15
LBB0_12:
	movq	_MCP3021_OUTPUT_RES@GOTPCREL(%rip), %rcx
	movq	_MCP3021_SAR_MASK@GOTPCREL(%rip), %rdx
	movq	_MCP3021_SAR_SHIFT@GOTPCREL(%rip), %rsi
LBB0_15:
	movl	(%rsi), %esi
	movl	%esi, 16(%r14)
	movl	(%rdx), %edx
	movl	%edx, 12(%r14)
	movl	(%rcx), %ecx
	movl	%ecx, 8(%r14)
LBB0_16:
	movq	_MCP3021_VDD_REF_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_18
## %bb.17:
	movq	_MCP3021_VDD_REF_MIN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_18
## %bb.19:
	movq	_dev_attr_in0_input@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_sysfs_create_file
	testl	%eax, %eax
	jne	LBB0_23
## %bb.20:
	movq	%r12, %rdi
	callq	_hwmon_device_register
	movl	%eax, 4(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_21
## %bb.22:
	movl	4(%r14), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_dev_attr_in0_input@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_sysfs_remove_file
	movl	%ebx, %eax
	jmp	LBB0_23
LBB0_18:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_23:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	xorl	%eax, %eax
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_I2C,4,2               ## @I2C_FUNC_I2C
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reference-voltage-microvolt"

	.comm	_MCP3021_VDD_REF_DEFAULT,8,3    ## @MCP3021_VDD_REF_DEFAULT
	.comm	_MCP3021_SAR_SHIFT,4,2          ## @MCP3021_SAR_SHIFT
	.comm	_MCP3021_SAR_MASK,4,2           ## @MCP3021_SAR_MASK
	.comm	_MCP3021_OUTPUT_RES,4,2         ## @MCP3021_OUTPUT_RES
	.comm	_MCP3221_SAR_SHIFT,4,2          ## @MCP3221_SAR_SHIFT
	.comm	_MCP3221_SAR_MASK,4,2           ## @MCP3221_SAR_MASK
	.comm	_MCP3221_OUTPUT_RES,4,2         ## @MCP3221_OUTPUT_RES
	.comm	_MCP3021_VDD_REF_MAX,4,2        ## @MCP3021_VDD_REF_MAX
	.comm	_MCP3021_VDD_REF_MIN,4,2        ## @MCP3021_VDD_REF_MIN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_dev_attr_in0_input,4,2         ## @dev_attr_in0_input
	.no_dead_strip	_mcp3021_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcp3021_probe
_mcp3021_probe:                         ; @mcp3021_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	x21, x1
	mov	x19, x0
	ldr	x22, [x0, #8]
	ldr	w0, [x0, #16]
Lloh0:
	adrp	x8, _I2C_FUNC_I2C@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_I2C@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	w0, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #20
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
	cbz	x22, LBB0_7
; %bb.3:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x20
	bl	_of_property_read_u32
	cbnz	w0, LBB0_9
; %bb.4:
	ldrsw	x8, [x20]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	b	LBB0_10
LBB0_5:
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_21
LBB0_6:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_21
LBB0_7:
	mov	x0, x19
	bl	_dev_get_platdata
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w8, [x0]
	b	LBB0_10
LBB0_9:
Lloh12:
	adrp	x8, _MCP3021_VDD_REF_DEFAULT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MCP3021_VDD_REF_DEFAULT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
LBB0_10:
	str	w8, [x20]
	ldr	w9, [x21]
	cmp	w9, #129
	b.eq	LBB0_13
; %bb.11:
	cmp	w9, #128
	b.ne	LBB0_15
; %bb.12:
Lloh15:
	adrp	x9, _MCP3221_OUTPUT_RES@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MCP3221_OUTPUT_RES@GOTPAGEOFF]
Lloh17:
	adrp	x10, _MCP3221_SAR_MASK@GOTPAGE
Lloh18:
	ldr	x10, [x10, _MCP3221_SAR_MASK@GOTPAGEOFF]
Lloh19:
	adrp	x11, _MCP3221_SAR_SHIFT@GOTPAGE
Lloh20:
	ldr	x11, [x11, _MCP3221_SAR_SHIFT@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh21:
	adrp	x9, _MCP3021_OUTPUT_RES@GOTPAGE
Lloh22:
	ldr	x9, [x9, _MCP3021_OUTPUT_RES@GOTPAGEOFF]
Lloh23:
	adrp	x10, _MCP3021_SAR_MASK@GOTPAGE
Lloh24:
	ldr	x10, [x10, _MCP3021_SAR_MASK@GOTPAGEOFF]
Lloh25:
	adrp	x11, _MCP3021_SAR_SHIFT@GOTPAGE
Lloh26:
	ldr	x11, [x11, _MCP3021_SAR_SHIFT@GOTPAGEOFF]
LBB0_14:
	ldr	w11, [x11]
	ldr	w10, [x10]
	ldr	w9, [x9]
	stp	w10, w11, [x20, #12]
	str	w9, [x20, #8]
LBB0_15:
Lloh27:
	adrp	x9, _MCP3021_VDD_REF_MAX@GOTPAGE
Lloh28:
	ldr	x9, [x9, _MCP3021_VDD_REF_MAX@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	cmp	w8, w9
	b.gt	LBB0_20
; %bb.16:
Lloh30:
	adrp	x9, _MCP3021_VDD_REF_MIN@GOTPAGE
Lloh31:
	ldr	x9, [x9, _MCP3021_VDD_REF_MIN@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	cmp	w8, w9
	b.lt	LBB0_20
; %bb.17:
Lloh33:
	adrp	x1, _dev_attr_in0_input@GOTPAGE
Lloh34:
	ldr	x1, [x1, _dev_attr_in0_input@GOTPAGEOFF]
	mov	x0, x19
	bl	_sysfs_create_file
	cbnz	w0, LBB0_22
; %bb.18:
	mov	x0, x19
	bl	_hwmon_device_register
	str	w0, [x20, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_22
; %bb.19:
	ldr	w0, [x20, #4]
	bl	_PTR_ERR
	mov	x20, x0
Lloh35:
	adrp	x1, _dev_attr_in0_input@GOTPAGE
Lloh36:
	ldr	x1, [x1, _dev_attr_in0_input@GOTPAGEOFF]
	mov	x0, x19
	bl	_sysfs_remove_file
	mov	x0, x20
	b	LBB0_22
LBB0_20:
Lloh37:
	adrp	x8, _EINVAL@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_22:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_I2C,4,2               ; @I2C_FUNC_I2C
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reference-voltage-microvolt"

	.comm	_MCP3021_VDD_REF_DEFAULT,8,3    ; @MCP3021_VDD_REF_DEFAULT
	.comm	_MCP3021_SAR_SHIFT,4,2          ; @MCP3021_SAR_SHIFT
	.comm	_MCP3021_SAR_MASK,4,2           ; @MCP3021_SAR_MASK
	.comm	_MCP3021_OUTPUT_RES,4,2         ; @MCP3021_OUTPUT_RES
	.comm	_MCP3221_SAR_SHIFT,4,2          ; @MCP3221_SAR_SHIFT
	.comm	_MCP3221_SAR_MASK,4,2           ; @MCP3221_SAR_MASK
	.comm	_MCP3221_OUTPUT_RES,4,2         ; @MCP3221_OUTPUT_RES
	.comm	_MCP3021_VDD_REF_MAX,4,2        ; @MCP3021_VDD_REF_MAX
	.comm	_MCP3021_VDD_REF_MIN,4,2        ; @MCP3021_VDD_REF_MIN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_dev_attr_in0_input,4,2         ; @dev_attr_in0_input
	.no_dead_strip	_mcp3021_probe
.subsections_via_symbols
