	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function generate_jkey
_generate_jkey:                         ## @generate_jkey
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_current_user_ns
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_from_kuid
	movl	%eax, %ebx
	movq	_HFI1_JKEY_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_CAP_SYS_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_HFI1_ADMIN_JKEY_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	andl	%eax, %ebx
	jmp	LBB0_4
LBB0_2:
	cmpl	$63, %ebx
	jg	LBB0_4
## %bb.3:
	movq	_HFI1_JKEY_WIDTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	decq	%rdi
	callq	_BIT
	orl	%eax, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HFI1_JKEY_MASK,4,2             ## @HFI1_JKEY_MASK
	.comm	_CAP_SYS_ADMIN,4,2              ## @CAP_SYS_ADMIN
	.comm	_HFI1_ADMIN_JKEY_RANGE,4,2      ## @HFI1_ADMIN_JKEY_RANGE
	.comm	_HFI1_JKEY_WIDTH,8,3            ## @HFI1_JKEY_WIDTH
	.no_dead_strip	_generate_jkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function generate_jkey
_generate_jkey:                         ; @generate_jkey
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_current_user_ns
	mov	x1, x19
	bl	_from_kuid
Lloh0:
	adrp	x8, _HFI1_JKEY_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HFI1_JKEY_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w19, w8, w0
Lloh3:
	adrp	x8, _CAP_SYS_ADMIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CAP_SYS_ADMIN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_capable
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _HFI1_ADMIN_JKEY_RANGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HFI1_ADMIN_JKEY_RANGE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	sub	w8, w8, #1
	and	w19, w8, w19
	b	LBB0_4
LBB0_2:
	cmp	w19, #63
	b.gt	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _HFI1_JKEY_WIDTH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HFI1_JKEY_WIDTH@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	sub	x0, x8, #1
	bl	_BIT
	orr	w19, w0, w19
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HFI1_JKEY_MASK,4,2             ; @HFI1_JKEY_MASK
	.comm	_CAP_SYS_ADMIN,4,2              ; @CAP_SYS_ADMIN
	.comm	_HFI1_ADMIN_JKEY_RANGE,4,2      ; @HFI1_ADMIN_JKEY_RANGE
	.comm	_HFI1_JKEY_WIDTH,8,3            ; @HFI1_JKEY_WIDTH
	.no_dead_strip	_generate_jkey
.subsections_via_symbols
