	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_trip_points
_check_trip_points:                     ## @check_trip_points
	.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
	movl	%esi, %r12d
	movq	%rdi, %r14
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_has_old_autopwm
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movslq	%r12d, %rax
	movq	8(%rbx), %rcx
	movq	(%rcx,%rax,8), %rcx
	movq	8(%rcx), %rdx
	cmpq	16(%rcx), %rdx
	jg	LBB0_9
## %bb.2:
	cmpq	%rdx, (%rcx)
	jg	LBB0_9
## %bb.3:
	movq	(%rbx), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	16(%rax), %rcx
	cmpq	24(%rax), %rcx
	jg	LBB0_9
## %bb.4:
	movq	8(%rax), %rdx
	cmpq	%rcx, %rdx
	jg	LBB0_9
## %bb.5:
	xorl	%r15d, %r15d
	cmpq	%rdx, (%rax)
	jle	LBB0_12
	jmp	LBB0_9
LBB0_6:
	movq	%rbx, %rdi
	callq	_has_newer_autopwm
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	movq	(%rbx), %rax
	movslq	%r12d, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	16(%rax), %rcx
	cmpq	24(%rax), %rcx
	jg	LBB0_9
## %bb.8:
	cmpq	%rcx, 8(%rax)
	jle	LBB0_12
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.11:
	negl	%r15d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_12
LBB0_10:
	xorl	%r15d, %r15d
LBB0_12:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Inconsistent trip points, not switching to automatic mode\n"

L_.str.1:                               ## @.str.1
	.asciz	"Adjust the trip points and try again\n"

	.no_dead_strip	_check_trip_points
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_trip_points
_check_trip_points:                     ; @check_trip_points
	.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, x1
	mov	x19, x0
	bl	_dev_get_drvdata
	mov	x21, x0
	bl	_has_old_autopwm
	cbz	x0, LBB0_2
; %bb.1:
	sbfiz	x8, x20, #3, #32
	ldp	x9, x10, [x21]
	ldr	x9, [x9, x8]
	ldr	x8, [x10, x8]
	ldr	x10, [x9, #16]
	ldur	q0, [x8, #8]
	ext.16b	v1, v0, v0, #8
	ld1.d	{ v0 }[1], [x8]
	ldr	d2, [x9, #24]
	mov.d	v2[1], x10
	ldp	x8, x9, [x9]
	fmov	d3, x10
	mov.d	v3[1], x9
	cmgt.2d	v2, v3, v2
	cmgt.2d	v0, v0, v1
	uzp1.4s	v0, v0, v2
	xtn.4h	v0, v0
	umov.h	w10, v0[0]
	umov.h	w11, v0[1]
	and	w11, w11, #0x1
	bfi	w10, w11, #1, #1
	umov.h	w11, v0[2]
	and	w11, w11, #0x1
	bfi	w10, w11, #2, #1
	umov.h	w11, v0[3]
	bfi	w10, w11, #3, #29
	and	w10, w10, #0xf
	cmp	w10, #0
	ccmp	x8, x9, #0, eq
	b.gt	LBB0_4
	b	LBB0_6
LBB0_2:
	mov	x0, x21
	bl	_has_newer_autopwm
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x8, [x21]
	ldr	x8, [x8, w20, sxtw #3]
	ldp	x9, x10, [x8, #8]
	ldr	x8, [x8, #24]
	cmp	x10, x8
	ccmp	x9, x10, #0, le
	b.le	LBB0_6
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.5:
	neg	w20, w8
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_7
LBB0_6:
	mov	w20, #0
LBB0_7:
	mov	x0, x20
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Inconsistent trip points, not switching to automatic mode\n"

l_.str.1:                               ; @.str.1
	.asciz	"Adjust the trip points and try again\n"

	.no_dead_strip	_check_trip_points
.subsections_via_symbols
