	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reg_rules_intersect
_reg_rules_intersect:                   ## @reg_rules_intersect
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	24(%rdi), %rdi
	movq	24(%rsi), %rsi
	callq	_max
	movq	%rax, 24(%rbx)
	movq	32(%r14), %rdi
	movq	32(%r15), %rsi
	callq	_min
	movq	%rax, 32(%rbx)
	movq	40(%r14), %rdi
	movq	40(%r15), %rsi
	callq	_min
	movq	32(%rbx), %rcx
	subq	24(%rbx), %rcx
	cmpq	%rax, %rcx
	cmovgeq	%rax, %rcx
	movq	%rcx, 40(%rbx)
	movq	8(%r14), %rdi
	movq	8(%r15), %rsi
	callq	_min
	movq	%rax, 8(%rbx)
	movq	16(%r14), %rdi
	movq	16(%r15), %rsi
	callq	_min
	movq	%rax, 16(%rbx)
	movl	(%r15), %eax
	orl	(%r14), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_is_valid_reg_rule
	movq	_EINVAL@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	xorl	%edx, %edx
	testl	%eax, %eax
	cmovnel	%edx, %ecx
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_reg_rules_intersect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reg_rules_intersect
_reg_rules_intersect:                   ; @reg_rules_intersect
	.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, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x0, [x0, #24]
	ldr	x1, [x1, #24]
	bl	_max
	str	x0, [x19, #24]
	ldr	x0, [x21, #32]
	ldr	x1, [x20, #32]
	bl	_min
	str	x0, [x19, #32]
	ldr	x0, [x21, #40]
	ldr	x1, [x20, #40]
	bl	_min
	ldp	x9, x8, [x19, #24]
	sub	x8, x8, x9
	cmp	x8, x0
	csel	x8, x8, x0, lt
	str	x8, [x19, #40]
	ldr	x0, [x21, #8]
	ldr	x1, [x20, #8]
	bl	_min
	str	x0, [x19, #8]
	ldr	x0, [x21, #16]
	ldr	x1, [x20, #16]
	bl	_min
	str	x0, [x19, #16]
	ldr	w8, [x21]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x19]
	mov	x0, x19
	bl	_is_valid_reg_rule
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w0, wzr, w8, ne
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_reg_rules_intersect
.subsections_via_symbols
