	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uapi_disable_elm
_uapi_disable_elm:                      ## @uapi_disable_elm
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdi, %r15
	movq	(%rsi), %rax
	movq	_UAPI_SCOPE_OBJECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	leaq	-36(%rbp), %rcx
	movq	%r15, %rdi
	movl	%edx, %esi
	jmp	LBB0_2
LBB0_4:
	movq	_UAPI_SCOPE_METHOD@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_7
## %bb.5:
	movq	%rsi, %rbx
	movl	%r14d, %edi
	callq	_uapi_key_is_ioctl_method
	testq	%rax, %rax
	jne	LBB0_10
## %bb.6:
	movq	(%rbx), %rax
	movq	(%r12), %rcx
LBB0_7:
	cmpq	%rcx, %rax
	jne	LBB0_12
## %bb.8:
	movl	%r14d, %edi
	callq	_uapi_key_is_write_method
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movl	%r14d, %edi
	callq	_uapi_key_is_write_ex_method
	testq	%rax, %rax
	je	LBB0_12
LBB0_10:
	leaq	-36(%rbp), %rcx
	movq	%r15, %rdi
	movl	%r14d, %esi
LBB0_2:
	movl	$4, %edx
	callq	_uapi_add_get_elm
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	jmp	LBB0_13
LBB0_11:
	movl	$1, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_12:
	movl	$1, %edi
	callq	_WARN_ON
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UAPI_SCOPE_OBJECT,8,3          ## @UAPI_SCOPE_OBJECT
	.comm	_UAPI_SCOPE_METHOD,8,3          ## @UAPI_SCOPE_METHOD
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_uapi_disable_elm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uapi_disable_elm
_uapi_disable_elm:                      ; @uapi_disable_elm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _UAPI_SCOPE_OBJECT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UAPI_SCOPE_OBJECT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x2
	b	LBB0_9
LBB0_2:
	mov	x20, x3
Lloh3:
	adrp	x22, _UAPI_SCOPE_METHOD@GOTPAGE
Lloh4:
	ldr	x22, [x22, _UAPI_SCOPE_METHOD@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	mov	x21, x1
	mov	x0, x20
	bl	_uapi_key_is_ioctl_method
	cbnz	x0, LBB0_8
; %bb.4:
	ldr	x8, [x21]
	ldr	x9, [x22]
LBB0_5:
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.6:
	mov	x0, x20
	bl	_uapi_key_is_write_method
	cbnz	x0, LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_uapi_key_is_write_ex_method
	cbz	x0, LBB0_12
LBB0_8:
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x20
LBB0_9:
	mov	w2, #4
	bl	_uapi_add_get_elm
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_PTR_ERR
	b	LBB0_13
LBB0_11:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_13
LBB0_12:
	mov	w0, #1
	bl	_WARN_ON
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_UAPI_SCOPE_OBJECT,8,3          ; @UAPI_SCOPE_OBJECT
	.comm	_UAPI_SCOPE_METHOD,8,3          ; @UAPI_SCOPE_METHOD
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_uapi_disable_elm
.subsections_via_symbols
