	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pwm1_freq_show
_pwm1_freq_show:                        ## @pwm1_freq_show
	.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
	movq	%rdx, %r14
	callq	_adt7470_update_device
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_mutex_lock
	movl	4(%r12), %edi
	movq	_ADT7470_REG_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r15d
	movl	4(%r12), %edi
	movq	_ADT7470_REG_CFG_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	_ADT7470_FREQ_MASK@GOTPCREL(%rip), %rax
	andb	(%rax), %bl
	movzbl	%bl, %eax
	movq	_ADT7470_FREQ_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrl	%cl, %eax
	movq	_ADT7470_CFG_LF@GOTPCREL(%rip), %rcx
	andb	(%rcx), %r15b
	leal	8(%rax), %ebx
	testb	%r15b, %r15b
	cmovnel	%eax, %ebx
	movq	_adt7470_freq_map@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jl	LBB0_2
## %bb.1:
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %ebx
	decl	%ebx
LBB0_2:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r15), %rax
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,4), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_scnprintf                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ADT7470_REG_CFG,4,2            ## @ADT7470_REG_CFG
	.comm	_ADT7470_REG_CFG_2,4,2          ## @ADT7470_REG_CFG_2
	.comm	_ADT7470_FREQ_MASK,1,0          ## @ADT7470_FREQ_MASK
	.comm	_ADT7470_FREQ_SHIFT,1,0         ## @ADT7470_FREQ_SHIFT
	.comm	_ADT7470_CFG_LF,1,0             ## @ADT7470_CFG_LF
	.comm	_adt7470_freq_map,8,3           ## @adt7470_freq_map
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d\n"

	.no_dead_strip	_pwm1_freq_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pwm1_freq_show
_pwm1_freq_show:                        ; @pwm1_freq_show
	.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
	bl	_adt7470_update_device
	mov	x20, x0
	bl	_mutex_lock
	ldr	w0, [x20, #4]
Lloh0:
	adrp	x8, _ADT7470_REG_CFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADT7470_REG_CFG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_byte_data
	mov	x21, x0
	ldr	w0, [x20, #4]
Lloh3:
	adrp	x8, _ADT7470_REG_CFG_2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADT7470_REG_CFG_2@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
	mov	x0, x20
	bl	_mutex_unlock
Lloh6:
	adrp	x8, _ADT7470_FREQ_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ADT7470_FREQ_MASK@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh8:
	adrp	x9, _ADT7470_FREQ_SHIFT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ADT7470_FREQ_SHIFT@GOTPAGEOFF]
	and	w8, w8, w22
	ldrb	w9, [x9]
	lsr	w8, w8, w9
Lloh10:
	adrp	x9, _ADT7470_CFG_LF@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ADT7470_CFG_LF@GOTPAGEOFF]
	ldrb	w9, [x9]
	add	w10, w8, #8
	tst	w9, w21
	csel	w21, w10, w8, eq
Lloh12:
	adrp	x20, _adt7470_freq_map@GOTPAGE
Lloh13:
	ldr	x20, [x20, _adt7470_freq_map@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w21, w0
	b.lt	LBB0_2
; %bb.1:
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	sub	w21, w0, #1
LBB0_2:
Lloh14:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	x8, [x20]
	ldr	w3, [x8, w21, sxtw #2]
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, 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	_scnprintf
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ADT7470_REG_CFG,4,2            ; @ADT7470_REG_CFG
	.comm	_ADT7470_REG_CFG_2,4,2          ; @ADT7470_REG_CFG_2
	.comm	_ADT7470_FREQ_MASK,1,0          ; @ADT7470_FREQ_MASK
	.comm	_ADT7470_FREQ_SHIFT,1,0         ; @ADT7470_FREQ_SHIFT
	.comm	_ADT7470_CFG_LF,1,0             ; @ADT7470_CFG_LF
	.comm	_adt7470_freq_map,8,3           ; @adt7470_freq_map
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d\n"

	.no_dead_strip	_pwm1_freq_show
.subsections_via_symbols
