	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm63_init_client
_lm63_init_client:                      ## @lm63_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	48(%rdi), %r14
	movq	_LM63_REG_CONFIG1@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, (%rbx)
	movq	_LM63_REG_CONFIG_FAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, 4(%rbx)
	testb	$64, (%rbx)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	$167, %edx
	andl	(%rbx), %edx
	movl	%edx, (%rbx)
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_i2c_smbus_write_byte_data
LBB0_2:
	cmpl	$129, 8(%rbx)
	jne	LBB0_4
## %bb.3:
	orb	$4, (%rbx)
LBB0_4:
	movq	_LM63_REG_PWM_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	movl	$1, %ecx
	cmovnel	%eax, %ecx
	movl	%ecx, 12(%rbx)
	movl	8(%rbx), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_5
## %bb.22:
	movq	_LM63_MAX_CONVRATE_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movl	$8, 16(%rbx)
	jmp	LBB0_7
LBB0_5:
	cmpl	$128, %eax
	jne	LBB0_7
## %bb.6:
	movq	_LM96163_MAX_CONVRATE_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movl	$12, 16(%rbx)
	movq	_LM96163_REG_TRUTHERM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_i2c_smbus_read_byte_data
	andl	$2, %eax
	movl	%eax, 20(%rbx)
LBB0_7:
	movq	_LM63_REG_CONVRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_i2c_smbus_read_byte_data
	movslq	%eax, %r15
	movq	_LM63_MAX_CONVRATE@GOTPCREL(%rip), %r12
	xorl	%edi, %edi
	cmpq	%r15, (%r12)
	setl	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	(%r12), %r15
LBB0_9:
	movl	36(%rbx), %edi
	movq	%r15, %rsi
	callq	_UPDATE_INTERVAL
	movl	%eax, 40(%rbx)
	movl	8(%rbx), %eax
	cmpl	$128, %eax
	jne	LBB0_19
## %bb.10:
	movq	_LM96163_REG_CONFIG_ENHANCED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %eax
	testb	$32, %al
	je	LBB0_12
## %bb.11:
	movl	$1, 24(%rbx)
LBB0_12:
	testb	$16, %al
	je	LBB0_16
## %bb.13:
	testb	$8, 4(%rbx)
	jne	LBB0_16
## %bb.14:
	cmpl	$8, 12(%rbx)
	jne	LBB0_16
## %bb.15:
	movl	$1, 28(%rbx)
LBB0_16:
	testb	$8, %al
	je	LBB0_18
## %bb.17:
	movl	$1, 32(%rbx)
LBB0_18:
	movl	8(%rbx), %eax
LBB0_19:
	cmpl	$130, %eax
	jne	LBB0_21
