	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adm1275_write_pmon_config
_adm1275_write_pmon_config:             ## @adm1275_write_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	%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
	movl	%ecx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	cmpq	$0, (%rdi)
	movq	_ADM1275_PMON_CONFIG@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	je	LBB0_2
## %bb.1:
	movl	%edx, %r12d
	movq	%r14, %rdi
	callq	_i2c_smbus_read_word_data
	testl	%r12d, %r12d
	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	%r14, %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
	testl	%eax, %eax
	js	LBB0_6
## %bb.4:
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	xorl	%eax, %ebx
	andl	%edx, %ebx
	xorl	%eax, %ebx
	cmpq	$0, (%r15)
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	je	LBB0_5
## %bb.7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i2c_smbus_write_word_data      ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i2c_smbus_write_byte_data      ## TAILCALL
	.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_write_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_write_pmon_config
_adm1275_write_pmon_config:             ; @adm1275_write_pmon_config
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x23, _ADM1275_PMON_CONFIG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ADM1275_PMON_CONFIG@GOTPAGEOFF]
	ldr	w1, [x23]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x22, x2
	mov	x0, x19
	bl	_i2c_smbus_read_word_data
Lloh2:
	adrp	x8, _ADM1278_PWR_AVG_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ADM1278_PWR_AVG_MASK@GOTPAGEOFF]
Lloh4:
	adrp	x9, _ADM1278_VI_AVG_MASK@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ADM1278_VI_AVG_MASK@GOTPAGEOFF]
	cmp	w22, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _ADM1278_PWR_AVG_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ADM1278_PWR_AVG_SHIFT@GOTPAGEOFF]
Lloh8:
	adrp	x10, _ADM1278_VI_AVG_SHIFT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _ADM1278_VI_AVG_SHIFT@GOTPAGEOFF]
	csel	x9, x10, x9, eq
	ldr	w9, [x9]
	tbnz	w0, #31, LBB0_5
LBB0_2:
	bic	w10, w0, w8
	lsl	w9, w21, w9
	and	w8, w8, w9
	orr	w2, w10, w8
	ldr	x8, [x20]
	ldr	w1, [x23]
	mov	x0, x19
	cbz	x8, LBB0_6
; %bb.3:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_i2c_smbus_write_word_data
LBB0_4:
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
Lloh10:
	adrp	x8, _ADM1275_VI_AVG_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ADM1275_VI_AVG_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _ADM1275_VI_AVG_SHIFT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ADM1275_VI_AVG_SHIFT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tbz	w0, #31, LBB0_2
LBB0_5:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_i2c_smbus_write_byte_data
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.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_write_pmon_config
.subsections_via_symbols
