	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __rb4xx_cpld_change_cfg
___rb4xx_cpld_change_cfg:               ## @__rb4xx_cpld_change_cfg
	.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	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	(%rdi), %eax
	notl	%ebx
	andl	%eax, %ebx
	orl	%edx, %ebx
	xorl	%ebx, %eax
	testb	%al, %al
	je	LBB0_3
## %bb.1:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_rb4xx_cpld_write_cfg
	testl	%eax, %eax
	jne	LBB0_9
## %bb.2:
	movl	(%r14), %eax
	xorl	%ebx, %eax
LBB0_3:
	movq	_CPLD_CFG_nLED5@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.4:
	testl	%r15d, %r15d
	jne	LBB0_5
## %bb.6:
	movq	_CPLD_CMD_LED5_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_CPLD_CMD_LED5_ON@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rb4xx_cpld_write_cmd
	testl	%eax, %eax
	jne	LBB0_9
LBB0_8:
	movl	%ebx, (%r14)
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CPLD_CFG_nLED5,4,2             ## @CPLD_CFG_nLED5
	.comm	_CPLD_CMD_LED5_ON,4,2           ## @CPLD_CMD_LED5_ON
	.comm	_CPLD_CMD_LED5_OFF,4,2          ## @CPLD_CMD_LED5_OFF
	.no_dead_strip	___rb4xx_cpld_change_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __rb4xx_cpld_change_cfg
___rb4xx_cpld_change_cfg:               ; @__rb4xx_cpld_change_cfg
	.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	x21, x2
	mov	x19, x0
	ldr	w8, [x0]
	bic	w9, w8, w1
	orr	w20, w9, w2
	eor	w8, w20, w8
	tst	w8, #0xff
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_rb4xx_cpld_write_cfg
	cbnz	w0, LBB0_6
; %bb.2:
	ldr	w8, [x19]
	eor	w8, w8, w20
LBB0_3:
Lloh0:
	adrp	x9, _CPLD_CFG_nLED5@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CPLD_CFG_nLED5@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w8, w9
	b.eq	LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _CPLD_CMD_LED5_ON@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CPLD_CMD_LED5_ON@GOTPAGEOFF]
Lloh5:
	adrp	x9, _CPLD_CMD_LED5_OFF@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CPLD_CMD_LED5_OFF@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rb4xx_cpld_write_cmd
	cbnz	w0, LBB0_6
LBB0_5:
	mov	w0, #0
	str	w20, [x19]
LBB0_6:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CPLD_CFG_nLED5,4,2             ; @CPLD_CFG_nLED5
	.comm	_CPLD_CMD_LED5_ON,4,2           ; @CPLD_CMD_LED5_ON
	.comm	_CPLD_CMD_LED5_OFF,4,2          ; @CPLD_CMD_LED5_OFF
	.no_dead_strip	___rb4xx_cpld_change_cfg
.subsections_via_symbols
