	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function MXL_ControlWrite_Group
_MXL_ControlWrite_Group:                ## @MXL_ControlWrite_Group
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, %r15
	movq	(%rdi), %r12
	xorl	%eax, %eax
	cmpl	$2, %ecx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_11
## %bb.1:
	cmpl	$1, %ecx
	jne	LBB0_23
## %bb.2:
	movl	(%r12), %r8d
	testl	%r8d, %r8d
	jle	LBB0_23
## %bb.3:
	movq	32(%r12), %rax
	xorl	%edx, %edx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rdx
	movslq	%r8d, %rcx
	cmpq	%rcx, %rdx
	jge	LBB0_20
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	%rdx, %rbx
	shlq	$5, %rbx
	cmpl	%esi, (%rax,%rbx)
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movb	4(%rax,%rbx), %cl
	movl	$1, %edi
	shll	%cl, %edi
	cmpl	%r14d, %edi
	jle	LBB0_22
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, 4(%rax,%rbx)
	jle	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%ecx, %ecx
	btl	%r13d, %r14d
	setb	%cl
	movq	8(%rax,%rbx), %rdx
	movl	%ecx, (%rdx,%r13,4)
	movq	16(%rax,%rbx), %rdx
	movq	24(%rax,%rbx), %rax
	movq	(%rax,%r13,8), %rsi
	movq	(%rdx,%r13,8), %rdx
	movq	%r15, %rdi
	callq	_MXL_RegWriteBit
	incq	%r13
	movq	32(%r12), %rax
	movslq	4(%rax,%rbx), %rcx
	cmpq	%rcx, %r13
	jl	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r12), %r8d
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_4
LBB0_11:
	movl	4(%r12), %edx
	testl	%edx, %edx
	jle	LBB0_23
## %bb.12:
	movq	24(%r12), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%rbx
	movslq	%edx, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_20
LBB0_14:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
	movq	%rbx, %r13
	shlq	$5, %r13
	cmpl	%esi, (%rax,%r13)
	jne	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movb	4(%rax,%r13), %cl
	movl	$1, %edi
	shll	%cl, %edi
	cmpl	%r14d, %edi
	jle	LBB0_22
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	$0, 4(%rax,%r13)
	jle	LBB0_13
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%ecx, %ecx
	btl	%ebx, %r14d
	setb	%cl
	movq	8(%rax,%r13), %rdx
	movl	%ecx, (%rdx,%rbx,4)
	movq	16(%rax,%r13), %rdx
	movq	24(%rax,%r13), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	(%rdx,%rbx,8), %rdx
	movq	%r15, %rdi
	callq	_MXL_RegWriteBit
	incq	%rbx
	movq	24(%r12), %rax
	movslq	4(%rax,%r13), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	4(%r12), %edx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_20:
	xorl	%eax, %eax
	jmp	LBB0_23
LBB0_22:
	movl	$-1, %eax
LBB0_23:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_MXL_ControlWrite_Group
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function MXL_ControlWrite_Group
_MXL_ControlWrite_Group:                ; @MXL_ControlWrite_Group
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x0]
	cmp	w3, #2
	b.eq	LBB0_11
; %bb.1:
	cmp	w3, #1
	b.ne	LBB0_20
; %bb.2:
	ldr	w9, [x22]
	cmp	w9, #1
	b.lt	LBB0_20
; %bb.3:
	mov	x23, #0
	ldr	x8, [x22, #32]
	mov	w24, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	cmp	x23, w9, sxtw
	b.ge	LBB0_20
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	lsl	x25, x23, #5
	ldr	w10, [x8, x25]
	cmp	w10, w20
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x10, x8, x23, lsl #5
	ldr	w10, [x10, #4]
	lsl	w10, w24, w10
	cmp	w10, w19
	b.le	LBB0_22
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x10, x8, x23, lsl #5
	ldr	w10, [x10, #4]
	cmp	w10, #1
	b.lt	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x26, #0
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsr	w9, w19, w26
	and	w3, w9, #0x1
	add	x8, x8, x25
	ldp	x9, x10, [x8, #8]
	str	w3, [x9, x26, lsl #2]
	ldr	x8, [x8, #24]
	lsl	x9, x26, #3
	ldr	x1, [x8, x9]
	ldr	x2, [x10, x9]
	mov	x0, x21
	bl	_MXL_RegWriteBit
	add	x26, x26, #1
	ldr	x8, [x22, #32]
	add	x9, x8, x25
	ldrsw	x9, [x9, #4]
	cmp	x26, x9
	b.lt	LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x22]
	b	LBB0_4
LBB0_11:
	ldr	w9, [x22, #4]
	cmp	w9, #1
	b.lt	LBB0_20
; %bb.12:
	mov	x23, #0
	ldr	x8, [x22, #24]
	mov	w24, #1
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x23, x23, #1
	cmp	x23, w9, sxtw
	b.ge	LBB0_20
LBB0_14:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
	lsl	x25, x23, #5
	ldr	w10, [x8, x25]
	cmp	w10, w20
	b.ne	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x10, x8, x23, lsl #5
	ldr	w10, [x10, #4]
	lsl	w10, w24, w10
	cmp	w10, w19
	b.le	LBB0_22
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x10, x8, x23, lsl #5
	ldr	w10, [x10, #4]
	cmp	w10, #1
	b.lt	LBB0_13
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x26, #0
LBB0_18:                                ;   Parent Loop BB0_14 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsr	w9, w19, w26
	and	w3, w9, #0x1
	add	x8, x8, x25
	ldp	x9, x10, [x8, #8]
	str	w3, [x9, x26, lsl #2]
	ldr	x8, [x8, #24]
	lsl	x9, x26, #3
	ldr	x1, [x8, x9]
	ldr	x2, [x10, x9]
	mov	x0, x21
	bl	_MXL_RegWriteBit
	add	x26, x26, #1
	ldr	x8, [x22, #24]
	add	x9, x8, x25
	ldrsw	x9, [x9, #4]
	cmp	x26, x9
	b.lt	LBB0_18
; %bb.19:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w9, [x22, #4]
	b	LBB0_13
LBB0_20:
	mov	w0, #0
LBB0_21:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_22:
	mov	w0, #-1
	b	LBB0_21
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_MXL_ControlWrite_Group
.subsections_via_symbols
