	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_hwmon_set_pwm1_enable
_radeon_hwmon_set_pwm1_enable:          ## @radeon_hwmon_set_pwm1_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.2:
	leaq	-28(%rbp), %rdx
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_kstrtoint
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	xorl	%esi, %esi
	cmpl	$1, -28(%rbp)
	movq	(%rbx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_FDO_PWM_MODE_STATIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
LBB0_5:
	movq	%rbx, %rdi
	callq	*(%rax)
	movl	%r14d, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FDO_PWM_MODE_STATIC,4,2        ## @FDO_PWM_MODE_STATIC
	.no_dead_strip	_radeon_hwmon_set_pwm1_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_hwmon_set_pwm1_enable
_radeon_hwmon_set_pwm1_enable:          ; @radeon_hwmon_set_pwm1_enable
	.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	x21, x2
	bl	_dev_get_drvdata
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x20, x0
	add	x2, sp, #12
	mov	x0, x21
	mov	w1, #10
	bl	_kstrtoint
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w8, [sp, #12]
	ldr	x9, [x20]
	ldr	x9, [x9]
Lloh0:
	adrp	x10, _FDO_PWM_MODE_STATIC@GOTPAGE
Lloh1:
	ldr	x10, [x10, _FDO_PWM_MODE_STATIC@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w8, #1
	csel	w1, w10, wzr, eq
	mov	x0, x20
	blr	x9
	mov	x0, x19
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FDO_PWM_MODE_STATIC,4,2        ; @FDO_PWM_MODE_STATIC
	.no_dead_strip	_radeon_hwmon_set_pwm1_enable
.subsections_via_symbols
