	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cap11xx_set_sleep
_cap11xx_set_sleep:                     ## @cap11xx_set_sleep
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_CONFIG_LEDS_CLASS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpq	$0, 8(%r14)
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movl	(%r14), %edi
	movq	_CAP11XX_REG_MAIN_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CAP11XX_REG_MAIN_CONTROL_DLSEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%ebx, %ebx
	cmovnel	%edx, %ebx
	movl	%ebx, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_LEDS_CLASS,4,2          ## @CONFIG_LEDS_CLASS
	.comm	_CAP11XX_REG_MAIN_CONTROL,4,2   ## @CAP11XX_REG_MAIN_CONTROL
	.comm	_CAP11XX_REG_MAIN_CONTROL_DLSEEP,4,2 ## @CAP11XX_REG_MAIN_CONTROL_DLSEEP
	.no_dead_strip	_cap11xx_set_sleep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cap11xx_set_sleep
_cap11xx_set_sleep:                     ; @cap11xx_set_sleep
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _CONFIG_LEDS_CLASS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONFIG_LEDS_CLASS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	w0, [x20]
Lloh3:
	adrp	x8, _CAP11XX_REG_MAIN_CONTROL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CAP11XX_REG_MAIN_CONTROL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _CAP11XX_REG_MAIN_CONTROL_DLSEEP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CAP11XX_REG_MAIN_CONTROL_DLSEEP@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	cmp	w19, #0
	csel	w3, wzr, w2, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_regmap_update_bits
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_LEDS_CLASS,4,2          ; @CONFIG_LEDS_CLASS
	.comm	_CAP11XX_REG_MAIN_CONTROL,4,2   ; @CAP11XX_REG_MAIN_CONTROL
	.comm	_CAP11XX_REG_MAIN_CONTROL_DLSEEP,4,2 ; @CAP11XX_REG_MAIN_CONTROL_DLSEEP
	.no_dead_strip	_cap11xx_set_sleep
.subsections_via_symbols
