	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function match_mux
_match_mux:                             ## @match_mux
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_LTQ_MAX_MUX@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	testl	%r9d, %r9d
	jle	LBB0_1
## %bb.2:
	movq	(%rdi), %r10
	movb	$1, %r8b
	xorl	%eax, %eax
	movl	$0, %ecx
	cmpl	%esi, (%r10)
	je	LBB0_7
## %bb.3:
	leaq	-1(%r9), %rdi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, %rdi
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	1(%rdx), %rcx
	cmpl	%esi, 4(%r10,%rdx,4)
	movq	%rcx, %rdx
	jne	LBB0_5
## %bb.9:
	cmpq	%r9, %rcx
	setb	%r8b
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_6:
	incq	%rdx
	cmpq	%r9, %rdx
	setb	%r8b
	movl	%r9d, %ecx
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rdx
	subl	(%rdx), %eax
	testb	%r8b, %r8b
	cmovnel	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LTQ_MAX_MUX,4,2                ## @LTQ_MAX_MUX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_match_mux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function match_mux
_match_mux:                             ; @match_mux
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _LTQ_MAX_MUX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LTQ_MAX_MUX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #0
	b.le	LBB0_3
; %bb.1:
	ldr	x9, [x0]
	ldr	w10, [x9]
	cmp	w10, w1
	b.ne	LBB0_4
; %bb.2:
	mov	w9, #0
	mov	w10, #1
	b	LBB0_9
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_4:
	mov	w10, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x8, x10
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w11, [x9, x10, lsl #2]
	add	x10, x10, #1
	cmp	w11, w1
	b.ne	LBB0_5
; %bb.7:
	sub	x9, x10, #1
	cmp	x9, x8
	cset	w10, lo
	b	LBB0_9
LBB0_8:
	cmp	x10, x8
	cset	w10, lo
	mov	x9, x8
LBB0_9:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w10, #0
	csneg	w0, w9, w8, ne
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_LTQ_MAX_MUX,4,2                ; @LTQ_MAX_MUX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_match_mux
.subsections_via_symbols
