	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uapi_create_write
_uapi_create_write:                     ## @uapi_create_write
	.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
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, %ebx
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	cmpq	$0, (%rdx)
	movl	24(%rdx), %edi
	je	LBB0_2
## %bb.1:
	callq	_uapi_key_write_ex_method
	jmp	LBB0_3
LBB0_2:
	callq	_uapi_key_write_method
LBB0_3:
	movl	%eax, %r14d
	orl	%ebx, %r14d
	leaq	-44(%rbp), %rcx
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	$40, %edx
	callq	_uapi_add_get_elm
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r13, %rdi
	callq	_PTR_ERR
	jmp	LBB0_14
LBB0_5:
	cmpl	$0, -44(%rbp)
	je	LBB0_6
## %bb.7:
	movq	(%r15), %rax
	xorl	%edi, %edi
	cmpq	(%r13), %rax
	setne	%dil
	jmp	LBB0_8
LBB0_6:
	xorl	%edi, %edi
LBB0_8:
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_10:
	movq	(%r15), %rax
	movq	%rax, (%r13)
	movq	32(%r15), %rcx
	movq	%rcx, 32(%r13)
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movl	(%r12,%rcx,4), %ebx
	movl	24(%r15), %edi
	callq	_BIT_ULL
	xorl	%ecx, %ecx
	testl	%ebx, %eax
	sete	%cl
	movl	%ecx, 8(%r13)
	cmpq	$0, (%r15)
	jne	LBB0_13
## %bb.11:
	cmpq	$0, 32(%r15)
	je	LBB0_13
## %bb.12:
	movups	8(%r15), %xmm0
	movups	%xmm0, 12(%r13)
LBB0_13:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	xorl	%eax, %eax
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_uapi_create_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uapi_create_write
_uapi_create_write:                     ; @uapi_create_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x4
	mov	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
	ldr	x8, [x2]
	ldr	w0, [x2, #24]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_uapi_key_write_ex_method
	b	LBB0_3
LBB0_2:
	bl	_uapi_key_write_method
LBB0_3:
	orr	w22, w0, w22
	add	x3, sp, #12
	mov	x0, x23
	mov	x1, x22
	mov	w2, #40
	bl	_uapi_add_get_elm
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x23
	bl	_PTR_ERR
	b	LBB0_13
LBB0_5:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_8
; %bb.6:
	ldr	x8, [x20]
	ldr	x9, [x23]
	cmp	x8, x9
	cset	w0, ne
	bl	_WARN_ON
	cbz	x0, LBB0_9
LBB0_7:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_8:
	mov	w0, #0
	bl	_WARN_ON
	cbnz	x0, LBB0_7
LBB0_9:
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w9, eq
	str	x8, [x23]
	ldr	x8, [x20, #32]
	str	x8, [x23, #32]
	ldr	w21, [x21, w9, uxtw #2]
	ldr	w0, [x20, #24]
	bl	_BIT_ULL
	tst	w0, w21
	cset	w8, eq
	str	w8, [x23, #8]
	ldr	x8, [x20]
	cbnz	x8, LBB0_12
; %bb.10:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_12
; %bb.11:
	ldur	q0, [x20, #8]
	stur	q0, [x23, #12]
LBB0_12:
	mov	w0, #0
	str	w22, [x19]
LBB0_13:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_uapi_create_write
.subsections_via_symbols
