	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_pwm_enable
_set_pwm_enable:                        ## @set_pwm_enable
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_to_i2c_client
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %rbx
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movl	$10, %esi
	callq	_strict_strtol
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subq	(%rax), %r12
	jmp	LBB0_9
LBB0_2:
	movq	-48(%rbp), %rax
	cmpq	$2, %rax
	je	LBB0_6
## %bb.3:
	cmpq	$1, %rax
	je	LBB0_7
## %bb.4:
	testq	%rax, %rax
	jne	LBB0_1
## %bb.5:
	movq	$3, -48(%rbp)
	jmp	LBB0_8
LBB0_6:
	movq	$4, -48(%rbp)
	jmp	LBB0_8
LBB0_7:
	movq	$7, -48(%rbp)
LBB0_8:
	movq	%rbx, %r13
	addq	$8, %r13
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	(%r14), %rdi
	callq	_ADT7473_REG_PWM_BHVR
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_read_byte_data
	movq	-48(%rbp), %rdx
	movq	_ADT7473_PWM_BHVR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rdx
	movq	_ADT7473_PWM_BHVR_MASK@GOTPCREL(%rip), %rcx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rcx), %rbx
	notq	%rbx
	andq	%rax, %rbx
	orq	%rdx, %rbx
	movq	(%r14), %rdi
	callq	_ADT7473_REG_PWM_BHVR
	movq	%r15, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_i2c_smbus_write_byte_data
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%r14), %rcx
	movq	%rbx, (%rax,%rcx,8)
	movq	%r13, %rdi
	callq	_mutex_unlock
LBB0_9:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_ADT7473_PWM_BHVR_SHIFT,8,3     ## @ADT7473_PWM_BHVR_SHIFT
	.comm	_ADT7473_PWM_BHVR_MASK,8,3      ## @ADT7473_PWM_BHVR_MASK
	.no_dead_strip	_set_pwm_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_pwm_enable
_set_pwm_enable:                        ; @set_pwm_enable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x3
	mov	x23, x2
	mov	x21, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr
	mov	x20, x0
	mov	x0, x21
	bl	_to_i2c_client
	mov	x21, x0
	bl	_i2c_get_clientdata
	mov	x22, x0
	add	x2, sp, #8
	mov	x0, x23
	mov	w1, #10
	bl	_strict_strtol
	cbz	x0, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_9
LBB0_2:
	ldr	x8, [sp, #8]
	cmp	x8, #2
	b.eq	LBB0_6
; %bb.3:
	cmp	x8, #1
	b.eq	LBB0_7
; %bb.4:
	cbnz	x8, LBB0_1
; %bb.5:
	mov	w8, #3
	b	LBB0_8
LBB0_6:
	mov	w8, #4
	b	LBB0_8
LBB0_7:
	mov	w8, #7
LBB0_8:
	str	x8, [sp, #8]
	add	x23, x22, #8
	mov	x0, x23
	bl	_mutex_lock
	ldr	x0, [x20]
	bl	_ADT7473_REG_PWM_BHVR
	mov	x1, x0
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	ldr	x8, [sp, #8]
Lloh3:
	adrp	x9, _ADT7473_PWM_BHVR_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ADT7473_PWM_BHVR_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	lsl	x8, x8, x9
Lloh6:
	adrp	x9, _ADT7473_PWM_BHVR_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ADT7473_PWM_BHVR_MASK@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	bic	x9, x0, x9
	orr	x24, x9, x8
	ldr	x0, [x20]
	bl	_ADT7473_REG_PWM_BHVR
	mov	x1, x0
	mov	x0, x21
	mov	x2, x24
	bl	_i2c_smbus_write_byte_data
	ldr	x8, [x22]
	ldr	x9, [x20]
	str	x24, [x8, x9, lsl #3]
	mov	x0, x23
	bl	_mutex_unlock
LBB0_9:
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_ADT7473_PWM_BHVR_SHIFT,8,3     ; @ADT7473_PWM_BHVR_SHIFT
	.comm	_ADT7473_PWM_BHVR_MASK,8,3      ; @ADT7473_PWM_BHVR_MASK
	.no_dead_strip	_set_pwm_enable
.subsections_via_symbols
