	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_i2c_get_clientdata
	movq	%rax, %rbx
	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:
	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, 8(%rbx)
	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
	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	8(%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
	addq	$8, %rsp
	popq	%rbx
	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
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	x19, x0
	bl	_i2c_get_clientdata
	mov	x20, x0
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:
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, #8]
	ldr	w8, [x20]
Lloh10:
	adrp	x9, l_.str.2@PAGE
Lloh11:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh12:
	adrp	x10, l_.str.3@PAGE
Lloh13:
	add	x10, x10, l_.str.3@PAGEOFF
	tst	w8, #0x4
	csel	x8, x10, x9, eq
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
Lloh16:
	adrp	x8, l_.str.5@PAGE
Lloh17:
	add	x8, x8, l_.str.5@PAGEOFF
Lloh18:
	adrp	x9, l_.str.6@PAGE
Lloh19:
	add	x9, x9, l_.str.6@PAGEOFF
	ldp	w10, w11, [x20, #4]
	tst	w10, #0x8
	csel	x8, x9, x8, eq
	mov	w9, #700
	mov	w10, #48928
	movk	w10, #2, lsl #16
	csel	w9, w10, w9, eq
	sdiv	w9, w9, w11
	stp	x8, x9, [sp]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	w8, [x20, #4]
Lloh22:
	adrp	x9, l_.str.8@PAGE
Lloh23:
	add	x9, x9, l_.str.8@PAGEOFF
Lloh24:
	adrp	x10, l_.str.9@PAGE
Lloh25:
	add	x10, x10, l_.str.9@PAGEOFF
	tst	w8, #0x10
	csel	x9, x10, x9, eq
Lloh26:
	adrp	x10, l_.str.10@PAGE
Lloh27:
	add	x10, x10, l_.str.10@PAGEOFF
Lloh28:
	adrp	x11, l_.str.11@PAGE
Lloh29:
	add	x11, x11, l_.str.11@PAGEOFF
	tst	w8, #0x20
	csel	x8, x11, x10, eq
	stp	x9, x8, [sp]
Lloh30:
	adrp	x1, l_.str.7@PAGE
Lloh31:
	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 AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.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
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
