	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_regm
_write_regm:                            ## @write_regm
	.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	%ecx, %ebx
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %r14
	xorl	%eax, %eax
	cmpl	%esi, (%rdi)
	je	LBB0_2
## %bb.1:
	movl	16(%r14), %edi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_regmap_write
LBB0_2:
	cmpl	$255, %ebx
	je	LBB0_5
## %bb.3:
	leal	-6(%r15), %ecx
	cmpl	$2, %ecx
	ja	LBB0_5
## %bb.4:
	testl	%eax, %eax
	jne	LBB0_5
## %bb.6:
	movl	16(%r14), %edi
	leaq	-44(%rbp), %rdx
	movl	$1, %esi
	callq	_regmap_read
	movl	-44(%rbp), %edx
	movq	8(%r14), %rcx
	movl	%r15d, %esi
	movl	%edx, (%rcx,%rsi,4)
	jmp	LBB0_7
LBB0_5:
	movq	8(%r14), %rcx
LBB0_7:
	movl	%r15d, (%r14)
	movslq	%r15d, %r13
	notl	%ebx
	andl	(%rcx,%r13,4), %ebx
	orl	%r12d, %ebx
	movl	%ebx, (%rcx,%r13,4)
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	cmpl	$32, %r15d
	jne	LBB0_11
LBB0_10:
	movq	8(%r14), %rcx
	andl	$127, (%rcx,%r13,4)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	16(%r14), %edi
	movl	$1, %esi
	movl	%ebx, %edx
	callq	_regmap_write
	cmpl	$32, %r15d
	je	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_write_regm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_regm
_write_regm:                            ; @write_regm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	cmp	w22, #255
	b.ne	LBB0_3
	b	LBB0_6
LBB0_2:
	ldr	w0, [x19, #16]
	mov	w1, #0
	mov	x2, x20
	bl	_regmap_write
	cmp	w22, #255
	b.eq	LBB0_6
LBB0_3:
	sub	w8, w20, #6
	cmp	w8, #2
	b.hi	LBB0_6
; %bb.4:
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	w0, [x19, #16]
	add	x2, sp, #12
	mov	w1, #1
	bl	_regmap_read
	ldr	w9, [sp, #12]
	ldr	x8, [x19, #8]
	str	w9, [x8, w20, uxtw #2]
	b	LBB0_7
LBB0_6:
	ldr	x8, [x19, #8]
LBB0_7:
	str	w20, [x19]
	sbfiz	x9, x20, #2, #32
	ldr	w10, [x8, x9]
	bic	w10, w10, w22
	orr	w2, w10, w21
	str	w2, [x8, x9]
	cbz	w0, LBB0_11
; %bb.8:
	cmp	w20, #32
	b.ne	LBB0_10
LBB0_9:
	sxtw	x8, w20
	ldr	x9, [x19, #8]
	lsl	x8, x8, #2
	ldr	w10, [x9, x8]
	and	w10, w10, #0x7f
	str	w10, [x9, x8]
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_11:
	ldr	w0, [x19, #16]
	mov	w1, #1
	bl	_regmap_write
	cmp	w20, #32
	b.eq	LBB0_9
	b	LBB0_10
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_write_regm
.subsections_via_symbols
