	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function show_pwm_freq
_show_pwm_freq:                         ## @show_pwm_freq
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_it87_update_device
	movq	%rax, %rbx
	movl	(%r15), %r15d
	movq	%rax, %rdi
	callq	_has_pwm_freq2
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpl	$1, %r15d
	jne	LBB0_3
## %bb.2:
	movl	(%rbx), %eax
	sarl	$4, %eax
	jmp	LBB0_4
LBB0_3:
	movl	4(%rbx), %eax
	shrl	$4, %eax
LBB0_4:
	andl	$7, %eax
	movq	_pwm_freq@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %r15d
	movq	%rbx, %rdi
	callq	_has_newer_autopwm
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	shll	$7, %ecx
	subl	$-128, %ecx
	movl	%r15d, %eax
	cltd
	idivl	%ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sprintf                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_pwm_freq,8,3                   ## @pwm_freq
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u\n"

	.no_dead_strip	_show_pwm_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function show_pwm_freq
_show_pwm_freq:                         ; @show_pwm_freq
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x2
	mov	x20, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr
	mov	x21, x0
	mov	x0, x20
	bl	_it87_update_device
	mov	x20, x0
	ldr	w21, [x21]
	bl	_has_pwm_freq2
	cbz	x0, LBB0_3
; %bb.1:
	cmp	w21, #1
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x20]
	asr	w8, w8, #4
	b	LBB0_4
LBB0_3:
	ldr	w8, [x20, #4]
	lsr	w8, w8, #4
LBB0_4:
	and	w8, w8, #0x7
Lloh0:
	adrp	x9, _pwm_freq@GOTPAGE
Lloh1:
	ldr	x9, [x9, _pwm_freq@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w21, [x9, w8, uxtw #2]
	mov	x0, x20
	bl	_has_newer_autopwm
	cmp	x0, #0
	mov	w8, #256
	mov	w9, #128
	csel	w8, w9, w8, eq
	sdiv	w2, w21, w8
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_sprintf
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_pwm_freq,8,3                   ; @pwm_freq
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u\n"

	.no_dead_strip	_show_pwm_freq
.subsections_via_symbols
