	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function match_ctxt
_match_ctxt:                            ## @match_ctxt
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	16(%rdi), %r14
	movq	40(%rdx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rax), %rax
	movq	_SC_KERNEL@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpq	(%rcx), %rax
	je	LBB0_14
LBB0_2:
	movl	36(%rbx), %edi
	movl	24(%r13), %esi
	movl	$4, %edx
	callq	_memcmp
	xorl	%r12d, %r12d
	testq	%rax, %rax
	jne	LBB0_14
## %bb.3:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %r14
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_current_uid
	movl	%eax, %edi
	callq	_generate_jkey
	cmpq	%rax, %r14
	jne	LBB0_14
## %bb.4:
	movq	8(%rbx), %rax
	cmpq	(%r13), %rax
	jne	LBB0_14
## %bb.5:
	movq	16(%rbx), %rax
	cmpq	8(%r13), %rax
	jne	LBB0_14
## %bb.6:
	movq	24(%rbx), %rax
	cmpq	16(%r13), %rax
	jne	LBB0_7
## %bb.9:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	32(%rbx), %edi
	movq	_HFI1_MAX_SHARED_CTXTS@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_bitmap_empty
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_14
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_14:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	32(%rbx), %edi
	movl	(%r13), %esi
	callq	_find_first_zero_bit
	cmpq	16(%rbx), %rax
	jge	LBB0_12
## %bb.13:
	movq	%rax, 8(%r15)
	movl	32(%rbx), %esi
	movq	%rax, %rdi
	callq	___set_bit
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, (%r15)
	movq	%rbx, %rdi
	callq	_hfi1_rcd_get
	movl	$1, %r12d
	jmp	LBB0_14
LBB0_12:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_SC_KERNEL,8,3                  ## @SC_KERNEL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HFI1_MAX_SHARED_CTXTS,4,2      ## @HFI1_MAX_SHARED_CTXTS
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_match_ctxt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function match_ctxt
_match_ctxt:                            ; @match_ctxt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x20, [x0, #16]
	ldr	x8, [x2, #40]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _SC_KERNEL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SC_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_9
LBB0_2:
	ldr	w0, [x19, #36]
	ldr	w1, [x22, #24]
	mov	w2, #4
	bl	_memcmp
	cbnz	x0, LBB0_9
; %bb.3:
	ldr	x23, [x19]
	bl	_current_uid
	bl	_generate_jkey
	cmp	x23, x0
	b.ne	LBB0_9
; %bb.4:
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.5:
	ldr	x8, [x19, #16]
	ldr	x9, [x22, #8]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.6:
	ldr	x8, [x19, #24]
	ldr	x9, [x22, #16]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.7:
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w0, [x19, #32]
Lloh3:
	adrp	x22, _HFI1_MAX_SHARED_CTXTS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _HFI1_MAX_SHARED_CTXTS@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_bitmap_empty
	cbz	x0, LBB0_13
; %bb.8:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_13:
	ldr	w0, [x19, #32]
	ldr	w1, [x22]
	bl	_find_first_zero_bit
	ldr	x8, [x19, #16]
	cmp	x0, x8
	b.ge	LBB0_15
; %bb.14:
	str	x0, [x21, #8]
	ldr	w1, [x19, #32]
	bl	___set_bit
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	str	x19, [x21]
	mov	x0, x19
	bl	_hfi1_rcd_get
	mov	w0, #1
	b	LBB0_10
LBB0_15:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh7:
	adrp	x8, _EBUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SC_KERNEL,8,3                  ; @SC_KERNEL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HFI1_MAX_SHARED_CTXTS,4,2      ; @HFI1_MAX_SHARED_CTXTS
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_match_ctxt
.subsections_via_symbols
