	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max6639_init_client
_max6639_init_client:                   ## @max6639_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r14
	callq	_dev_get_platdata
	movq	%rax, %r12
	movq	_MAX6639_REG_GCONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MAX6639_GCONFIG_POR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	je	LBB0_1
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	testq	%r12, %r12
	je	LBB0_2
## %bb.3:
	movl	(%r12), %eax
	decl	%eax
	cmpl	$4, %eax
	movl	$1, %ecx
	cmovbl	%eax, %ecx
	movl	%ecx, (%r13)
	movl	16(%r12), %edi
	callq	_rpm_range_to_reg
	jmp	LBB0_4
LBB0_2:
	movl	$1, (%r13)
	movl	$1, %eax
LBB0_4:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, 4(%r13)
	movb	$1, %r15b
	xorl	%ebx, %ebx
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_MAX6639_REG_FAN_PPR
	movl	(%r13), %edx
	shll	$6, %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	jne	LBB0_18
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %edi
	callq	_MAX6639_REG_FAN_CONFIG1
	movq	_MAX6639_FAN_CONFIG1_PWM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	-44(%rbp), %edx                 ## 4-byte Folded Reload
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	jne	LBB0_18
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	testq	%r12, %r12
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, 8(%r12)
	je	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	$2, %r12d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	xorl	%r12d, %r12d
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %edi
	callq	_MAX6639_REG_FAN_CONFIG2a
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	jne	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %edi
	callq	_MAX6639_REG_FAN_CONFIG3
	movq	_MAX6639_FAN_CONFIG3_THERM_FULL_SPEED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	$3, %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	jne	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r13), %rax
	movl	$80, (%rax,%rbx,4)
	movq	16(%r13), %rax
	movl	$90, (%rax,%rbx,4)
	movq	24(%r13), %rax
	movl	$100, (%rax,%rbx,4)
	movl	%ebx, %edi
	callq	_MAX6639_REG_THERM_LIMIT
	movq	8(%r13), %rcx
	movl	(%rcx,%rbx,4), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	jne	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %edi
	callq	_MAX6639_REG_ALERT_LIMIT
	movq	16(%r13), %rcx
	movl	(%rcx,%rbx,4), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	jne	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %edi
	callq	_MAX6639_REG_OT_LIMIT
	movq	24(%r13), %rcx
	movl	(%rcx,%rbx,4), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	32(%r13), %rax
	movl	$120, (%rax,%rbx,4)
	movl	%ebx, %edi
	callq	_MAX6639_REG_TARGTDUTY
	movq	32(%r13), %rcx
	movl	(%rcx,%rbx,4), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	jne	LBB0_18
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, %ebx
	testb	$1, %r15b
	movl	$0, %r15d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_6
## %bb.19:
	movq	_MAX6639_GCONFIG_DISABLE_TIMEOUT@GOTPCREL(%rip), %rax
	movq	_MAX6639_GCONFIG_CH2_LOCAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_MAX6639_REG_GCONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MAX6639_GCONFIG_PWM_FREQ_HI@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r14, %rdi
	addq	$24, %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	_MAX6639_REG_GCONFIG,4,2        ## @MAX6639_REG_GCONFIG
	.comm	_MAX6639_GCONFIG_POR,4,2        ## @MAX6639_GCONFIG_POR
	.comm	_MAX6639_FAN_CONFIG1_PWM,4,2    ## @MAX6639_FAN_CONFIG1_PWM
	.comm	_MAX6639_FAN_CONFIG3_THERM_FULL_SPEED,4,2 ## @MAX6639_FAN_CONFIG3_THERM_FULL_SPEED
	.comm	_MAX6639_GCONFIG_DISABLE_TIMEOUT,4,2 ## @MAX6639_GCONFIG_DISABLE_TIMEOUT
	.comm	_MAX6639_GCONFIG_CH2_LOCAL,4,2  ## @MAX6639_GCONFIG_CH2_LOCAL
	.comm	_MAX6639_GCONFIG_PWM_FREQ_HI,4,2 ## @MAX6639_GCONFIG_PWM_FREQ_HI
	.no_dead_strip	_max6639_init_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max6639_init_client
_max6639_init_client:                   ; @max6639_init_client
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	bl	_dev_get_platdata
	mov	x21, x0
Lloh0:
	adrp	x8, _MAX6639_REG_GCONFIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX6639_REG_GCONFIG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _MAX6639_GCONFIG_POR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX6639_GCONFIG_POR@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_i2c_smbus_write_byte_data
	cbz	w0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_2:
	cbz	x21, LBB0_4
