	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ina2xx_probe
_ina2xx_probe:                          ## @ina2xx_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, %r14
	leaq	8(%rdi), %r15
	cmpq	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_of_device_get_match_data
	movq	%rax, %r12
	jmp	LBB0_3
LBB0_2:
	movl	(%rsi), %r12d
LBB0_3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movq	_ina2xx_config@GOTPCREL(%rip), %rax
	movl	%r12d, %ecx
	shlq	$2, %rcx
	addq	(%rax), %rcx
	movq	%rcx, 24(%rbx)
	movq	%rbx, %rdi
	addq	$32, %rdi
	callq	_mutex_init
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-36(%rbp), %rdx
	callq	_of_property_read_u32
	testq	%rax, %rax
	js	LBB0_7
## %bb.6:
	movl	-36(%rbp), %esi
	jmp	LBB0_10
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_7:
	movq	%r15, %rdi
	callq	_dev_get_platdata
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	_INA2XX_RSHUNT_DEFAULT@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %esi
	movl	%esi, -36(%rbp)
LBB0_10:
	movq	%rbx, %rdi
	callq	_ina2xx_set_shunt
	movq	24(%rbx), %rax
	movl	(%rax), %eax
	movq	_ina2xx_regmap_config@GOTPCREL(%rip), %rsi
	movl	%eax, (%rsi)
	movq	%r14, %rdi
	callq	_devm_regmap_init_i2c
	movq	%rax, 16(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	16(%rbx), %rdi
LBB0_18:
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%rbx, %rdi
	callq	_ina2xx_init
	testl	%eax, %eax
	js	LBB0_13
## %bb.14:
	movq	8(%rbx), %rax
	movq	_ina2xx_group@GOTPCREL(%rip), %rcx
	movq	%rcx, (%rax)
	movq	_ina226@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_16
## %bb.15:
	movq	8(%rbx), %rax
	movq	_ina226_group@GOTPCREL(%rip), %rcx
	movq	%rcx, 8(%rax)
LBB0_16:
	movl	(%r14), %esi
	movq	8(%rbx), %rcx
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_devm_hwmon_device_register_with_groups
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	movq	%r12, %rdi
	jmp	LBB0_18
LBB0_13:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_19:
	movl	(%r14), %edx
	movl	(%rbx), %ecx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ina2xx_config,8,3              ## @ina2xx_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"shunt-resistor"

	.comm	_INA2XX_RSHUNT_DEFAULT,4,2      ## @INA2XX_RSHUNT_DEFAULT
	.comm	_ina2xx_regmap_config,4,2       ## @ina2xx_regmap_config
L_.str.1:                               ## @.str.1
	.asciz	"failed to allocate register map\n"

L_.str.2:                               ## @.str.2
	.asciz	"error configuring the device: %d\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ina2xx_group,4,2               ## @ina2xx_group
	.comm	_ina226,4,2                     ## @ina226
	.comm	_ina226_group,4,2               ## @ina226_group
L_.str.3:                               ## @.str.3
	.asciz	"power monitor %s (Rshunt = %li uOhm)\n"

	.no_dead_strip	_ina2xx_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ina2xx_probe
_ina2xx_probe:                          ; @ina2xx_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	x20, x0
	mov	x19, x0
	ldr	x8, [x19, #8]!
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_of_device_get_match_data
	mov	x22, x0
	b	LBB0_3
LBB0_2:
	ldr	w22, [x1]
LBB0_3:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.4:
	mov	x21, x0
Lloh3:
	adrp	x8, _ina2xx_config@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ina2xx_config@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x8, x8, w22, uxtw #2
	str	x8, [x0, #24]
	add	x0, x0, #32
	bl	_mutex_init
	ldr	x0, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_of_property_read_u32
	tbnz	x0, #63, LBB0_8
; %bb.5:
	ldr	w1, [sp, #12]
	b	LBB0_9
LBB0_6:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_8:
	mov	x0, x19
	bl	_dev_get_platdata
Lloh10:
	adrp	x8, _INA2XX_RSHUNT_DEFAULT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _INA2XX_RSHUNT_DEFAULT@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x0, eq
	ldr	w1, [x8]
	str	w1, [sp, #12]
LBB0_9:
	mov	x0, x21
	bl	_ina2xx_set_shunt
	ldr	x8, [x21, #24]
	ldr	w8, [x8]
Lloh12:
	adrp	x1, _ina2xx_regmap_config@GOTPAGE
Lloh13:
	ldr	x1, [x1, _ina2xx_regmap_config@GOTPAGEOFF]
	str	w8, [x1]
	mov	x0, x20
	bl	_devm_regmap_init_i2c
	str	x0, [x21, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.10:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x21, #16]
LBB0_11:
	bl	_PTR_ERR
LBB0_12:
	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:
	mov	x0, x21
	bl	_ina2xx_init
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_18
; %bb.14:
Lloh16:
	adrp	x8, _ina2xx_group@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ina2xx_group@GOTPAGEOFF]
	ldr	x9, [x21, #8]
	str	x8, [x9]
Lloh18:
	adrp	x8, _ina226@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ina226@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_16
; %bb.15:
	ldr	x8, [x21, #8]
Lloh21:
	adrp	x9, _ina226_group@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ina226_group@GOTPAGEOFF]
	str	x9, [x8, #8]
LBB0_16:
	ldr	w1, [x20]
	ldr	x3, [x21, #8]
	mov	x0, x19
	mov	x2, x21
	bl	_devm_hwmon_device_register_with_groups
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_19
; %bb.17:
	mov	x0, x22
	b	LBB0_11
LBB0_18:
	str	x0, [sp]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh25:
	adrp	x8, _ENODEV@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_7
LBB0_19:
	ldr	w2, [x20]
	ldr	w3, [x21]
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w0, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ina2xx_config,8,3              ; @ina2xx_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"shunt-resistor"

	.comm	_INA2XX_RSHUNT_DEFAULT,4,2      ; @INA2XX_RSHUNT_DEFAULT
	.comm	_ina2xx_regmap_config,4,2       ; @ina2xx_regmap_config
l_.str.1:                               ; @.str.1
	.asciz	"failed to allocate register map\n"

l_.str.2:                               ; @.str.2
	.asciz	"error configuring the device: %d\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ina2xx_group,4,2               ; @ina2xx_group
	.comm	_ina226,4,2                     ; @ina226
	.comm	_ina226_group,4,2               ; @ina226_group
l_.str.3:                               ; @.str.3
	.asciz	"power monitor %s (Rshunt = %li uOhm)\n"

	.no_dead_strip	_ina2xx_probe
.subsections_via_symbols
