	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pwm_use_point2_pwm_at_crit_store
_pwm_use_point2_pwm_at_crit_store:      ## @pwm_use_point2_pwm_at_crit_store
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movq	8(%rax), %r15
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_kstrtol
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	cmpq	$2, -40(%rbp)
	jae	LBB0_1
## %bb.3:
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_REG_CONFIG4@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movq	_CONFIG4_MAXDUTY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edx, %ecx
	notl	%ecx
	andl	%eax, %ecx
	orl	%eax, %edx
	cmpq	$0, -40(%rbp)
	cmovel	%ecx, %edx
	movl	%edx, 4(%r14)
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_write_byte_data
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subq	(%rax), %r12
LBB0_4:
	movq	%r12, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_REG_CONFIG4,4,2                ## @REG_CONFIG4
	.comm	_CONFIG4_MAXDUTY,4,2            ## @CONFIG4_MAXDUTY
	.no_dead_strip	_pwm_use_point2_pwm_at_crit_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pwm_use_point2_pwm_at_crit_store
_pwm_use_point2_pwm_at_crit_store:      ; @pwm_use_point2_pwm_at_crit_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x3
	mov	x22, x2
	bl	_dev_get_drvdata
	mov	x20, x0
	ldr	x21, [x0, #8]
	add	x2, sp, #8
	mov	x0, x22
	mov	w1, #10
	bl	_kstrtol
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	x8, [sp, #8]
	cmp	x8, #2
	b.hs	LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_mutex_lock
Lloh0:
	adrp	x22, _REG_CONFIG4@GOTPAGE
Lloh1:
	ldr	x22, [x22, _REG_CONFIG4@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	ldr	x8, [sp, #8]
Lloh2:
	adrp	x9, _CONFIG4_MAXDUTY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CONFIG4_MAXDUTY@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	bic	w10, w0, w9
	orr	w9, w9, w0
	cmp	x8, #0
	csel	w2, w10, w9, eq
	str	w2, [x20, #4]
	ldr	w1, [x22]
	mov	x0, x21
	bl	_i2c_smbus_write_byte_data
	mov	x0, x20
	bl	_mutex_unlock
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_REG_CONFIG4,4,2                ; @REG_CONFIG4
	.comm	_CONFIG4_MAXDUTY,4,2            ; @CONFIG4_MAXDUTY
	.no_dead_strip	_pwm_use_point2_pwm_at_crit_store
.subsections_via_symbols
