	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adt7475_read_pwm
_adt7475_read_pwm:                      ## @adt7475_read_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	%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
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_i2c_get_clientdata
	movq	%rax, %r12
	movl	%ebx, %edi
	callq	_PWM_CONFIG_REG
	movl	%eax, %edi
	callq	_adt7475_read
	movq	(%r12), %rcx
	movq	_CONTROL@GOTPCREL(%rip), %r13
	movq	(%r13), %rdx
	movq	(%rcx,%rdx,8), %rdx
	movslq	%ebx, %r14
	movl	%eax, (%rdx,%r14,4)
	shrl	$5, %eax
	andl	$7, %eax
	cmpl	$7, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$4, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$3, %eax
	jne	LBB0_9
## %bb.3:
	addq	$8, %r12
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_4:
	movq	_INPUT@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	(%rcx,%rax,8), %rax
	movl	$0, (%rax,%r14,4)
	orb	$-32, (%rdx,%r14,4)
	movl	%r14d, %edi
	callq	_PWM_CONFIG_REG
	movq	(%r12), %rcx
	movq	(%rbx), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movl	(%rcx,%r14,4), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_write_byte_data
	movl	%r14d, %edi
	callq	_PWM_CONFIG_REG
	movq	(%r12), %rcx
	movq	(%r13), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movl	(%rcx,%r14,4), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_write_byte_data
LBB0_5:
	addq	$8, %r12
LBB0_6:
	movl	$1, %eax
LBB0_7:
	movq	(%r12), %rcx
	movl	%eax, (%rcx,%r14,4)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	8(%r12), %rcx
	movl	$2, (%rcx,%r14,4)
	cmpl	$6, %eax
	ja	LBB0_8
## %bb.10:
	movl	%eax, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_11:
	addq	$16, %r12
	jmp	LBB0_6
LBB0_12:
	addq	$16, %r12
	movl	$2, %eax
	jmp	LBB0_7
LBB0_13:
	addq	$16, %r12
	movl	$4, %eax
	jmp	LBB0_7
LBB0_14:
	addq	$16, %r12
	movl	$6, %eax
	jmp	LBB0_7
LBB0_15:
	addq	$16, %r12
	movl	$7, %eax
	jmp	LBB0_7
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_14
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.comm	_CONTROL,8,3                    ## @CONTROL
	.comm	_INPUT,8,3                      ## @INPUT
	.no_dead_strip	_adt7475_read_pwm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adt7475_read_pwm
_adt7475_read_pwm:                      ; @adt7475_read_pwm
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x20, x0
	bl	_i2c_get_clientdata
	mov	x19, x0
	mov	x0, x21
	bl	_PWM_CONFIG_REG
	bl	_adt7475_read
	ldr	x9, [x19]
Lloh0:
	adrp	x23, _CONTROL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CONTROL@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x8, [x9, x8, lsl #3]
	sxtw	x22, w21
	str	w0, [x8, w21, sxtw #2]
	ubfx	w10, w0, #5, #3
	cmp	w10, #7
	b.eq	LBB0_4
; %bb.1:
	cmp	w10, #4
	b.eq	LBB0_5
; %bb.2:
	cmp	w10, #3
	b.ne	LBB0_9
; %bb.3:
	mov	w8, #0
	add	x19, x19, #8
	b	LBB0_7
LBB0_4:
	add	x19, x19, #8
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x24, _INPUT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _INPUT@GOTPAGEOFF]
	ldr	x10, [x24]
	ldr	x9, [x9, x10, lsl #3]
	lsl	x25, x22, #2
	str	wzr, [x9, x25]
	ldr	w9, [x8, x25]
	orr	w9, w9, #0xe0
	str	w9, [x8, x25]
	mov	x0, x21
	bl	_PWM_CONFIG_REG
	mov	x1, x0
	ldr	x8, [x19]
	ldr	x9, [x24]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w2, [x8, x25]
	mov	x0, x20
	bl	_i2c_smbus_write_byte_data
	mov	x0, x21
	bl	_PWM_CONFIG_REG
	mov	x1, x0
	ldr	x8, [x19], #8
	ldr	x9, [x23]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w2, [x8, x25]
	mov	x0, x20
	bl	_i2c_smbus_write_byte_data
LBB0_6:
	mov	w8, #1
LBB0_7:
	ldr	x9, [x19]
	str	w8, [x9, x22, lsl #2]
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	x8, [x19, #8]
	mov	w9, #2
	str	w9, [x8, x22, lsl #2]
	cmp	w10, #6
	b.hi	LBB0_8
; %bb.10:
Lloh4:
	adrp	x8, lJTI0_0@PAGE
Lloh5:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x9, LBB0_8
	ldrb	w11, [x8, x10]
	add	x9, x9, x11, lsl #2
	br	x9
LBB0_11:
	add	x19, x19, #16
	b	LBB0_6
LBB0_12:
	add	x19, x19, #16
	mov	w8, #2
	b	LBB0_7
LBB0_13:
	add	x19, x19, #16
	mov	w8, #4
	b	LBB0_7
LBB0_14:
	add	x19, x19, #16
	mov	w8, #6
	b	LBB0_7
LBB0_15:
	add	x19, x19, #16
	mov	w8, #7
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_8)>>2
	.byte	(LBB0_12-LBB0_8)>>2
	.byte	(LBB0_13-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
                                        ; -- End function
	.comm	_CONTROL,8,3                    ; @CONTROL
	.comm	_INPUT,8,3                      ; @INPUT
	.no_dead_strip	_adt7475_read_pwm
.subsections_via_symbols
