	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_QUERY_MPT_wrapper         ## -- Begin function mlx4_QUERY_MPT_wrapper
	.p2align	4, 0x90
_mlx4_QUERY_MPT_wrapper:                ## @mlx4_QUERY_MPT_wrapper
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	(%rdx), %ebx
	callq	_mpt_mask
	movl	%eax, %r13d
	andl	%ebx, %r13d
	movq	_RES_MPT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-56(%rbp), %r8
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	callq	_get_res
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %rax
	movq	(%rax), %rax
	movq	_RES_MPT_MAPPED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_6
## %bb.2:
	movq	%r15, %rdi
	callq	_mlx4_priv
	movq	-56(%rbp), %rcx
	movl	8(%rcx), %esi
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	xorl	%edx, %edx
	callq	_mlx4_table_find
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.5:
	movq	%rax, %rsi
	movl	$4, %edx
	callq	_memcpy
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_6:
	movq	_RES_MPT_HW@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_8
## %bb.7:
	movq	%r14, %r8
	movq	%r15, %rdi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	movq	%r12, %rdx
	callq	_mlx4_DMA_wrapper
	movl	%eax, %ebx
	movq	_RES_MPT@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_9:
	subl	(%rax), %ebx
LBB0_10:
	movq	_RES_MPT@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %r14d                ## 4-byte Reload
LBB0_11:
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	callq	_put_res
LBB0_12:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RES_MPT,4,2                    ## @RES_MPT
	.comm	_RES_MPT_MAPPED,8,3             ## @RES_MPT_MAPPED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RES_MPT_HW,8,3                 ## @RES_MPT_HW
	.comm	_EBUSY,4,2                      ## @EBUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_QUERY_MPT_wrapper         ; -- Begin function mlx4_QUERY_MPT_wrapper
	.p2align	2
_mlx4_QUERY_MPT_wrapper:                ; @mlx4_QUERY_MPT_wrapper
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x5
	mov	x22, x4
	mov	x24, x3
	mov	x25, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w21, [x2]
	bl	_mpt_mask
	and	w21, w0, w21
Lloh0:
	adrp	x27, _RES_MPT@GOTPAGE
Lloh1:
	ldr	x27, [x27, _RES_MPT@GOTPAGEOFF]
	ldr	w3, [x27]
	add	x4, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_get_res
	mov	x26, x0
	cbnz	w0, LBB0_11
; %bb.1:
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
Lloh2:
	adrp	x9, _RES_MPT_MAPPED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RES_MPT_MAPPED@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_mlx4_priv
	ldr	x8, [sp, #8]
	ldr	w1, [x8, #8]
	mov	x2, #0
	bl	_mlx4_table_find
	cbz	x0, LBB0_7
; %bb.3:
	mov	x1, x0
	ldr	x0, [x22]
	cbz	x0, LBB0_7
; %bb.4:
	mov	w2, #4
	bl	_memcpy
	mov	w26, #0
	b	LBB0_10
LBB0_5:
Lloh5:
	adrp	x9, _RES_MPT_HW@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RES_MPT_HW@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x25
	mov	x3, x24
	mov	x4, x22
	mov	x5, x23
	bl	_mlx4_DMA_wrapper
	mov	x26, x0
	b	LBB0_10
LBB0_7:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh10:
	adrp	x8, _EBUSY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w26, w8
LBB0_10:
	ldr	w3, [x27]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_put_res
LBB0_11:
	mov	x0, x26
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_RES_MPT,4,2                    ; @RES_MPT
	.comm	_RES_MPT_MAPPED,8,3             ; @RES_MPT_MAPPED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RES_MPT_HW,8,3                 ; @RES_MPT_HW
	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
