	.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	%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	%rsi, %r14
	movq	%rdi, %r13
	movl	$24, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r12
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_i2c_set_clientdata
	movq	_ina2xx_regmap_config@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	callq	_devm_regmap_init_i2c
	movl	%eax, 20(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.20:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movl	20(%r12), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	cmpq	$0, (%r13)
	je	LBB0_5
## %bb.4:
	movq	%r13, %rdi
	callq	_of_device_get_match_data
	jmp	LBB0_6
LBB0_5:
	movl	(%r14), %eax
LBB0_6:
	movq	_ina2xx_config@GOTPCREL(%rip), %rcx
	movl	%eax, %eax
	shlq	$2, %rax
	addq	(%rcx), %rax
	movq	%rax, 8(%r12)
	movq	%r12, %rdi
	addq	$16, %rdi
	callq	_mutex_init
	movq	(%r13), %rdi
	leaq	L_.str.1(%rip), %rsi
	leaq	-44(%rbp), %rdx
	callq	_of_property_read_u32
	testq	%rax, %rax
	js	LBB0_8
## %bb.7:
	movl	-44(%rbp), %esi
	jmp	LBB0_11
LBB0_8:
	movq	%r13, %rdi
	callq	_dev_get_platdata
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	_INA2XX_RSHUNT_DEFAULT@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %esi
	movl	%esi, -44(%rbp)
LBB0_11:
	movq	%r12, %rdi
	callq	_set_shunt_resistor
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.12:
	movq	8(%r12), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movslq	(%r14), %rax
	movq	_ina226@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_14
## %bb.13:
	movq	_INA226_DEFAULT_AVG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_ina226_set_average
	movq	_INA226_DEFAULT_IT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_ina226_set_int_time_vbus
	movq	_INA226_DEFAULT_IT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_ina226_set_int_time_vshunt
	jmp	LBB0_15
LBB0_14:
	movl	$1, (%r12)
	movq	_INA219_DEFAULT_IT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_ina219_set_int_time_vbus
	movq	_INA219_DEFAULT_IT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_ina219_set_int_time_vshunt
	movq	_INA219_DEFAULT_BRNG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_ina219_set_vbus_range_denom
	movq	_INA219_DEFAULT_PGA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_ina219_set_vshunt_pga_gain
LBB0_15:
	movl	-44(%rbp), %esi
	movq	%r12, %rdi
	callq	_ina2xx_init
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	jmp	LBB0_19
LBB0_17:
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movq	_INDIO_BUFFER_SOFTWARE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r15)
	movq	%r15, %r12
	addq	$8, %r12
	movq	%r13, 16(%r15)
	movq	(%r13), %rax
	movq	%rax, 8(%r15)
	movslq	(%r14), %rax
	movq	_ina226@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	movq	_ina219_info@GOTPCREL(%rip), %rbx
	cmoveq	_ina226_info@GOTPCREL(%rip), %rbx
	movq	_ina219_channels@GOTPCREL(%rip), %rax
	cmoveq	_ina226_channels@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 56(%r15)
	callq	_ARRAY_SIZE
	movq	%rax, 48(%r15)
	movq	%rbx, 40(%r15)
	movl	4(%r14), %eax
	movl	%eax, 32(%r15)
	movq	_ina2xx_setup_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r15)
	movq	%r12, %rdi
	callq	_devm_iio_kfifo_allocate
	testq	%rax, %rax
	je	LBB0_1
## %bb.18:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_iio_device_attach_buffer
	movq	%r15, %rdi
	callq	_iio_device_register
	movl	%eax, %ebx
	jmp	LBB0_19
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %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	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ina2xx_regmap_config,4,2       ## @ina2xx_regmap_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate register map\n"

	.comm	_ina2xx_config,8,3              ## @ina2xx_config
