	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pm121_connect
_pm121_connect:                         ## @pm121_connect
	.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	%esi, %ebx
	movq	_pm121_connection@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_4
## %bb.1:
	movq	_controls@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	%edi, %r13d
	movq	(%rax,%r13,8), %rdi
	movq	8(%rdi), %rax
	leaq	-44(%rbp), %rsi
	callq	*(%rax)
	movq	(%r15), %rax
	movl	16(%rax), %esi
	imull	-44(%rbp), %esi
	addl	24(%rax), %esi
	testl	%esi, %esi
	jle	LBB0_4
## %bb.2:
	shrl	$16, %esi
	movl	%ebx, %edi
	callq	_max
	cmpl	%ebx, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	movq	(%r12), %rax
	movq	(%rax,%r13,8), %rcx
	movl	(%rcx), %esi
	movq	(%r15), %rcx
	movq	8(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %ecx
	movl	%r14d, %r8d
	callq	_pr_debug
	movl	%r14d, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pm121_connection,8,3           ## @pm121_connection
	.comm	_controls,8,3                   ## @controls
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pm121: %s depending on %s, corrected from %d to %d RPM\n"

	.no_dead_strip	_pm121_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pm121_connect
_pm121_connect:                         ; @pm121_connect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
Lloh0:
	adrp	x22, _pm121_connection@GOTPAGE
Lloh1:
	ldr	x22, [x22, _pm121_connection@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_4
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x23, _controls@GOTPAGE
Lloh3:
	ldr	x23, [x23, _controls@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x0, [x8, w0, uxtw #3]
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	add	x1, sp, #12
	blr	x8
	ldr	w8, [sp, #12]
	ldr	x9, [x22]
	ldr	w10, [x9, #16]
	ldr	w9, [x9, #24]
	madd	w8, w10, w8, w9
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	lsr	w1, w8, #16
	mov	x0, x19
	bl	_max
	cmp	w0, w19
	b.eq	LBB0_4
; %bb.3:
	mov	x21, x0
	mov	w8, w20
	ldr	x9, [x23]
	ldr	x8, [x9, x8, lsl #3]
	ldr	w1, [x8]
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	ldr	x8, [x9, x8, lsl #3]
	ldr	w2, [x8]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x19
	mov	x4, x21
	bl	_pr_debug
	mov	x19, x21
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_pm121_connection,8,3           ; @pm121_connection
	.comm	_controls,8,3                   ; @controls
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pm121: %s depending on %s, corrected from %d to %d RPM\n"

	.no_dead_strip	_pm121_connect
.subsections_via_symbols
