	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpld_set_led_id_acpi
_cpld_set_led_id_acpi:                  ## @cpld_set_led_id_acpi
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$128, %esi
	je	LBB0_4
## %bb.1:
	movl	%esi, %edx
	cmpl	$129, %esi
	jne	LBB0_5
## %bb.2:
	movq	_HNS_OP_LOCATE_LED_SET_FUNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CPLD_LED_ON_VALUE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	movq	_HNS_OP_LOCATE_LED_SET_FUNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CPLD_LED_DEFAULT_VALUE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edx
	movl	4(%rdi), %ecx
	callq	_hns_dsaf_acpi_locate_ledctrl_by_port
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_5:
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HNS_OP_LOCATE_LED_SET_FUNC,4,2 ## @HNS_OP_LOCATE_LED_SET_FUNC
	.comm	_CPLD_LED_ON_VALUE,4,2          ## @CPLD_LED_ON_VALUE
	.comm	_CPLD_LED_DEFAULT_VALUE,4,2     ## @CPLD_LED_DEFAULT_VALUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid led state: %d!"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_cpld_set_led_id_acpi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpld_set_led_id_acpi
_cpld_set_led_id_acpi:                  ; @cpld_set_led_id_acpi
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cmp	w1, #128
	b.eq	LBB0_3
; %bb.1:
	mov	x2, x1
	cmp	w1, #129
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _HNS_OP_LOCATE_LED_SET_FUNC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HNS_OP_LOCATE_LED_SET_FUNC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _CPLD_LED_ON_VALUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CPLD_LED_ON_VALUE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _HNS_OP_LOCATE_LED_SET_FUNC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HNS_OP_LOCATE_LED_SET_FUNC@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _CPLD_LED_DEFAULT_VALUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CPLD_LED_DEFAULT_VALUE@GOTPAGEOFF]
LBB0_4:
	ldr	w2, [x8]
	ldr	w3, [x0, #4]
	bl	_hns_dsaf_acpi_locate_ledctrl_by_port
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w0, [x0]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HNS_OP_LOCATE_LED_SET_FUNC,4,2 ; @HNS_OP_LOCATE_LED_SET_FUNC
	.comm	_CPLD_LED_ON_VALUE,4,2          ; @CPLD_LED_ON_VALUE
	.comm	_CPLD_LED_DEFAULT_VALUE,4,2     ; @CPLD_LED_DEFAULT_VALUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid led state: %d!"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_cpld_set_led_id_acpi
.subsections_via_symbols
