	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ina209_init_client
_ina209_init_client:                    ## @ina209_init_client
	.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, %r15
	callq	_dev_get_platdata
	movq	%rax, %r12
	movq	_INA209_CALIBRATION@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_word_swapped
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_13
## %bb.1:
	movl	%ebx, (%r14)
	movq	_INA209_CONFIGURATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_word_swapped
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_13
## %bb.2:
	movl	%ebx, 4(%r14)
	testq	%r12, %r12
	je	LBB0_6
## %bb.3:
	movq	(%r12), %rax
	testq	%rax, %rax
	jle	LBB0_4
## %bb.5:
	movl	%eax, -44(%rbp)
	jmp	LBB0_12
LBB0_6:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-44(%rbp), %rdx
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	(%r14), %ecx
	testl	%ecx, %ecx
	je	LBB0_10
## %bb.9:
	movl	$40960000, %eax                 ## imm = 0x2710000
	xorl	%edx, %edx
	idivl	%ecx
	jmp	LBB0_11
LBB0_7:
	cmpl	$0, -44(%rbp)
	jne	LBB0_12
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_10:
	movq	_INA209_SHUNT_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_11:
	movl	%eax, -44(%rbp)
LBB0_12:
	movq	_INA209_CONFIGURATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_INA209_CONFIG_DEFAULT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_i2c_smbus_write_word_swapped
	movl	(%rbx), %edi
	callq	_ina209_interval_from_reg
	movl	%eax, 8(%r14)
	movl	(%r13), %r14d
	xorl	%ebx, %ebx
	movl	$40960000, %eax                 ## imm = 0x2710000
	xorl	%edx, %edx
	idivl	-44(%rbp)
	movl	%eax, %edi
	movl	$1, %esi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_clamp_val
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_i2c_smbus_write_word_swapped
	movq	_INA209_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_word_swapped
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INA209_CALIBRATION,4,2         ## @INA209_CALIBRATION
	.comm	_INA209_CONFIGURATION,4,2       ## @INA209_CONFIGURATION
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"shunt-resistor"

	.comm	_INA209_SHUNT_DEFAULT,4,2       ## @INA209_SHUNT_DEFAULT
	.comm	_INA209_CONFIG_DEFAULT,4,2      ## @INA209_CONFIG_DEFAULT
	.comm	_INA209_STATUS,4,2              ## @INA209_STATUS
	.no_dead_strip	_ina209_init_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ina209_init_client
_ina209_init_client:                    ; @ina209_init_client
	.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	x19, x0
	bl	_dev_get_platdata
	mov	x21, x0
Lloh0:
	adrp	x22, _INA209_CALIBRATION@GOTPAGE
Lloh1:
	ldr	x22, [x22, _INA209_CALIBRATION@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_i2c_smbus_read_word_swapped
	tbnz	w0, #31, LBB0_13
; %bb.1:
	str	w0, [x20]
Lloh2:
	adrp	x23, _INA209_CONFIGURATION@GOTPAGE
Lloh3:
	ldr	x23, [x23, _INA209_CONFIGURATION@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_i2c_smbus_read_word_swapped
	tbnz	w0, #31, LBB0_13
; %bb.2:
	str	w0, [x20, #4]
	cbz	x21, LBB0_5
; %bb.3:
	ldr	x8, [x21]
	cmp	x8, #0
	b.le	LBB0_9
; %bb.4:
	str	w8, [sp, #12]
	b	LBB0_12
LBB0_5:
	ldr	w0, [x19]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_of_property_read_u32
	cbz	w0, LBB0_8
; %bb.6:
	ldr	w8, [x20]
	cbz	w8, LBB0_10
; %bb.7:
	mov	w9, #40960000
	sdiv	w8, w9, w8
	b	LBB0_11
LBB0_8:
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_12
LBB0_9:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_10:
Lloh9:
	adrp	x8, _INA209_SHUNT_DEFAULT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _INA209_SHUNT_DEFAULT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
LBB0_11:
	str	w8, [sp, #12]
LBB0_12:
	ldr	w1, [x23]
Lloh12:
	adrp	x21, _INA209_CONFIG_DEFAULT@GOTPAGE
Lloh13:
	ldr	x21, [x21, _INA209_CONFIG_DEFAULT@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_i2c_smbus_write_word_swapped
	ldr	w0, [x21]
	bl	_ina209_interval_from_reg
	str	w0, [x20, #8]
	ldr	w20, [x22]
	ldr	w8, [sp, #12]
	mov	w9, #40960000
	sdiv	w0, w9, w8
	mov	w1, #1
	mov	w2, #65535
	bl	_clamp_val
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_smbus_write_word_swapped
Lloh14:
	adrp	x8, _INA209_STATUS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _INA209_STATUS@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_smbus_read_word_swapped
	mov	w0, #0
LBB0_13:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_INA209_CALIBRATION,4,2         ; @INA209_CALIBRATION
	.comm	_INA209_CONFIGURATION,4,2       ; @INA209_CONFIGURATION
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"shunt-resistor"

	.comm	_INA209_SHUNT_DEFAULT,4,2       ; @INA209_SHUNT_DEFAULT
	.comm	_INA209_CONFIG_DEFAULT,4,2      ; @INA209_CONFIG_DEFAULT
	.comm	_INA209_STATUS,4,2              ; @INA209_STATUS
	.no_dead_strip	_ina209_init_client
.subsections_via_symbols
