	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raq_power_off_led_set
_raq_power_off_led_set:                 ## @raq_power_off_led_set
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	movq	_led_value_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	_LED_POWER_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movq	_led_value@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	jmp	LBB0_3
LBB0_2:
	notl	%edi
	movq	_led_value@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
LBB0_3:
	movq	_led_value@GOTPCREL(%rip), %rax
	movl	%edi, (%rax)
	movq	_led_port@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_writeb
	movq	_led_value_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_led_value_lock,4,2             ## @led_value_lock
	.comm	_LED_POWER_OFF,4,2              ## @LED_POWER_OFF
	.comm	_led_value,4,2                  ## @led_value
	.comm	_led_port,4,2                   ## @led_port
	.no_dead_strip	_raq_power_off_led_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raq_power_off_led_set
_raq_power_off_led_set:                 ; @raq_power_off_led_set
	.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
Lloh0:
	adrp	x0, _led_value_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _led_value_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x8, _LED_POWER_OFF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LED_POWER_OFF@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x8]
Lloh5:
	adrp	x8, _led_value@GOTPAGE
Lloh6:
	ldr	x8, [x8, _led_value@GOTPAGEOFF]
	cbz	w19, LBB0_2
; %bb.1:
	ldr	w10, [x8]
	orr	w0, w10, w9
	b	LBB0_3
LBB0_2:
	ldr	w10, [x8]
	bic	w0, w10, w9
LBB0_3:
	str	w0, [x8]
Lloh7:
	adrp	x8, _led_port@GOTPAGE
Lloh8:
	ldr	x8, [x8, _led_port@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_writeb
Lloh10:
	adrp	x0, _led_value_lock@GOTPAGE
Lloh11:
	ldr	x0, [x0, _led_value_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_led_value_lock,4,2             ; @led_value_lock
	.comm	_LED_POWER_OFF,4,2              ; @LED_POWER_OFF
	.comm	_led_value,4,2                  ; @led_value
	.comm	_led_port,4,2                   ; @led_port
	.no_dead_strip	_raq_power_off_led_set
.subsections_via_symbols
