	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sms_board_led_feedback         ## -- Begin function sms_board_led_feedback
	.p2align	4, 0x90
_sms_board_led_feedback:                ## @sms_board_led_feedback
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_smscore_get_board_id
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_sms_get_board
	movq	%rax, %r15
	movq	%r12, %rdi
	movl	$-1, %esi
	callq	_smscore_led_state
	cmpl	$128, %ebx
	jne	LBB0_3
## %bb.1:
	cmpl	%r14d, %eax
	je	LBB0_3
## %bb.2:
	movl	4(%r15), %esi
	movq	_SMS_LED_LO@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	movl	(%rax), %eax
	andl	%r14d, %eax
	setne	%dl
	movq	%r12, %rdi
	callq	_sms_set_gpio
	movl	(%r15), %esi
	movq	_SMS_LED_HI@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	movl	(%rax), %eax
	andl	%r14d, %eax
	setne	%dl
	movq	%r12, %rdi
	callq	_sms_set_gpio
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_smscore_led_state
LBB0_3:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMS_LED_LO,4,2                 ## @SMS_LED_LO
	.comm	_SMS_LED_HI,4,2                 ## @SMS_LED_HI
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sms_board_led_feedback         ; -- Begin function sms_board_led_feedback
	.p2align	2
_sms_board_led_feedback:                ; @sms_board_led_feedback
	.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	x19, x1
	mov	x20, x0
	bl	_smscore_get_board_id
	mov	x22, x0
	bl	_sms_get_board
	mov	x21, x0
	mov	x0, x20
	mov	w1, #-1
	bl	_smscore_led_state
	cmp	w22, #128
	b.ne	LBB0_3
; %bb.1:
	cmp	w0, w19
	b.eq	LBB0_3
; %bb.2:
	ldr	w1, [x21, #4]
Lloh0:
	adrp	x8, _SMS_LED_LO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMS_LED_LO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w19
	cset	w2, ne
	mov	x0, x20
	bl	_sms_set_gpio
	ldr	w1, [x21]
Lloh3:
	adrp	x8, _SMS_LED_HI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SMS_LED_HI@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w19
	cset	w2, ne
	mov	x0, x20
	bl	_sms_set_gpio
	mov	x0, x20
	mov	x1, x19
	bl	_smscore_led_state
LBB0_3:
	mov	w0, #0
	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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SMS_LED_LO,4,2                 ; @SMS_LED_LO
	.comm	_SMS_LED_HI,4,2                 ; @SMS_LED_HI
.subsections_via_symbols
