	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function distribute_and_simplify_rtx
_distribute_and_simplify_rtx:           ## @distribute_and_simplify_rtx
	.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	%esi, %r13d
	movl	%edi, %ebx
	callq	_XEXP
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_ARITHMETIC_P
	testl	%eax, %eax
	je	LBB0_12
## %bb.1:
	movl	%ebx, %edi
	callq	_GET_MODE
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_GET_CODE
	movl	%eax, %r12d
	xorl	%esi, %esi
	testl	%r13d, %r13d
	sete	%sil
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_XEXP
	movl	%eax, %ebx
	movl	%r15d, %edi
	callq	_GET_CODE
	movl	%eax, %r14d
	movl	%r15d, %edi
	xorl	%esi, %esi
	callq	_XEXP
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	movl	$1, %esi
	callq	_XEXP
	movq	_AND@GOTPCREL(%rip), %rcx
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	cmpl	(%rcx), %r12d
	movl	%r14d, -64(%rbp)                ## 4-byte Spill
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	jne	LBB0_2
## %bb.3:
	movq	_XOR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r14d
	jne	LBB0_2
## %bb.4:
	movl	%ebx, %edi
	callq	_GET_CODE
	cltq
	movq	_NOT@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	jne	LBB0_5
## %bb.6:
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_XEXP
	movl	%eax, %ebx
	movq	_IOR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_7
LBB0_2:
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_7
LBB0_5:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
LBB0_7:
	movl	%r14d, %edi
	movl	%r15d, %esi
	testl	%r13d, %r13d
	je	LBB0_8
## %bb.9:
	movl	%ebx, %edx
	movl	%r12d, %ecx
	callq	_simplify_gen_binary
	movl	%eax, %r12d
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_10
LBB0_8:
	movl	%r12d, %edx
	movl	%ebx, %ecx
	callq	_simplify_gen_binary
	movl	%eax, %r12d
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
LBB0_10:
	callq	_simplify_gen_binary
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_simplify_gen_binary
	movl	%eax, %edi
	callq	_apply_distributive_law
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_GET_CODE
	cmpl	%r14d, %eax
	je	LBB0_12
## %bb.11:
	movq	_SET@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%ebx, %edi
	callq	_rtx_cost
	movq	%rax, %r15
	movl	(%r12), %esi
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_rtx_cost
	cmpq	%rax, %r15
	jl	LBB0_13
LBB0_12:
	movq	_NULL_RTX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NULL_RTX,4,2                   ## @NULL_RTX
	.comm	_AND,4,2                        ## @AND
	.comm	_XOR,4,2                        ## @XOR
	.comm	_NOT,8,3                        ## @NOT
	.comm	_IOR,4,2                        ## @IOR
	.comm	_SET,4,2                        ## @SET
	.no_dead_strip	_distribute_and_simplify_rtx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function distribute_and_simplify_rtx
_distribute_and_simplify_rtx:           ; @distribute_and_simplify_rtx
	.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	x23, x1
	mov	x19, x0
	bl	_XEXP
	mov	x25, x0
	bl	_ARITHMETIC_P
	cbz	w0, LBB0_9
; %bb.1:
	mov	x0, x19
	bl	_GET_MODE
	mov	x21, x0
	mov	x0, x19
	bl	_GET_CODE
	mov	x20, x0
	cmp	w23, #0
	cset	w1, eq
	mov	x0, x19
	bl	_XEXP
	mov	x24, x0
	mov	x0, x25
	bl	_GET_CODE
	mov	x22, x0
	mov	x0, x25
	mov	w1, #0
	bl	_XEXP
	mov	x26, x0
	mov	x0, x25
	mov	w1, #1
	bl	_XEXP
	mov	x25, x0
Lloh0:
	adrp	x8, _AND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AND@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _XOR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _XOR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w20, w8
	ccmp	w22, w9, #0, eq
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x24
	bl	_GET_CODE
Lloh6:
	adrp	x8, _NOT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NOT@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, w0, sxtw
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x24
	mov	w1, #0
	bl	_XEXP
	mov	x24, x0
Lloh9:
	adrp	x8, _IOR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IOR@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
LBB0_4:
	mov	x0, x20
	mov	x1, x21
	cbz	w23, LBB0_6
; %bb.5:
	mov	x2, x24
	mov	x3, x26
	bl	_simplify_gen_binary
	mov	x23, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x24
	mov	x3, x25
	b	LBB0_7
LBB0_6:
	mov	x2, x26
	mov	x3, x24
	bl	_simplify_gen_binary
	mov	x23, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x25
	mov	x3, x24
LBB0_7:
	bl	_simplify_gen_binary
	mov	x3, x0
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	bl	_simplify_gen_binary
	bl	_apply_distributive_law
	mov	x21, x0
	bl	_GET_CODE
	cmp	w0, w20
	b.eq	LBB0_9
; %bb.8:
Lloh12:
	adrp	x22, _SET@GOTPAGE
Lloh13:
	ldr	x22, [x22, _SET@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x21
	bl	_rtx_cost
	mov	x20, x0
	ldr	w1, [x22]
	mov	x0, x19
	bl	_rtx_cost
	cmp	x20, x0
	b.lt	LBB0_10
LBB0_9:
Lloh14:
	adrp	x8, _NULL_RTX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NULL_RTX@GOTPAGEOFF]
Lloh16:
	ldr	w21, [x8]
LBB0_10:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_NULL_RTX,4,2                   ; @NULL_RTX
	.comm	_AND,4,2                        ; @AND
	.comm	_XOR,4,2                        ; @XOR
	.comm	_NOT,8,3                        ; @NOT
	.comm	_IOR,4,2                        ; @IOR
	.comm	_SET,4,2                        ; @SET
	.no_dead_strip	_distribute_and_simplify_rtx
.subsections_via_symbols
