	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nct7904_write_pwm
_nct7904_write_pwm:                     ## @nct7904_write_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r14d
	movl	%esi, %ebx
	callq	_dev_get_drvdata
	cmpl	$129, %ebx
	je	LBB0_5
## %bb.1:
	cmpl	$128, %ebx
	jne	LBB0_11
## %bb.2:
	cmpq	$256, %r15                      ## imm = 0x100
	jae	LBB0_3
## %bb.4:
	movq	_BANK_3@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_FANCTL1_OUT_REG@GOTPCREL(%rip), %rcx
	addl	(%rcx), %r14d
	movq	%rax, %rdi
	movl	%r14d, %edx
	movq	%r15, %rcx
	jmp	LBB0_10
LBB0_5:
	leaq	-3(%r15), %rcx
	cmpq	$-2, %rcx
	jae	LBB0_6
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_11:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
LBB0_12:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	cmpq	$2, %r15
	jne	LBB0_7
## %bb.8:
	movq	(%rax), %rcx
	movslq	%r14d, %rdx
	movq	(%rcx,%rdx,8), %rcx
	testq	%rcx, %rcx
	jne	LBB0_9
	jmp	LBB0_3
LBB0_7:
	xorl	%ecx, %ecx
LBB0_9:
	movq	_BANK_3@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movq	_FANCTL1_FMR_REG@GOTPCREL(%rip), %rdx
	addl	(%rdx), %r14d
	movq	%rax, %rdi
	movl	%r14d, %edx
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nct7904_write_reg              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BANK_3,4,2                     ## @BANK_3
	.comm	_FANCTL1_OUT_REG,4,2            ## @FANCTL1_OUT_REG
	.comm	_FANCTL1_FMR_REG,4,2            ## @FANCTL1_FMR_REG
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_nct7904_write_pwm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nct7904_write_pwm
_nct7904_write_pwm:                     ; @nct7904_write_pwm
	.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	x20, x3
	mov	x19, x2
	mov	x21, x1
	bl	_dev_get_drvdata
	cmp	w21, #129
	b.eq	LBB0_4
; %bb.1:
	cmp	w21, #128
	b.ne	LBB0_6
; %bb.2:
	cmp	x20, #256
	b.hs	LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _BANK_3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BANK_3@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _FANCTL1_OUT_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FANCTL1_OUT_REG@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w2, w8, w19
	mov	x3, x20
	b	LBB0_12
LBB0_4:
	sub	x8, x20, #3
	cmn	x8, #2
	b.hs	LBB0_8
LBB0_5:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
	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
	ret
LBB0_8:
	cmp	x20, #2
	b.ne	LBB0_10
; %bb.9:
	ldr	x8, [x0]
	ldr	x3, [x8, w19, sxtw #3]
	cbnz	x3, LBB0_11
	b	LBB0_5
LBB0_10:
	mov	x3, #0
LBB0_11:
Lloh10:
	adrp	x8, _BANK_3@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BANK_3@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _FANCTL1_FMR_REG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FANCTL1_FMR_REG@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	add	w2, w8, w19
LBB0_12:
	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	_nct7904_write_reg
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BANK_3,4,2                     ; @BANK_3
	.comm	_FANCTL1_OUT_REG,4,2            ; @FANCTL1_OUT_REG
	.comm	_FANCTL1_FMR_REG,4,2            ; @FANCTL1_FMR_REG
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_nct7904_write_pwm
.subsections_via_symbols
