	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmbus_get_fan_rate
_pmbus_get_fan_rate:                    ## @pmbus_get_fan_rate
	.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	%r8d, %r13d
	movl	%ecx, %r15d
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	%rdi, %r14
	callq	_i2c_get_clientdata
	movq	_rpm@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%r13d, %r13d
	je	LBB0_6
## %bb.1:
	cmpl	%r15d, %ecx
	jne	LBB0_2
## %bb.3:
	movq	_PMBUS_VIRT_FAN_TARGET_1@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_6:
	movl	%ecx, %r13d
	movq	_pmbus_fan_config_registers@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rbx
	movl	(%rax,%rbx,4), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_pmbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_8
## %bb.7:
	cmpl	%r15d, %r13d
	sete	%cl
	movq	_pmbus_fan_rpm_mask@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	testl	%eax, (%rdx,%rbx,4)
	sete	%dl
	xorl	%eax, %eax
	cmpb	%dl, %cl
	je	LBB0_8
## %bb.10:
	movq	_pmbus_fan_command_registers@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pmbus_read_word_data           ## TAILCALL
LBB0_2:
	movq	_PMBUS_VIRT_PWM_1@GOTPCREL(%rip), %rcx
LBB0_4:
	addl	(%rcx), %ebx
	movq	%rax, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_pmbus_find_sensor
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.9:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_5:
	movl	(%rbx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rpm,4,2                        ## @rpm
	.comm	_PMBUS_VIRT_FAN_TARGET_1,4,2    ## @PMBUS_VIRT_FAN_TARGET_1
	.comm	_PMBUS_VIRT_PWM_1,4,2           ## @PMBUS_VIRT_PWM_1
	.comm	_pmbus_fan_config_registers,8,3 ## @pmbus_fan_config_registers
	.comm	_pmbus_fan_rpm_mask,8,3         ## @pmbus_fan_rpm_mask
	.comm	_pmbus_fan_command_registers,8,3 ## @pmbus_fan_command_registers
	.no_dead_strip	_pmbus_get_fan_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmbus_get_fan_rate
_pmbus_get_fan_rate:                    ; @pmbus_get_fan_rate
	.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	x23, x4
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_i2c_get_clientdata
Lloh0:
	adrp	x8, _rpm@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rpm@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	cbz	w23, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _PMBUS_VIRT_FAN_TARGET_1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PMBUS_VIRT_FAN_TARGET_1@GOTPAGEOFF]
Lloh5:
	adrp	x9, _PMBUS_VIRT_PWM_1@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PMBUS_VIRT_PWM_1@GOTPAGEOFF]
	cmp	w24, w22
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	add	w2, w8, w21
	mov	x1, x19
	bl	_pmbus_find_sensor
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.2:
	mov	x0, x19
	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	_PTR_ERR
LBB0_3:
Lloh7:
	adrp	x8, _pmbus_fan_config_registers@GOTPAGE
Lloh8:
	ldr	x8, [x8, _pmbus_fan_config_registers@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	w2, [x8, w21, sxtw #2]
	mov	x0, x20
	mov	x1, x19
	bl	_pmbus_read_byte_data
	tbnz	w0, #31, LBB0_8
; %bb.4:
	sxtw	x8, w21
	cmp	w24, w22
	cset	w9, eq
Lloh10:
	adrp	x10, _pmbus_fan_rpm_mask@GOTPAGE
Lloh11:
	ldr	x10, [x10, _pmbus_fan_rpm_mask@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	ldr	w10, [x10, x8, lsl #2]
	tst	w10, w0
	cset	w10, eq
	cmp	w9, w10
	b.eq	LBB0_7
; %bb.5:
Lloh13:
	adrp	x9, _pmbus_fan_command_registers@GOTPAGE
Lloh14:
	ldr	x9, [x9, _pmbus_fan_command_registers@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	ldr	w2, [x9, x8, lsl #2]
	mov	x0, x20
	mov	x1, x19
	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	_pmbus_read_word_data
LBB0_6:
	ldr	w0, [x19]
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_rpm,4,2                        ; @rpm
	.comm	_PMBUS_VIRT_FAN_TARGET_1,4,2    ; @PMBUS_VIRT_FAN_TARGET_1
	.comm	_PMBUS_VIRT_PWM_1,4,2           ; @PMBUS_VIRT_PWM_1
	.comm	_pmbus_fan_config_registers,8,3 ; @pmbus_fan_config_registers
	.comm	_pmbus_fan_rpm_mask,8,3         ; @pmbus_fan_rpm_mask
	.comm	_pmbus_fan_command_registers,8,3 ; @pmbus_fan_command_registers
	.no_dead_strip	_pmbus_get_fan_rate
.subsections_via_symbols
