	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adm9240_init_client
_adm9240_init_client:                   ## @adm9240_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	%rdi, %rbx
	callq	_i2c_get_clientdata
	movq	%rax, %r12
	movq	_ADM9240_REG_CONFIG@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r14d
	movq	_ADM9240_REG_TEMP_CONF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_vid_which_vrm
	movl	%eax, (%r12)
	movslq	%eax, %rcx
	imulq	$1717986919, %rcx, %rdx         ## imm = 0x66666667
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$34, %rdx
	addl	%eax, %edx
	leal	(%rdx,%rdx), %eax
	leal	(%rax,%rax,4), %eax
	subl	%eax, %ecx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_dev_info
	testb	$1, %r14b
	jne	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	callq	_ADM9240_REG_IN_MIN
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_i2c_smbus_write_byte_data
	xorl	%edi, %edi
	callq	_ADM9240_REG_IN_MAX
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$255, %edx
	callq	_i2c_smbus_write_byte_data
	movl	$1, %edi
	callq	_ADM9240_REG_IN_MIN
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_i2c_smbus_write_byte_data
	movl	$1, %edi
	callq	_ADM9240_REG_IN_MAX
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$255, %edx
	callq	_i2c_smbus_write_byte_data
	movl	$2, %edi
	callq	_ADM9240_REG_IN_MIN
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_i2c_smbus_write_byte_data
	movl	$2, %edi
	callq	_ADM9240_REG_IN_MAX
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$255, %edx
	callq	_i2c_smbus_write_byte_data
	movl	$3, %edi
	callq	_ADM9240_REG_IN_MIN
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_i2c_smbus_write_byte_data
	movl	$3, %edi
	callq	_ADM9240_REG_IN_MAX
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$255, %edx
	callq	_i2c_smbus_write_byte_data
	movl	$4, %edi
	callq	_ADM9240_REG_IN_MIN
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_i2c_smbus_write_byte_data
	movl	$4, %edi
	callq	_ADM9240_REG_IN_MAX
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$255, %edx
	callq	_i2c_smbus_write_byte_data
	movl	$5, %edi
	callq	_ADM9240_REG_IN_MIN
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_i2c_smbus_write_byte_data
	movl	$5, %edi
	callq	_ADM9240_REG_IN_MAX
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$255, %edx
	callq	_i2c_smbus_write_byte_data
	xorl	%edi, %edi
	callq	_ADM9240_REG_FAN_MIN
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$255, %edx
	callq	_i2c_smbus_write_byte_data
	movl	$1, %edi
	callq	_ADM9240_REG_FAN_MIN
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$255, %edx
	callq	_i2c_smbus_write_byte_data
	xorl	%edi, %edi
	callq	_ADM9240_REG_TEMP_MAX
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$127, %edx
	callq	_i2c_smbus_write_byte_data
	movl	$1, %edi
	callq	_ADM9240_REG_TEMP_MAX
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$127, %edx
	callq	_i2c_smbus_write_byte_data
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_i2c_smbus_write_byte_data
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
LBB0_3:
	andl	$3, %r15d
	movq	%rbx, %rdi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_info                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ADM9240_REG_CONFIG,4,2         ## @ADM9240_REG_CONFIG
	.comm	_ADM9240_REG_TEMP_CONF,4,2      ## @ADM9240_REG_TEMP_CONF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Using VRM: %d.%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"status: config 0x%02x mode %u\n"

L_.str.2:                               ## @.str.2
	.asciz	"cold start: config was 0x%02x mode %u\n"

	.no_dead_strip	_adm9240_init_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adm9240_init_client
_adm9240_init_client:                   ; @adm9240_init_client
	.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	x19, x0
	bl	_i2c_get_clientdata
	mov	x22, x0
Lloh0:
	adrp	x23, _ADM9240_REG_CONFIG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ADM9240_REG_CONFIG@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	mov	x20, x0
