	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nasgpio_led_set_brightness
_nasgpio_led_set_brightness:            ## @nasgpio_led_set_brightness
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_LED_HALF@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_nasgpio_gpio_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	testl	%ebx, %ebx
	jne	LBB0_2
## %bb.1:
	movq	_GPO_BLINK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	___nasgpio_led_set_attr
LBB0_2:
	xorl	%edx, %edx
	cmpl	%ebx, %r15d
	setbe	%dl
	movq	_GP_LVL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	___nasgpio_led_set_attr
	movq	_nasgpio_gpio_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LED_HALF,4,2                   ## @LED_HALF
	.comm	_nasgpio_gpio_lock,4,2          ## @nasgpio_gpio_lock
	.comm	_GPO_BLINK,4,2                  ## @GPO_BLINK
	.comm	_GP_LVL,4,2                     ## @GP_LVL
	.no_dead_strip	_nasgpio_led_set_brightness
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nasgpio_led_set_brightness
_nasgpio_led_set_brightness:            ; @nasgpio_led_set_brightness
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _LED_HALF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LED_HALF@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x0, _nasgpio_gpio_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _nasgpio_gpio_lock@GOTPAGEOFF]
	bl	_spin_lock
	cbnz	w20, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _GPO_BLINK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GPO_BLINK@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	___nasgpio_led_set_attr
LBB0_2:
	cmp	w21, w20
	cset	w2, ls
Lloh8:
	adrp	x8, _GP_LVL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GP_LVL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	___nasgpio_led_set_attr
Lloh11:
	adrp	x0, _nasgpio_gpio_lock@GOTPAGE
Lloh12:
	ldr	x0, [x0, _nasgpio_gpio_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_LED_HALF,4,2                   ; @LED_HALF
	.comm	_nasgpio_gpio_lock,4,2          ; @nasgpio_gpio_lock
	.comm	_GPO_BLINK,4,2                  ; @GPO_BLINK
	.comm	_GP_LVL,4,2                     ; @GP_LVL
	.no_dead_strip	_nasgpio_led_set_brightness
.subsections_via_symbols
