	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_pwm
_get_pwm:                               ## @get_pwm
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	callq	_max6650_update_device
	movq	_MAX6650_CFG_V12@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	movl	8(%rax), %edx
	movl	%edx, %eax
	shll	$8, %eax
	subl	%edx, %eax
	testl	%ecx, %ecx
	movl	$-76, %ecx
	movl	$-180, %esi
	cmovel	%ecx, %esi
	cltd
	idivl	%esi
	cmpl	$-254, %eax
	movl	$-255, %edx
	cmovgel	%eax, %edx
	addl	$255, %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_sprintf                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX6650_CFG_V12,4,2            ## @MAX6650_CFG_V12
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d\n"

	.no_dead_strip	_get_pwm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_pwm
_get_pwm:                               ; @get_pwm
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	bl	_max6650_update_device
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MAX6650_CFG_V12@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX6650_CFG_V12@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	w10, [x0, #8]
	lsl	w11, w10, #8
	sub	w10, w11, w10
	tst	w9, w8
	mov	w8, #-180
	mov	w9, #-76
	csel	w8, w9, w8, eq
	sdiv	w8, w10, w8
	cmn	w8, #255
	mov	w9, #-255
	csel	w8, w8, w9, gt
	add	w2, w8, #255
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sprintf
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX6650_CFG_V12,4,2            ; @MAX6650_CFG_V12
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d\n"

	.no_dead_strip	_get_pwm
.subsections_via_symbols
