	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxcpld_led_store_hw
_mlxcpld_led_store_hw:                  ## @mlxcpld_led_store_hw
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movl	%edi, %ebx
	movq	_mlxcpld_led@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_spin_lock
	movq	_MLXPLAT_CPLD_LPC_REG_BASE_ADRR@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	-44(%rbp), %r12
	movl	%r14d, %esi
	movl	$1, %edx
	movq	%r12, %rcx
	callq	_mlxcpld_led_bus_access_func
	movl	%r15d, %eax
	shll	$4, %eax
	cmpl	$240, %ebx
	cmovel	%r15d, %eax
	andl	-44(%rbp), %ebx
	orl	%eax, %ebx
	movl	%ebx, -44(%rbp)
	movl	(%r13), %edi
	movl	%r14d, %esi
	xorl	%edx, %edx
	movq	%r12, %rcx
	callq	_mlxcpld_led_bus_access_func
	movq	_mlxcpld_led@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_spin_unlock
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mlxcpld_led,8,3                ## @mlxcpld_led
	.comm	_MLXPLAT_CPLD_LPC_REG_BASE_ADRR,4,2 ## @MLXPLAT_CPLD_LPC_REG_BASE_ADRR
	.no_dead_strip	_mlxcpld_led_store_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxcpld_led_store_hw
_mlxcpld_led_store_hw:                  ; @mlxcpld_led_store_hw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _mlxcpld_led@GOTPAGE
Lloh1:
	ldr	x22, [x22, _mlxcpld_led@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_spin_lock
Lloh2:
	adrp	x23, _MLXPLAT_CPLD_LPC_REG_BASE_ADRR@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MLXPLAT_CPLD_LPC_REG_BASE_ADRR@GOTPAGEOFF]
	ldr	w0, [x23]
	add	x3, sp, #12
	mov	x1, x20
	mov	w2, #1
	bl	_mlxcpld_led_bus_access_func
	lsl	w8, w19, #4
	cmp	w21, #240
	csel	w8, w19, w8, eq
	ldr	w9, [sp, #12]
	and	w9, w9, w21
	orr	w8, w9, w8
	str	w8, [sp, #12]
	ldr	w0, [x23]
	add	x3, sp, #12
	mov	x1, x20
	mov	w2, #0
	bl	_mlxcpld_led_bus_access_func
	ldr	x0, [x22]
	bl	_spin_unlock
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_mlxcpld_led,8,3                ; @mlxcpld_led
	.comm	_MLXPLAT_CPLD_LPC_REG_BASE_ADRR,4,2 ; @MLXPLAT_CPLD_LPC_REG_BASE_ADRR
	.no_dead_strip	_mlxcpld_led_store_hw
.subsections_via_symbols