Lloh2:
	adrp	x8, _ADM9240_REG_TEMP_CONF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ADM9240_REG_TEMP_CONF@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	mov	x21, x0
	bl	_vid_which_vrm
	str	w0, [x22]
	mov	w8, #26215
	movk	w8, #26214, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w2, w8, w9
	mov	w8, #10
	msub	w3, w2, w8, w0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	tbnz	w20, #0, LBB0_2
; %bb.1:
	mov	w0, #0
	bl	_ADM9240_REG_IN_MIN
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_i2c_smbus_write_byte_data
	mov	w0, #0
	bl	_ADM9240_REG_IN_MAX
	mov	x1, x0
	mov	x0, x19
	mov	w2, #255
	bl	_i2c_smbus_write_byte_data
	mov	w0, #1
	bl	_ADM9240_REG_IN_MIN
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_i2c_smbus_write_byte_data
	mov	w0, #1
	bl	_ADM9240_REG_IN_MAX
	mov	x1, x0
	mov	x0, x19
	mov	w2, #255
	bl	_i2c_smbus_write_byte_data
	mov	w0, #2
	bl	_ADM9240_REG_IN_MIN
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_i2c_smbus_write_byte_data
	mov	w0, #2
	bl	_ADM9240_REG_IN_MAX
	mov	x1, x0
	mov	x0, x19
	mov	w2, #255
	bl	_i2c_smbus_write_byte_data
	mov	w0, #3
	bl	_ADM9240_REG_IN_MIN
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_i2c_smbus_write_byte_data
	mov	w0, #3
	bl	_ADM9240_REG_IN_MAX
	mov	x1, x0
	mov	x0, x19
	mov	w2, #255
	bl	_i2c_smbus_write_byte_data
	mov	w0, #4
	bl	_ADM9240_REG_IN_MIN
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_i2c_smbus_write_byte_data
	mov	w0, #4
	bl	_ADM9240_REG_IN_MAX
	mov	x1, x0
	mov	x0, x19
	mov	w2, #255
	bl	_i2c_smbus_write_byte_data
	mov	w0, #5
	bl	_ADM9240_REG_IN_MIN
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_i2c_smbus_write_byte_data
	mov	w0, #5
	bl	_ADM9240_REG_IN_MAX
	mov	x1, x0
	mov	x0, x19
	mov	w2, #255
	bl	_i2c_smbus_write_byte_data
	mov	w0, #0
	bl	_ADM9240_REG_FAN_MIN
	mov	x1, x0
	mov	x0, x19
	mov	w2, #255
	bl	_i2c_smbus_write_byte_data
	mov	w0, #1
	bl	_ADM9240_REG_FAN_MIN
	mov	x1, x0
	mov	x0, x19
	mov	w2, #255
	bl	_i2c_smbus_write_byte_data
	mov	w0, #0
	bl	_ADM9240_REG_TEMP_MAX
	mov	x1, x0
	mov	x0, x19
	mov	w2, #127
	bl	_i2c_smbus_write_byte_data
	mov	w0, #1
	bl	_ADM9240_REG_TEMP_MAX
	mov	x1, x0
	mov	x0, x19
	mov	w2, #127
	bl	_i2c_smbus_write_byte_data
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #1
	bl	_i2c_smbus_write_byte_data
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_3:
	and	w3, w21, #0x3
	mov	x0, x19
	mov	x2, x20
	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	_dev_info
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ADM9240_REG_CONFIG,4,2         ; @ADM9240_REG_CONFIG
	.comm	_ADM9240_REG_TEMP_CONF,4,2      ; @ADM9240_REG_TEMP_CONF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Using VRM: %d.%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"status: config 0x%02x mode %u\n"

l_.str.2:                               ; @.str.2
	.asciz	"cold start: config was 0x%02x mode %u\n"

	.no_dead_strip	_adm9240_init_client
.subsections_via_symbols
