	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function WriteRegBit
_WriteRegBit:                           ## @WriteRegBit
	.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, %ebx
	movl	$-1, %r12d
	cmpb	$7, %bl
	ja	LBB0_8
## %bb.1:
	movq	_StartAddr@GOTPCREL(%rip), %rax
	cmpb	%sil, (%rax)
	ja	LBB0_8
## %bb.2:
	movq	_EndAddr@GOTPCREL(%rip), %rax
	cmpb	%sil, (%rax)
	jb	LBB0_8
## %bb.3:
	movl	%ecx, %r13d
	movl	%edi, %r14d
	movzbl	%sil, %r15d
	movl	%r15d, %esi
	callq	_ReadReg
	cmpb	$1, %r13b
	je	LBB0_6
## %bb.4:
	testb	%r13b, %r13b
	jne	LBB0_8
## %bb.5:
	movzbl	%bl, %esi
	movl	%eax, %edi
	callq	_ResetBit
	jmp	LBB0_7
LBB0_6:
	movzbl	%bl, %esi
	movl	%eax, %edi
	callq	_SetBit
LBB0_7:
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_WriteReg
	xorl	%r12d, %r12d
LBB0_8:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_StartAddr,1,0                  ## @StartAddr
	.comm	_EndAddr,1,0                    ## @EndAddr
	.no_dead_strip	_WriteRegBit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function WriteRegBit
_WriteRegBit:                           ; @WriteRegBit
	.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
	cmp	w2, #7
	b.hi	LBB0_5
; %bb.1:
	mov	x19, x1
Lloh0:
	adrp	x8, _StartAddr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _StartAddr@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh2:
	adrp	x9, _EndAddr@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EndAddr@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w8, w1
	ccmp	w9, w1, #0, ls
	b.lo	LBB0_5
; %bb.2:
	mov	x22, x3
	mov	x21, x2
	mov	x20, x0
	mov	x1, x19
	bl	_ReadReg
	cmp	w22, #1
	b.eq	LBB0_7
; %bb.3:
	cbnz	w22, LBB0_5
; %bb.4:
	mov	x1, x21
	bl	_ResetBit
	b	LBB0_8
LBB0_5:
	mov	w0, #-1
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
LBB0_7:
	mov	x1, x21
	bl	_SetBit
LBB0_8:
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_WriteReg
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_StartAddr,1,0                  ; @StartAddr
	.comm	_EndAddr,1,0                    ; @EndAddr
	.no_dead_strip	_WriteRegBit
.subsections_via_symbols
