	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kvaser_pciefd_pwm_start
_kvaser_pciefd_pwm_start:               ## @kvaser_pciefd_pwm_start
	.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
	movq	%rdi, %r14
	callq	_kvaser_pciefd_pwm_stop
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	16(%r14), %rax
	movslq	(%rax), %rax
	imulq	$1125899907, %rax, %rax         ## imm = 0x431BDE83
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$50, %rax
	leal	(%rax,%rcx), %r13d
	leal	(%rax,%rcx), %r15d
	decl	%r15d
	movzbl	%r15b, %ebx
	movq	_KVASER_PCIEFD_KCAN_PWM_TOP_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%ebx, %edi
	shll	%cl, %edi
	orl	%ebx, %edi
	movq	_KVASER_PCIEFD_KCAN_PWM_REG@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	8(%r14), %rsi
	callq	_iowrite32
	imull	$100, %r15d, %eax
	imull	$-95, %r13d, %ecx
	addl	%ecx, %eax
	addl	$50, %eax
	cltq
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$37, %rax
	addl	%ecx, %eax
	movzbl	%al, %eax
	movq	_KVASER_PCIEFD_KCAN_PWM_TOP_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	orl	%eax, %ebx
	movq	(%r12), %rsi
	addq	8(%r14), %rsi
	movl	%ebx, %edi
	callq	_iowrite32
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_KVASER_PCIEFD_KCAN_PWM_TOP_SHIFT,4,2 ## @KVASER_PCIEFD_KCAN_PWM_TOP_SHIFT
	.comm	_KVASER_PCIEFD_KCAN_PWM_REG,8,3 ## @KVASER_PCIEFD_KCAN_PWM_REG
	.no_dead_strip	_kvaser_pciefd_pwm_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kvaser_pciefd_pwm_start
_kvaser_pciefd_pwm_start:               ; @kvaser_pciefd_pwm_start
	.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	x19, x0
	bl	_kvaser_pciefd_pwm_stop
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldp	x9, x8, [x19, #8]
	ldrsw	x8, [x8]
	mov	w10, #56963
	movk	w10, #17179, lsl #16
	mul	x8, x8, x10
	lsr	x10, x8, #63
	asr	x8, x8, #50
	add	w20, w8, w10
	sub	w21, w20, #1
	and	w22, w21, #0xff
Lloh0:
	adrp	x23, _KVASER_PCIEFD_KCAN_PWM_TOP_SHIFT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _KVASER_PCIEFD_KCAN_PWM_TOP_SHIFT@GOTPAGEOFF]
	ldr	w8, [x23]
	lsl	w8, w22, w8
	orr	w0, w8, w22
Lloh2:
	adrp	x24, _KVASER_PCIEFD_KCAN_PWM_REG@GOTPAGE
Lloh3:
	ldr	x24, [x24, _KVASER_PCIEFD_KCAN_PWM_REG@GOTPAGEOFF]
	ldr	x8, [x24]
	add	x1, x8, x9
	bl	_iowrite32
	mov	w8, #100
	mul	w8, w21, w8
	mov	w9, #-95
	madd	w8, w20, w9, w8
	add	w8, w8, #50
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	lsr	x8, x8, #37
	add	w8, w8, w9
	and	w8, w8, #0xff
	ldr	w9, [x23]
	lsl	w9, w22, w9
	orr	w0, w8, w9
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_iowrite32
	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	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_KVASER_PCIEFD_KCAN_PWM_TOP_SHIFT,4,2 ; @KVASER_PCIEFD_KCAN_PWM_TOP_SHIFT
	.comm	_KVASER_PCIEFD_KCAN_PWM_REG,8,3 ; @KVASER_PCIEFD_KCAN_PWM_REG
	.no_dead_strip	_kvaser_pciefd_pwm_start
.subsections_via_symbols