## %bb.20:
	testb	$4, (%rbx)
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_21:
	testb	$8, 4(%rbx)
	leaq	L_.str.6(%rip), %rax
	leaq	L_.str.5(%rip), %rcx
	cmoveq	%rax, %rcx
	movl	$180000, %edx                   ## imm = 0x2BF20
	movl	$700, %eax                      ## imm = 0x2BC
	cmovel	%edx, %eax
	xorl	%edx, %edx
	idivl	12(%rbx)
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movq	%rcx, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	4(%rbx), %eax
	testb	$16, %al
	leaq	L_.str.9(%rip), %rcx
	leaq	L_.str.8(%rip), %rdx
	cmoveq	%rcx, %rdx
	testb	$32, %al
	leaq	L_.str.11(%rip), %rax
	leaq	L_.str.10(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LM63_REG_CONFIG1,4,2           ## @LM63_REG_CONFIG1
	.comm	_LM63_REG_CONFIG_FAN,4,2        ## @LM63_REG_CONFIG_FAN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Switching to operational mode\n"

	.comm	_LM63_REG_PWM_FREQ,4,2          ## @LM63_REG_PWM_FREQ
	.comm	_LM63_MAX_CONVRATE_HZ,4,2       ## @LM63_MAX_CONVRATE_HZ
	.comm	_LM96163_MAX_CONVRATE_HZ,4,2    ## @LM96163_MAX_CONVRATE_HZ
	.comm	_LM96163_REG_TRUTHERM,4,2       ## @LM96163_REG_TRUTHERM
	.comm	_LM63_REG_CONVRATE,4,2          ## @LM63_REG_CONVRATE
	.comm	_LM63_MAX_CONVRATE,8,3          ## @LM63_MAX_CONVRATE
	.comm	_LM96163_REG_CONFIG_ENHANCED,4,2 ## @LM96163_REG_CONFIG_ENHANCED
L_.str.1:                               ## @.str.1
	.asciz	"Alert/tach pin configured for %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"tachometer input"

L_.str.3:                               ## @.str.3
	.asciz	"alert output"

L_.str.4:                               ## @.str.4
	.asciz	"PWM clock %s kHz, output frequency %u Hz\n"

L_.str.5:                               ## @.str.5
	.asciz	"1.4"

L_.str.6:                               ## @.str.6
	.asciz	"360"

L_.str.7:                               ## @.str.7
	.asciz	"PWM output active %s, %s mode\n"

L_.str.8:                               ## @.str.8
	.asciz	"low"

L_.str.9:                               ## @.str.9
	.asciz	"high"

L_.str.10:                              ## @.str.10
	.asciz	"manual"

L_.str.11:                              ## @.str.11
	.asciz	"auto"

	.no_dead_strip	_lm63_init_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm63_init_client
_lm63_init_client:                      ; @lm63_init_client
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	ldr	x19, [x0, #48]
Lloh0:
	adrp	x21, _LM63_REG_CONFIG1@GOTPAGE
Lloh1:
	ldr	x21, [x21, _LM63_REG_CONFIG1@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	str	w0, [x20]
Lloh2:
	adrp	x8, _LM63_REG_CONFIG_FAN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LM63_REG_CONFIG_FAN@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	str	w0, [x20, #4]
	ldrb	w8, [x20]
	tbz	w8, #6, LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	w8, [x20]
	mov	w9, #167
	and	w2, w8, w9
	str	w2, [x20]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_i2c_smbus_write_byte_data
LBB0_2:
	ldr	w8, [x20, #8]
	cmp	w8, #129
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x20]
	orr	w8, w8, #0x4
	str	w8, [x20]
LBB0_4:
Lloh7:
	adrp	x8, _LM63_REG_PWM_FREQ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LM63_REG_PWM_FREQ@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	cmp	w0, #0
	csinc	w8, w0, wzr, ne
	str	w8, [x20, #12]
	ldr	w8, [x20, #8]
	sub	w9, w8, #129
	cmp	w9, #2
	b.hs	LBB0_6
; %bb.5:
Lloh10:
	adrp	x8, _LM63_MAX_CONVRATE_HZ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LM63_MAX_CONVRATE_HZ@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x20, #36]
	mov	w8, #8
	str	w8, [x20, #16]
	b	LBB0_8
LBB0_6:
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.7:
Lloh13:
	adrp	x8, _LM96163_MAX_CONVRATE_HZ@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LM96163_MAX_CONVRATE_HZ@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x20, #36]
	mov	w8, #12
	str	w8, [x20, #16]
Lloh16:
	adrp	x8, _LM96163_REG_TRUTHERM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LM96163_REG_TRUTHERM@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	and	w8, w0, #0x2
	str	w8, [x20, #20]
LBB0_8:
Lloh19:
	adrp	x8, _LM63_REG_CONVRATE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _LM63_REG_CONVRATE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x21, w0
Lloh22:
	adrp	x22, _LM63_MAX_CONVRATE@GOTPAGE
Lloh23:
	ldr	x22, [x22, _LM63_MAX_CONVRATE@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x8, x21
	cset	w0, lt
	bl	_unlikely
	ldr	x8, [x22]
	cmp	x0, #0
	csel	x1, x21, x8, eq
	ldr	w0, [x20, #36]
	bl	_UPDATE_INTERVAL
	str	w0, [x20, #40]
	ldr	w8, [x20, #8]
	cmp	w8, #128
	b.ne	LBB0_18
; %bb.9:
Lloh24:
	adrp	x8, _LM96163_REG_CONFIG_ENHANCED@GOTPAGE
Lloh25:
	ldr	x8, [x8, _LM96163_REG_CONFIG_ENHANCED@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	mov	w8, w0
	tbz	w8, #5, LBB0_11
; %bb.10:
	mov	w9, #1
	str	w9, [x20, #24]
LBB0_11:
	tbz	w8, #4, LBB0_15
; %bb.12:
	ldrb	w9, [x20, #4]
	tbnz	w9, #3, LBB0_15
; %bb.13:
	ldr	w9, [x20, #12]
	cmp	w9, #8
	b.ne	LBB0_15
; %bb.14:
	mov	w9, #1
	str	w9, [x20, #28]
LBB0_15:
	tbz	w8, #3, LBB0_17
; %bb.16:
	mov	w8, #1
	str	w8, [x20, #32]
LBB0_17:
	ldr	w8, [x20, #8]
LBB0_18:
	cmp	w8, #130
	b.ne	LBB0_20
; %bb.19:
	ldr	w8, [x20]
Lloh27:
	adrp	x9, l_.str.2@PAGE
Lloh28:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh29:
	adrp	x10, l_.str.3@PAGE
Lloh30:
	add	x10, x10, l_.str.3@PAGEOFF
	tst	w8, #0x4
	csel	x8, x10, x9, eq
	str	x8, [sp]
Lloh31:
	adrp	x1, l_.str.1@PAGE
Lloh32:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
LBB0_20:
	ldr	w8, [x20, #4]
Lloh33:
	adrp	x9, l_.str.5@PAGE
Lloh34:
	add	x9, x9, l_.str.5@PAGEOFF
Lloh35:
	adrp	x10, l_.str.6@PAGE
Lloh36:
	add	x10, x10, l_.str.6@PAGEOFF
	tst	w8, #0x8
	csel	x8, x10, x9, eq
	mov	w9, #700
	mov	w10, #48928
	movk	w10, #2, lsl #16
	csel	w9, w10, w9, eq
	ldr	w10, [x20, #12]
	sdiv	w9, w9, w10
	stp	x8, x9, [sp]
Lloh37:
	adrp	x1, l_.str.4@PAGE
Lloh38:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	w8, [x20, #4]
Lloh39:
	adrp	x9, l_.str.8@PAGE
Lloh40:
	add	x9, x9, l_.str.8@PAGEOFF
Lloh41:
	adrp	x10, l_.str.9@PAGE
Lloh42:
	add	x10, x10, l_.str.9@PAGEOFF
	tst	w8, #0x10
	csel	x9, x10, x9, eq
Lloh43:
	adrp	x10, l_.str.10@PAGE
Lloh44:
	add	x10, x10, l_.str.10@PAGEOFF
Lloh45:
	adrp	x11, l_.str.11@PAGE
Lloh46:
	add	x11, x11, l_.str.11@PAGEOFF
	tst	w8, #0x20
	csel	x8, x11, x10, eq
	stp	x9, x8, [sp]
Lloh47:
	adrp	x1, l_.str.7@PAGE
Lloh48:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_LM63_REG_CONFIG1,4,2           ; @LM63_REG_CONFIG1
	.comm	_LM63_REG_CONFIG_FAN,4,2        ; @LM63_REG_CONFIG_FAN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Switching to operational mode\n"

	.comm	_LM63_REG_PWM_FREQ,4,2          ; @LM63_REG_PWM_FREQ
	.comm	_LM63_MAX_CONVRATE_HZ,4,2       ; @LM63_MAX_CONVRATE_HZ
	.comm	_LM96163_MAX_CONVRATE_HZ,4,2    ; @LM96163_MAX_CONVRATE_HZ
	.comm	_LM96163_REG_TRUTHERM,4,2       ; @LM96163_REG_TRUTHERM
	.comm	_LM63_REG_CONVRATE,4,2          ; @LM63_REG_CONVRATE
	.comm	_LM63_MAX_CONVRATE,8,3          ; @LM63_MAX_CONVRATE
	.comm	_LM96163_REG_CONFIG_ENHANCED,4,2 ; @LM96163_REG_CONFIG_ENHANCED
l_.str.1:                               ; @.str.1
	.asciz	"Alert/tach pin configured for %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"tachometer input"

l_.str.3:                               ; @.str.3
	.asciz	"alert output"

l_.str.4:                               ; @.str.4
	.asciz	"PWM clock %s kHz, output frequency %u Hz\n"

l_.str.5:                               ; @.str.5
	.asciz	"1.4"

l_.str.6:                               ; @.str.6
	.asciz	"360"

l_.str.7:                               ; @.str.7
	.asciz	"PWM output active %s, %s mode\n"

l_.str.8:                               ; @.str.8
	.asciz	"low"

l_.str.9:                               ; @.str.9
	.asciz	"high"

l_.str.10:                              ; @.str.10
	.asciz	"manual"

l_.str.11:                              ; @.str.11
	.asciz	"auto"

	.no_dead_strip	_lm63_init_client
.subsections_via_symbols
