	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function applesmc_brightness_set
_applesmc_brightness_set:               ## @applesmc_brightness_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
	movq	%rdi, %rbx
	movq	_backlight_state@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%esi, (%rax)
	movq	_applesmc_led_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_backlight_work@GOTPCREL(%rip), %rsi
	callq	_queue_work
	movq	_debug@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_2
## %bb.1:
	testl	%eax, %eax
	jne	LBB0_2
## %bb.3:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_backlight_state,8,3            ## @backlight_state
	.comm	_applesmc_led_wq,4,2            ## @applesmc_led_wq
	.comm	_backlight_work,4,2             ## @backlight_work
	.comm	_debug,8,3                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"work was already on the queue.\n"

	.no_dead_strip	_applesmc_brightness_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function applesmc_brightness_set
_applesmc_brightness_set:               ; @applesmc_brightness_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, x0
Lloh0:
	adrp	x8, _backlight_state@GOTPAGE
Lloh1:
	ldr	x8, [x8, _backlight_state@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	w1, [x8]
Lloh3:
	adrp	x8, _applesmc_led_wq@GOTPAGE
Lloh4:
	ldr	x8, [x8, _applesmc_led_wq@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, _backlight_work@GOTPAGE
Lloh7:
	ldr	x1, [x1, _backlight_work@GOTPAGEOFF]
	bl	_queue_work
Lloh8:
	adrp	x8, _debug@GOTPAGE
Lloh9:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x8, #0
	ccmp	w0, #0, #0, ne
	b.eq	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w0, [x19]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_dbg
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_backlight_state,8,3            ; @backlight_state
	.comm	_applesmc_led_wq,4,2            ; @applesmc_led_wq
	.comm	_backlight_work,4,2             ; @backlight_work
	.comm	_debug,8,3                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"work was already on the queue.\n"

	.no_dead_strip	_applesmc_brightness_set
.subsections_via_symbols
