	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function halbtc_bitmask_write_1byte
_halbtc_bitmask_write_1byte:            ## @halbtc_bitmask_write_1byte
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%esi, %r14d
	movq	(%rdi), %r15
	movq	_MASKDWORD@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	je	LBB0_10
## %bb.1:
	movl	%edx, %r12d
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_rtl_read_byte
	xorl	%ecx, %ecx
	testb	$1, %r12b
	jne	LBB0_9
## %bb.2:
	movl	$1, %ecx
	testb	$2, %r12b
	jne	LBB0_9
## %bb.3:
	movl	$2, %ecx
	testb	$4, %r12b
	jne	LBB0_9
## %bb.4:
	movl	$3, %ecx
	testb	$8, %r12b
	jne	LBB0_9
## %bb.5:
	movl	$4, %ecx
	testb	$16, %r12b
	jne	LBB0_9
## %bb.6:
	movl	$5, %ecx
	testb	$32, %r12b
	jne	LBB0_9
## %bb.7:
	movl	$6, %ecx
	testb	$64, %r12b
	jne	LBB0_9
## %bb.8:
	movl	%r12d, %edx
	andl	$128, %edx
	xorl	%ecx, %ecx
	cmpl	$1, %edx
	adcl	$7, %ecx
LBB0_9:
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	xorl	%eax, %ebx
	andl	%r12d, %ebx
	xorl	%eax, %ebx
LBB0_10:
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl_write_byte                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MASKDWORD,4,2                  ## @MASKDWORD
	.no_dead_strip	_halbtc_bitmask_write_1byte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function halbtc_bitmask_write_1byte
_halbtc_bitmask_write_1byte:            ; @halbtc_bitmask_write_1byte
	.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	x19, x3
	mov	x20, x1
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _MASKDWORD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MASKDWORD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.eq	LBB0_2
; %bb.1:
	mov	x22, x2
	mov	x0, x21
	mov	x1, x20
	bl	_rtl_read_byte
	mov	w8, #1
	mov	w9, #2
	mov	w10, #3
	mov	w11, #4
	mov	w12, #5
	mov	w13, #6
	tst	w22, #0x80
	mov	w14, #7
	cinc	w14, w14, eq
	tst	w22, #0x40
	csel	w13, w13, w14, ne
	tst	w22, #0x20
	csel	w12, w12, w13, ne
	tst	w22, #0x10
	csel	w11, w11, w12, ne
	tst	w22, #0x8
	csel	w10, w10, w11, ne
	tst	w22, #0x4
	csel	w9, w9, w10, ne
	tst	w22, #0x2
	csel	w8, w8, w9, ne
	tst	w22, #0x1
	csel	w8, wzr, w8, ne
	bic	w9, w0, w22
	lsl	w8, w19, w8
	and	w8, w8, w22
	orr	w19, w8, w9
LBB0_2:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	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
	b	_rtl_write_byte
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MASKDWORD,4,2                  ; @MASKDWORD
	.no_dead_strip	_halbtc_bitmask_write_1byte
.subsections_via_symbols
