	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max_set_input_unlocked
_max_set_input_unlocked:                ## @max_set_input_unlocked
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	cmpl	$4, %esi
	jl	LBB0_1
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movq	(%rdi), %rax
	movq	8(%rax), %r9
	movq	8(%r9), %r8
	movl	(%rax), %ecx
	movl	%ecx, %edx
	andl	$1, %edx
	shlq	$4, %rdx
	movl	(%r8,%rdx), %r10d
	cmpl	%esi, %r10d
	je	LBB0_3
## %bb.2:
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %rax
	movq	16(%r9), %rcx
	leaq	(%r8,%rdx), %r11
	movq	(%rcx), %rbx
	movq	(%r9), %rcx
	movq	(%rbx,%rcx,8), %r9
	andl	$3, %r10d
	movl	(%r9,%r10,4), %ecx
	movl	%ecx, %ebx
	andl	%eax, %ebx
	notl	%eax
	andl	%ecx, %eax
	movl	%eax, (%r9,%r10,4)
	movl	%esi, (%r11)
	movl	%esi, %eax
	andl	$3, %eax
	orl	%ebx, (%r9,%rax,4)
LBB0_3:
	movq	8(%r8,%rdx), %rax
	popq	%rbx
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_max_set_input_unlocked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max_set_input_unlocked
_max_set_input_unlocked:                ; @max_set_input_unlocked
	.cfi_startproc
; %bb.0:
	cmp	w1, #4
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_2:
	ldr	x8, [x0]
	ldr	x9, [x8, #8]
	ldr	x10, [x9, #8]
	ldr	w11, [x8]
	and	x8, x11, #0x1
	add	x8, x10, x8, lsl #4
	ldr	w10, [x8]
	cmp	w10, w1
	b.eq	LBB0_4
; %bb.3:
	ldr	x12, [x9, #16]
	mov	w13, #1
	lsl	x11, x13, x11
	ldr	x12, [x12]
	ldr	x9, [x9]
	ldr	x9, [x12, x9, lsl #3]
	and	x10, x10, #0x3
	lsl	x10, x10, #2
	ldr	w12, [x9, x10]
	and	w13, w12, w11
	bic	w11, w12, w11
	str	w11, [x9, x10]
	str	w1, [x8]
	and	w10, w1, #0x3
	lsl	x10, x10, #2
	ldr	w11, [x9, x10]
	orr	w11, w11, w13
	str	w11, [x9, x10]
LBB0_4:
	ldr	x2, [x8, #8]
	br	x2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_max_set_input_unlocked
.subsections_via_symbols
