	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_mad_enforce_security        ## -- Begin function ib_mad_enforce_security
	.p2align	4, 0x90
_ib_mad_enforce_security:               ## @ib_mad_enforce_security
	.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	%esi, %r14d
	movq	%rdi, %rbx
	movl	4(%rdi), %esi
	movl	8(%rdi), %edi
	callq	_rdma_protocol_ib
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movq	_IB_QPT_SMI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	movl	12(%rbx), %edi
	callq	_READ_ONCE
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_EACCES@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	8(%rbx), %edi
	movl	(%rbx), %ecx
	movl	4(%rbx), %esi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ib_security_pkey_access        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QPT_SMI,8,3                 ## @IB_QPT_SMI
	.comm	_EACCES,4,2                     ## @EACCES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_mad_enforce_security        ; -- Begin function ib_mad_enforce_security
	.p2align	2
_ib_mad_enforce_security:               ; @ib_mad_enforce_security
	.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, x1
	mov	x20, x0
	ldr	w0, [x0, #8]
	ldr	w1, [x20, #4]
	bl	_rdma_protocol_ib
	cbz	w0, LBB0_6
; %bb.1:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _IB_QPT_SMI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_QPT_SMI@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x20, #12]
	bl	_READ_ONCE
	cbz	w0, LBB0_5
; %bb.3:
	mov	w0, #0
	b	LBB0_6
LBB0_4:
	ldp	w1, w0, [x20, #4]
	ldr	w3, [x20]
	mov	x2, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ib_security_pkey_access
LBB0_5:
Lloh3:
	adrp	x8, _EACCES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QPT_SMI,8,3                 ; @IB_QPT_SMI
	.comm	_EACCES,4,2                     ; @EACCES
.subsections_via_symbols