L_.str.1:                               ## @.str.1
	.asciz	"shunt-resistor"

	.comm	_INA2XX_RSHUNT_DEFAULT,4,2      ## @INA2XX_RSHUNT_DEFAULT
	.comm	_ina226,8,3                     ## @ina226
	.comm	_INA226_DEFAULT_AVG,4,2         ## @INA226_DEFAULT_AVG
	.comm	_INA226_DEFAULT_IT,4,2          ## @INA226_DEFAULT_IT
	.comm	_INA219_DEFAULT_IT,4,2          ## @INA219_DEFAULT_IT
	.comm	_INA219_DEFAULT_BRNG,4,2        ## @INA219_DEFAULT_BRNG
	.comm	_INA219_DEFAULT_PGA,4,2         ## @INA219_DEFAULT_PGA
L_.str.2:                               ## @.str.2
	.asciz	"error configuring the device\n"

	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_INDIO_BUFFER_SOFTWARE,4,2      ## @INDIO_BUFFER_SOFTWARE
	.comm	_ina226_channels,8,3            ## @ina226_channels
	.comm	_ina226_info,4,2                ## @ina226_info
	.comm	_ina219_channels,8,3            ## @ina219_channels
	.comm	_ina219_info,4,2                ## @ina219_info
	.comm	_ina2xx_setup_ops,4,2           ## @ina2xx_setup_ops
	.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, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x21, x0
	mov	w1, #24
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_17
; %bb.1:
	mov	x19, x0
	bl	_iio_priv
	mov	x22, x0
	mov	x0, x21
	mov	x1, x19
	bl	_i2c_set_clientdata
Lloh0:
	adrp	x1, _ina2xx_regmap_config@GOTPAGE