; %bb.3:
	ldr	w8, [x21]
	sub	w8, w8, #1
	cmp	w8, #4
	csinc	w8, w8, wzr, lo
	str	w8, [x20]
	ldr	w0, [x21, #16]
	bl	_rpm_range_to_reg
	mov	x22, x0
	b	LBB0_5
LBB0_4:
	mov	w22, #1
	str	w22, [x20]
LBB0_5:
	mov	x23, #0
	str	w22, [x20, #4]
	mov	w8, #1
Lloh6:
	adrp	x26, _MAX6639_FAN_CONFIG1_PWM@GOTPAGE
Lloh7:
	ldr	x26, [x26, _MAX6639_FAN_CONFIG1_PWM@GOTPAGEOFF]
Lloh8:
	adrp	x28, _MAX6639_FAN_CONFIG3_THERM_FULL_SPEED@GOTPAGE
Lloh9:
	ldr	x28, [x28, _MAX6639_FAN_CONFIG3_THERM_FULL_SPEED@GOTPAGEOFF]
	mov	w27, #100
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x25, x8
	mov	x0, x23
	bl	_MAX6639_REG_FAN_PPR
	mov	x1, x0
	ldr	w8, [x20]
	lsl	w2, w8, #6
	mov	x0, x19
	bl	_i2c_smbus_write_byte_data
	cbnz	w0, LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	bl	_MAX6639_REG_FAN_CONFIG1
	mov	x1, x0
	ldr	w8, [x26]
	orr	w2, w8, w22
	mov	x0, x19
	bl	_i2c_smbus_write_byte_data
	cbnz	w0, LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	x21, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w24, #2
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w24, #0
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	bl	_MAX6639_REG_FAN_CONFIG2a
	mov	x1, x0
	mov	x0, x19
	mov	x2, x24
	bl	_i2c_smbus_write_byte_data
	cbnz	w0, LBB0_1
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	bl	_MAX6639_REG_FAN_CONFIG3
	mov	x1, x0
	ldr	w8, [x28]
	orr	w2, w8, #0x3
	mov	x0, x19
	bl	_i2c_smbus_write_byte_data
	cbnz	w0, LBB0_1
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	lsl	x24, x23, #2
	ldp	x8, x9, [x20, #8]
	mov	w10, #80
	str	w10, [x8, x24]
	mov	w8, #90
	str	w8, [x9, x24]
	ldr	x8, [x20, #24]
	str	w27, [x8, x24]
	mov	x0, x23
	bl	_MAX6639_REG_THERM_LIMIT
	mov	x1, x0
	ldr	x8, [x20, #8]
	ldr	w2, [x8, x24]
	mov	x0, x19
	bl	_i2c_smbus_write_byte_data
	cbnz	w0, LBB0_1
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	bl	_MAX6639_REG_ALERT_LIMIT
	mov	x1, x0
	ldr	x8, [x20, #16]
	ldr	w2, [x8, x23, lsl #2]
	mov	x0, x19
	bl	_i2c_smbus_write_byte_data
	cbnz	w0, LBB0_1
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	bl	_MAX6639_REG_OT_LIMIT
	mov	x1, x0
	ldr	x8, [x20, #24]
	ldr	w2, [x8, x23, lsl #2]
	mov	x0, x19
	bl	_i2c_smbus_write_byte_data
	cbnz	w0, LBB0_1
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20, #32]
	mov	w9, #120
	str	w9, [x8, x24]
	mov	x0, x23
	bl	_MAX6639_REG_TARGTDUTY
	mov	x1, x0
	ldr	x8, [x20, #32]
	ldr	w2, [x8, x24]
	mov	x0, x19
	bl	_i2c_smbus_write_byte_data
	cbnz	w0, LBB0_1
; %bb.18:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #0
	mov	w23, #1
	tbnz	w25, #0, LBB0_6
; %bb.19:
Lloh10:
	adrp	x8, _MAX6639_REG_GCONFIG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MAX6639_REG_GCONFIG@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _MAX6639_GCONFIG_DISABLE_TIMEOUT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MAX6639_GCONFIG_DISABLE_TIMEOUT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _MAX6639_GCONFIG_CH2_LOCAL@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MAX6639_GCONFIG_CH2_LOCAL@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
Lloh19:
	adrp	x10, _MAX6639_GCONFIG_PWM_FREQ_HI@GOTPAGE
Lloh20:
	ldr	x10, [x10, _MAX6639_GCONFIG_PWM_FREQ_HI@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh21:
	ldr	w9, [x10]
	orr	w2, w8, w9
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_i2c_smbus_write_byte_data
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX6639_REG_GCONFIG,4,2        ; @MAX6639_REG_GCONFIG
	.comm	_MAX6639_GCONFIG_POR,4,2        ; @MAX6639_GCONFIG_POR
	.comm	_MAX6639_FAN_CONFIG1_PWM,4,2    ; @MAX6639_FAN_CONFIG1_PWM
	.comm	_MAX6639_FAN_CONFIG3_THERM_FULL_SPEED,4,2 ; @MAX6639_FAN_CONFIG3_THERM_FULL_SPEED
	.comm	_MAX6639_GCONFIG_DISABLE_TIMEOUT,4,2 ; @MAX6639_GCONFIG_DISABLE_TIMEOUT
	.comm	_MAX6639_GCONFIG_CH2_LOCAL,4,2  ; @MAX6639_GCONFIG_CH2_LOCAL
	.comm	_MAX6639_GCONFIG_PWM_FREQ_HI,4,2 ; @MAX6639_GCONFIG_PWM_FREQ_HI
	.no_dead_strip	_max6639_init_client
.subsections_via_symbols
