	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adm1275_read_pmon_config
_adm1275_read_pmon_config:              ## @adm1275_read_pmon_config
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rax
	cmpq	$0, (%rdi)
	movq	_ADM1275_PMON_CONFIG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	je	LBB0_2
## %bb.1:
	movl	%edx, %ebx
	movq	%rax, %rdi
	callq	_i2c_smbus_read_word_data
	testl	%ebx, %ebx
	movq	_ADM1278_PWR_AVG_MASK@GOTPCREL(%rip), %rcx
	cmoveq	_ADM1278_VI_AVG_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_ADM1278_PWR_AVG_SHIFT@GOTPCREL(%rip), %rcx
	cmoveq	_ADM1278_VI_AVG_SHIFT@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_2:
	movq	%rax, %rdi
	callq	_i2c_smbus_read_byte_data
	movq	_ADM1275_VI_AVG_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_ADM1275_VI_AVG_SHIFT@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %ecx
	andl	%eax, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %edx
	testl	%eax, %eax
	cmovsl	%eax, %edx
	movl	%edx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADM1275_PMON_CONFIG,4,2        ## @ADM1275_PMON_CONFIG
	.comm	_ADM1278_PWR_AVG_MASK,4,2       ## @ADM1278_PWR_AVG_MASK
	.comm	_ADM1278_VI_AVG_MASK,4,2        ## @ADM1278_VI_AVG_MASK
	.comm	_ADM1278_PWR_AVG_SHIFT,4,2      ## @ADM1278_PWR_AVG_SHIFT
	.comm	_ADM1278_VI_AVG_SHIFT,4,2       ## @ADM1278_VI_AVG_SHIFT
	.comm	_ADM1275_VI_AVG_MASK,4,2        ## @ADM1275_VI_AVG_MASK
	.comm	_ADM1275_VI_AVG_SHIFT,4,2       ## @ADM1275_VI_AVG_SHIFT
	.no_dead_strip	_adm1275_read_pmon_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adm1275_read_pmon_config
_adm1275_read_pmon_config:              ; @adm1275_read_pmon_config
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x1
	ldr	x9, [x0]
Lloh0:
	adrp	x10, _ADM1275_PMON_CONFIG@GOTPAGE
Lloh1:
	ldr	x10, [x10, _ADM1275_PMON_CONFIG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x10]
	cbz	x9, LBB0_2
; %bb.1:
	mov	x19, x2
	mov	x0, x8
	bl	_i2c_smbus_read_word_data
Lloh3:
	adrp	x8, _ADM1278_PWR_AVG_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADM1278_PWR_AVG_MASK@GOTPAGEOFF]
Lloh5:
	adrp	x9, _ADM1278_VI_AVG_MASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ADM1278_VI_AVG_MASK@GOTPAGEOFF]
	cmp	w19, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _ADM1278_PWR_AVG_SHIFT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ADM1278_PWR_AVG_SHIFT@GOTPAGEOFF]
Lloh9:
	adrp	x10, _ADM1278_VI_AVG_SHIFT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ADM1278_VI_AVG_SHIFT@GOTPAGEOFF]
	csel	x9, x10, x9, eq
	b	LBB0_3
LBB0_2:
	mov	x0, x8
	bl	_i2c_smbus_read_byte_data
Lloh11:
	adrp	x8, _ADM1275_VI_AVG_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ADM1275_VI_AVG_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _ADM1275_VI_AVG_SHIFT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ADM1275_VI_AVG_SHIFT@GOTPAGEOFF]
LBB0_3:
	ldr	w9, [x9]
	and	w8, w8, w0
	asr	w8, w8, w9
	cmp	w0, #0
	csel	w0, w0, w8, lt
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ADM1275_PMON_CONFIG,4,2        ; @ADM1275_PMON_CONFIG
	.comm	_ADM1278_PWR_AVG_MASK,4,2       ; @ADM1278_PWR_AVG_MASK
	.comm	_ADM1278_VI_AVG_MASK,4,2        ; @ADM1278_VI_AVG_MASK
	.comm	_ADM1278_PWR_AVG_SHIFT,4,2      ; @ADM1278_PWR_AVG_SHIFT
	.comm	_ADM1278_VI_AVG_SHIFT,4,2       ; @ADM1278_VI_AVG_SHIFT
	.comm	_ADM1275_VI_AVG_MASK,4,2        ; @ADM1275_VI_AVG_MASK
	.comm	_ADM1275_VI_AVG_SHIFT,4,2       ; @ADM1275_VI_AVG_SHIFT
	.no_dead_strip	_adm1275_read_pmon_config
.subsections_via_symbols
