	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxcpld_led_blink_set
_mlxcpld_led_blink_set:                 ## @mlxcpld_led_blink_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	callq	_cdev_to_priv
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_2
## %bb.1:
	cmpq	$0, (%r14)
	je	LBB0_7
LBB0_2:
	movq	_MLXCPLD_LED_BLINK_3HZ@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.3:
	cmpq	%rcx, (%r14)
	je	LBB0_7
LBB0_4:
	movq	_MLXCPLD_LED_BLINK_6HZ@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.5:
	cmpq	%rcx, (%r14)
	jne	LBB0_6
LBB0_7:
	movq	_MLXCPLD_LED_BLINK_6HZ@GOTPCREL(%rip), %rbx
	movl	12(%rax), %edi
	movl	8(%rax), %esi
	movq	(%rax), %rdx
	cmpq	(%rbx), %rcx
	jne	LBB0_9
## %bb.8:
	movq	_MLXCPLD_LED_OFFSET_FULL@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_9:
	movq	_MLXCPLD_LED_OFFSET_HALF@GOTPCREL(%rip), %rax
LBB0_10:
	addq	(%rax), %rdx
	callq	_mlxcpld_led_store_hw
	xorl	%eax, %eax
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXCPLD_LED_BLINK_3HZ,8,3      ## @MLXCPLD_LED_BLINK_3HZ
	.comm	_MLXCPLD_LED_BLINK_6HZ,8,3      ## @MLXCPLD_LED_BLINK_6HZ
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MLXCPLD_LED_OFFSET_FULL,8,3    ## @MLXCPLD_LED_OFFSET_FULL
	.comm	_MLXCPLD_LED_OFFSET_HALF,8,3    ## @MLXCPLD_LED_OFFSET_HALF
	.no_dead_strip	_mlxcpld_led_blink_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxcpld_led_blink_set
_mlxcpld_led_blink_set:                 ; @mlxcpld_led_blink_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, x2
	mov	x20, x1
	bl	_cdev_to_priv
	ldr	x9, [x20]
Lloh0:
	adrp	x8, _MLXCPLD_LED_BLINK_6HZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLXCPLD_LED_BLINK_6HZ@GOTPAGEOFF]
	cbnz	x9, LBB0_2
; %bb.1:
	ldr	x10, [x19]
	cbz	x10, LBB0_6
LBB0_2:
Lloh2:
	adrp	x10, _MLXCPLD_LED_BLINK_3HZ@GOTPAGE
Lloh3:
	ldr	x10, [x10, _MLXCPLD_LED_BLINK_3HZ@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.3:
	ldr	x10, [x19]
	cmp	x10, x9
	b.eq	LBB0_6
LBB0_4:
	ldr	x10, [x8]
	cmp	x9, x10
	b.ne	LBB0_8
; %bb.5:
	ldr	x10, [x19]
	cmp	x10, x9
	b.ne	LBB0_8
LBB0_6:
	ldr	x11, [x8]
	ldp	w1, w8, [x0, #8]
	ldr	x10, [x0]
	cmp	x9, x11
	b.ne	LBB0_9
; %bb.7:
Lloh5:
	adrp	x9, _MLXCPLD_LED_OFFSET_FULL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MLXCPLD_LED_OFFSET_FULL@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_9:
Lloh10:
	adrp	x9, _MLXCPLD_LED_OFFSET_HALF@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MLXCPLD_LED_OFFSET_HALF@GOTPAGEOFF]
LBB0_10:
	ldr	x9, [x9]
	add	x2, x9, x10
	mov	x0, x8
	bl	_mlxcpld_led_store_hw
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXCPLD_LED_BLINK_3HZ,8,3      ; @MLXCPLD_LED_BLINK_3HZ
	.comm	_MLXCPLD_LED_BLINK_6HZ,8,3      ; @MLXCPLD_LED_BLINK_6HZ
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MLXCPLD_LED_OFFSET_FULL,8,3    ; @MLXCPLD_LED_OFFSET_FULL
	.comm	_MLXCPLD_LED_OFFSET_HALF,8,3    ; @MLXCPLD_LED_OFFSET_HALF
	.no_dead_strip	_mlxcpld_led_blink_set
.subsections_via_symbols
