	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_keyctl_set_reqkey_keyring      ## -- Begin function keyctl_set_reqkey_keyring
	.p2align	4, 0x90
_keyctl_set_reqkey_keyring:             ## @keyctl_set_reqkey_keyring
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	_jit_keyring@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_current_cred_xxx
	movl	%eax, %r14d
	cmpl	$134, %ebx
	jne	LBB0_2
## %bb.1:
	movslq	%r14d, %rax
	jmp	LBB0_15
LBB0_2:
	xorl	%eax, %eax
	callq	_prepare_creds
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	leal	-128(%rbx), %eax
	cmpl	$8, %eax
	ja	LBB0_13
## %bb.5:
	movl	$283, %ecx                      ## imm = 0x11B
	btl	%eax, %ecx
	jae	LBB0_6
LBB0_10:
	movl	%ebx, (%r15)
	movq	%r15, %rdi
	callq	_commit_creds
	movslq	%r14d, %rax
	jmp	LBB0_15
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
	jmp	LBB0_15
LBB0_6:
	cmpl	$2, %eax
	je	LBB0_11
## %bb.7:
	cmpl	$5, %eax
	jne	LBB0_13
## %bb.8:
	movq	%r15, %rdi
	callq	_install_process_keyring_to_cred
	testl	%eax, %eax
	jns	LBB0_10
## %bb.9:
	movl	%eax, %r12d
	movq	_EEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r12d, %eax
	je	LBB0_10
	jmp	LBB0_14
LBB0_11:
	movq	%r15, %rdi
	callq	_install_thread_keyring_to_cred
	testl	%eax, %eax
	jns	LBB0_10
## %bb.12:
	movl	%eax, %r12d
	jmp	LBB0_14
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_14:
	movq	%r15, %rdi
	callq	_abort_creds
	movslq	%r12d, %rax
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jit_keyring,4,2                ## @jit_keyring
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_keyctl_set_reqkey_keyring      ; -- Begin function keyctl_set_reqkey_keyring
	.p2align	2
_keyctl_set_reqkey_keyring:             ; @keyctl_set_reqkey_keyring
	.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	x21, x0
Lloh0:
	adrp	x8, _jit_keyring@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jit_keyring@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_current_cred_xxx
	mov	x20, x0
	cmp	w21, #134
	b.ne	LBB0_2
; %bb.1:
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	sxtw	x0, w20
	b	LBB0_15
LBB0_2:
	bl	_prepare_creds
	cbz	x0, LBB0_6
; %bb.3:
	mov	x19, x0
	sub	w8, w21, #128
	cmp	w8, #8
	b.hi	LBB0_13
; %bb.4:
	mov	w9, #1
	lsl	w9, w9, w8
	mov	w10, #283
	tst	w9, w10
	b.eq	LBB0_7
LBB0_5:
	str	w21, [x19]
	mov	x0, x19
	bl	_commit_creds
	sxtw	x0, w20
	b	LBB0_15
LBB0_6:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	neg	x0, x8
	b	LBB0_15
LBB0_7:
	cmp	w8, #2
	b.eq	LBB0_11
; %bb.8:
	cmp	w8, #5
	b.ne	LBB0_13
; %bb.9:
	mov	x0, x19
	bl	_install_process_keyring_to_cred
	tbz	w0, #31, LBB0_5
; %bb.10:
	mov	x22, x0
Lloh6:
	adrp	x8, _EEXIST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_5
	b	LBB0_14
LBB0_11:
	mov	x0, x19
	bl	_install_thread_keyring_to_cred
	tbz	w0, #31, LBB0_5
; %bb.12:
	mov	x22, x0
	b	LBB0_14
LBB0_13:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_14:
	mov	x0, x19
	bl	_abort_creds
	sxtw	x0, w22
LBB0_15:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_jit_keyring,4,2                ; @jit_keyring
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