Lloh1:
	ldr	x1, [x1, _ina2xx_regmap_config@GOTPAGEOFF]
	mov	x0, x21
	bl	_devm_regmap_init_i2c
	str	w0, [x22, #20]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	ldr	w0, [x22, #20]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_3:
	ldr	x8, [x21]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x21
	bl	_of_device_get_match_data
	b	LBB0_6
LBB0_5:
	ldr	w0, [x20]
LBB0_6:
Lloh4:
	adrp	x8, _ina2xx_config@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ina2xx_config@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	add	x8, x8, w0, uxtw #2
	str	x8, [x22, #8]
	add	x0, x22, #16
	bl	_mutex_init
	ldr	x0, [x21]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	bl	_of_property_read_u32
	tbnz	x0, #63, LBB0_8
; %bb.7:
	ldr	w1, [sp, #12]
	b	LBB0_9
LBB0_8:
	mov	x0, x21
	bl	_dev_get_platdata
Lloh9:
	adrp	x8, _INA2XX_RSHUNT_DEFAULT@GOTPAGE
Lloh10:
	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, x22
	bl	_set_shunt_resistor
	mov	x23, x0
	cbnz	w0, LBB0_18
; %bb.10:
	ldr	x8, [x22, #8]
	ldr	w8, [x8]
	str	w8, [sp, #12]
	ldrsw	x8, [x20]
Lloh11:
	adrp	x24, _ina226@GOTPAGE
Lloh12:
	ldr	x24, [x24, _ina226@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
Lloh13:
	adrp	x8, _INA226_DEFAULT_AVG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _INA226_DEFAULT_AVG@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x22
	bl	_ina226_set_average
Lloh16:
	adrp	x23, _INA226_DEFAULT_IT@GOTPAGE
Lloh17:
	ldr	x23, [x23, _INA226_DEFAULT_IT@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x22
	bl	_ina226_set_int_time_vbus
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x22
	bl	_ina226_set_int_time_vshunt
	b	LBB0_13
LBB0_12:
	mov	w8, #1
	str	w8, [x22]
Lloh18:
	adrp	x23, _INA219_DEFAULT_IT@GOTPAGE
Lloh19:
	ldr	x23, [x23, _INA219_DEFAULT_IT@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x22
	bl	_ina219_set_int_time_vbus
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x22
	bl	_ina219_set_int_time_vshunt
Lloh20:
	adrp	x8, _INA219_DEFAULT_BRNG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _INA219_DEFAULT_BRNG@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x22
	bl	_ina219_set_vbus_range_denom
Lloh23:
	adrp	x8, _INA219_DEFAULT_PGA@GOTPAGE
Lloh24:
	ldr	x8, [x8, _INA219_DEFAULT_PGA@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x22
	bl	_ina219_set_vshunt_pga_gain
LBB0_13:
	ldr	w1, [sp, #12]
	mov	x0, x22
	bl	_ina2xx_init
	cbz	w0, LBB0_15
; %bb.14:
	mov	x23, x0
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_18
LBB0_15:
Lloh28:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh30:
	adrp	x9, _INDIO_BUFFER_SOFTWARE@GOTPAGE
Lloh31:
	ldr	x9, [x9, _INDIO_BUFFER_SOFTWARE@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
	str	x21, [x19, #16]
	ldr	x8, [x21]
	mov	x21, x19
	str	x8, [x21, #8]!
	ldrsw	x8, [x20]
Lloh34:
	adrp	x9, _ina219_info@GOTPAGE
Lloh35:
	ldr	x9, [x9, _ina219_info@GOTPAGEOFF]
	ldr	x10, [x24]
Lloh36:
	adrp	x11, _ina226_info@GOTPAGE
Lloh37:
	ldr	x11, [x11, _ina226_info@GOTPAGEOFF]
Lloh38:
	adrp	x12, _ina226_channels@GOTPAGE
Lloh39:
	ldr	x12, [x12, _ina226_channels@GOTPAGEOFF]
	cmp	x10, x8
	csel	x22, x11, x9, eq
Lloh40:
	adrp	x8, _ina219_channels@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ina219_channels@GOTPAGEOFF]
	csel	x8, x12, x8, eq
	ldr	x0, [x8]
	str	x0, [x19, #56]
	bl	_ARRAY_SIZE
	stp	x22, x0, [x19, #40]
	ldr	w8, [x20, #4]
	str	w8, [x19, #32]
Lloh42:
	adrp	x8, _ina2xx_setup_ops@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ina2xx_setup_ops@GOTPAGEOFF]
	str	x8, [x19, #24]
	mov	x0, x21
	bl	_devm_iio_kfifo_allocate
	cbz	x0, LBB0_17
; %bb.16:
	mov	x1, x0
	mov	x0, x19
	bl	_iio_device_attach_buffer
	mov	x0, x19
	bl	_iio_device_register
	mov	x23, x0
	b	LBB0_18
LBB0_17:
Lloh44:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_18:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh32
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ina2xx_regmap_config,4,2       ; @ina2xx_regmap_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate register map\n"

	.comm	_ina2xx_config,8,3              ; @ina2xx_config
l_.str.1:                               ; @.str.1
	.asciz	"shunt-resistor"

	.comm	_INA2XX_RSHUNT_DEFAULT,4,2      ; @INA2XX_RSHUNT_DEFAULT
	.comm	_ina226,8,3                     ; @ina226
	.comm	_INA226_DEFAULT_AVG,4,2         ; @INA226_DEFAULT_AVG
	.comm	_INA226_DEFAULT_IT,4,2          ; @INA226_DEFAULT_IT
	.comm	_INA219_DEFAULT_IT,4,2          ; @INA219_DEFAULT_IT
	.comm	_INA219_DEFAULT_BRNG,4,2        ; @INA219_DEFAULT_BRNG
	.comm	_INA219_DEFAULT_PGA,4,2         ; @INA219_DEFAULT_PGA
l_.str.2:                               ; @.str.2
	.asciz	"error configuring the device\n"

	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_INDIO_BUFFER_SOFTWARE,4,2      ; @INDIO_BUFFER_SOFTWARE
	.comm	_ina226_channels,8,3            ; @ina226_channels
	.comm	_ina226_info,4,2                ; @ina226_info
	.comm	_ina219_channels,8,3            ; @ina219_channels
	.comm	_ina219_info,4,2                ; @ina219_info
	.comm	_ina2xx_setup_ops,4,2           ; @ina2xx_setup_ops
	.no_dead_strip	_ina2xx_probe
.subsections_via_symbols
