	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_mkey
_check_mkey:                            ## @check_mkey
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rdi), %esi
	testl	%esi, %esi
	je	LBB0_3
## %bb.1:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_time_after_eq
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	$0, (%r15)
LBB0_3:
	movq	_IB_MAD_IGNORE_MKEY@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
LBB0_6:
	xorl	%eax, %eax
	cmpl	$0, (%r15)
	je	LBB0_18
## %bb.7:
	movl	8(%r14), %ecx
	addl	$-128, %ecx
	cmpl	$2, %ecx
	ja	LBB0_18
## %bb.8:
	movl	$0, (%r15)
	jmp	LBB0_18
LBB0_4:
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	cmpq	(%r14), %rax
	je	LBB0_6
## %bb.9:
	movl	8(%r14), %ecx
	leal	-128(%rcx), %eax
	cmpl	$2, %eax
	jae	LBB0_10
LBB0_12:
	movl	16(%r15), %eax
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	je	LBB0_14
## %bb.13:
	incl	%eax
	movl	%eax, 16(%r15)
LBB0_14:
	cmpl	$0, (%r15)
	jne	LBB0_17
## %bb.15:
	movl	20(%r15), %eax
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movq	_HZ@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	movq	_jiffies@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	movl	%eax, (%r15)
LBB0_17:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_qib_bad_mkey
	movl	$1, %eax
	jmp	LBB0_18
LBB0_10:
	xorl	%eax, %eax
	cmpl	$130, %ecx
	jne	LBB0_18
## %bb.11:
	cmpl	$2, 4(%r15)
	jge	LBB0_12
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_IB_MAD_IGNORE_MKEY,4,2         ## @IB_MAD_IGNORE_MKEY
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_check_mkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_mkey
_check_mkey:                            ; @check_mkey
	.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, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w1, [x0]
	cbz	w1, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_time_after_eq
	cbz	x0, LBB0_3
; %bb.2:
	str	xzr, [x19]
LBB0_3:
Lloh3:
	adrp	x8, _IB_MAD_IGNORE_MKEY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_MAD_IGNORE_MKEY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_7
LBB0_4:
	ldr	w8, [x19]
	cbz	w8, LBB0_18
; %bb.5:
	ldr	w8, [x20, #8]
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_18
; %bb.6:
	mov	w0, #0
	str	wzr, [x19]
	b	LBB0_19
LBB0_7:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.8:
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.9:
	ldr	w8, [x20, #8]
	sub	w9, w8, #128
	cmp	w9, #2
	b.hs	LBB0_16
LBB0_10:
	ldr	w8, [x19, #16]
	mov	w9, #65535
	cmp	w8, w9
	b.eq	LBB0_12
; %bb.11:
	add	w8, w8, #1
	str	w8, [x19, #16]
LBB0_12:
	ldr	w8, [x19]
	cbnz	w8, LBB0_15
; %bb.13:
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_15
; %bb.14:
Lloh6:
	adrp	x9, _jiffies@GOTPAGE
Lloh7:
	ldr	x9, [x9, _jiffies@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _HZ@GOTPAGE
Lloh10:
	ldr	x10, [x10, _HZ@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	madd	w8, w10, w8, w9
	str	w8, [x19]
LBB0_15:
	mov	x0, x19
	mov	x1, x20
	bl	_qib_bad_mkey
	mov	w0, #1
	b	LBB0_19
LBB0_16:
	cmp	w8, #130
	b.ne	LBB0_18
; %bb.17:
	ldr	w8, [x19, #4]
	cmp	w8, #2
	b.ge	LBB0_10
LBB0_18:
	mov	w0, #0
LBB0_19:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_IB_MAD_IGNORE_MKEY,4,2         ; @IB_MAD_IGNORE_MKEY
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_check_mkey
.subsections_via_symbols
