	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar8327_led_enable_hw_mode_store
_ar8327_led_enable_hw_mode_store:       ## @ar8327_led_enable_hw_mode_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %rdi
	callq	_led_cdev_to_ar8327_led
	movq	%rax, %r15
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_kstrtou8
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r15, %rbx
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	xorl	%eax, %eax
	cmpl	$0, -28(%rbp)
	setne	%al
	movl	%eax, (%r15)
	je	LBB0_3
## %bb.4:
	movq	_AR8327_LED_PATTERN_RULE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subq	(%rax), %r14
	jmp	LBB0_6
LBB0_3:
	movq	_AR8327_LED_PATTERN_OFF@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ar8327_led_schedule_change
	movq	%rbx, %rdi
	callq	_spin_unlock
LBB0_6:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_AR8327_LED_PATTERN_RULE,4,2    ## @AR8327_LED_PATTERN_RULE
	.comm	_AR8327_LED_PATTERN_OFF,4,2     ## @AR8327_LED_PATTERN_OFF
	.no_dead_strip	_ar8327_led_enable_hw_mode_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar8327_led_enable_hw_mode_store
_ar8327_led_enable_hw_mode_store:       ; @ar8327_led_enable_hw_mode_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	x21, x2
	bl	_dev_get_drvdata
	bl	_led_cdev_to_ar8327_led
	mov	x20, x0
	add	x2, sp, #12
	mov	x0, x21
	mov	w1, #10
	bl	_kstrtou8
	tbnz	w0, #31, LBB0_2
; %bb.1:
	add	x21, x20, #4
	mov	x0, x21
	bl	_spin_lock
	ldr	w8, [sp, #12]
	cmp	w8, #0
	cset	w8, ne
	str	w8, [x20]
Lloh0:
	adrp	x8, _AR8327_LED_PATTERN_RULE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR8327_LED_PATTERN_RULE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _AR8327_LED_PATTERN_OFF@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AR8327_LED_PATTERN_OFF@GOTPAGEOFF]
	csel	x8, x8, x9, ne
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ar8327_led_schedule_change
	mov	x0, x21
	bl	_spin_unlock
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_3:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_AR8327_LED_PATTERN_RULE,4,2    ; @AR8327_LED_PATTERN_RULE
	.comm	_AR8327_LED_PATTERN_OFF,4,2     ; @AR8327_LED_PATTERN_OFF
	.no_dead_strip	_ar8327_led_enable_hw_mode_store
.subsections_via_symbols
