	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function optimize_subexps
_optimize_subexps:                      ## @optimize_subexps
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rsi), %rax
	movq	_OP_BACK_REF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.2:
	movslq	8(%rsi), %rax
	movl	(%rcx,%rax,4), %ecx
	movl	$1, %eax
	shll	%cl, %eax
	movl	%ecx, 8(%rsi)
	orl	%eax, 8(%rdi)
	jmp	LBB0_10
LBB0_3:
	movq	_SUBEXP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.4:
	movq	16(%rsi), %rdx
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.5:
	cmpq	%rax, 16(%rdx)
	jne	LBB0_10
## %bb.6:
	movslq	24(%rdx), %rcx
	movq	8(%rdx), %rax
	movq	%rax, 16(%rsi)
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rsi, (%rax)
LBB0_8:
	movq	(%rdi), %rax
	movslq	8(%rsi), %rdx
	movl	(%rax,%rdx,4), %edx
	movl	%edx, (%rax,%rcx,4)
	movq	_BITSET_WORD_BITS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jge	LBB0_10
## %bb.9:
	movl	$-2, %eax
                                        ## kill: def $cl killed $cl killed $rcx
	roll	%cl, %eax
	andl	%eax, 8(%rdi)
LBB0_10:
	movq	_REG_NOERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OP_BACK_REF,8,3                ## @OP_BACK_REF
	.comm	_SUBEXP,8,3                     ## @SUBEXP
	.comm	_BITSET_WORD_BITS,4,2           ## @BITSET_WORD_BITS
	.comm	_REG_NOERROR,4,2                ## @REG_NOERROR
	.no_dead_strip	_optimize_subexps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function optimize_subexps
_optimize_subexps:                      ; @optimize_subexps
	.cfi_startproc
; %bb.0:
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _OP_BACK_REF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OP_BACK_REF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	x9, [x0]
	cbz	x9, LBB0_4
; %bb.2:
	ldrsw	x8, [x1, #8]
	ldr	w8, [x9, x8, lsl #2]
	str	w8, [x1, #8]
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	w9, [x0, #8]
	orr	w8, w9, w8
LBB0_3:
	str	w8, [x0, #8]
	b	LBB0_11
LBB0_4:
Lloh3:
	adrp	x9, _SUBEXP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SUBEXP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.5:
	ldr	x9, [x1, #16]
	cbz	x9, LBB0_11
; %bb.6:
	ldr	x10, [x9, #16]
	cmp	x10, x8
	b.ne	LBB0_11
; %bb.7:
	ldrsw	x8, [x9, #24]
	ldr	x9, [x9, #8]
	str	x9, [x1, #16]
	cbz	x9, LBB0_9
; %bb.8:
	str	x1, [x9]
LBB0_9:
	ldr	x9, [x0]
	ldrsw	x10, [x1, #8]
	ldr	w10, [x9, x10, lsl #2]
	str	w10, [x9, x8, lsl #2]
Lloh6:
	adrp	x9, _BITSET_WORD_BITS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BITSET_WORD_BITS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_11
; %bb.10:
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	w9, [x0, #8]
	bic	w8, w9, w8
	b	LBB0_3
LBB0_11:
Lloh9:
	adrp	x8, _REG_NOERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_NOERROR@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_OP_BACK_REF,8,3                ; @OP_BACK_REF
	.comm	_SUBEXP,8,3                     ; @SUBEXP
	.comm	_BITSET_WORD_BITS,4,2           ; @BITSET_WORD_BITS
	.comm	_REG_NOERROR,4,2                ; @REG_NOERROR
	.no_dead_strip	_optimize_subexps
.subsections_via_symbols
