	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_mr_hw_change_pd           ## -- Begin function mlx4_mr_hw_change_pd
	.p2align	4, 0x90
_mlx4_mr_hw_change_pd:                  ## @mlx4_mr_hw_change_pd
	.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
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rsi), %edi
	callq	_be32_to_cpu
	movq	_MLX4_MPT_PD_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mlx4_is_mfunc
	movq	_MLX4_MPT_PD_VF_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	xorl	%edx, %edx
	cmpq	$1, %rax
	sbbl	%edx, %edx
	orl	%ecx, %edx
	andl	%ebx, %edx
	andl	(%r12), %r13d
	orl	%edx, %r13d
	movq	_MLX4_MPT_PD_FLAG_EN_INV@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movl	%r13d, %edi
	callq	_cpu_to_be32
	movl	%eax, (%r14)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_MPT_PD_MASK,4,2           ## @MLX4_MPT_PD_MASK
	.comm	_MLX4_MPT_PD_VF_MASK,4,2        ## @MLX4_MPT_PD_VF_MASK
	.comm	_MLX4_MPT_PD_FLAG_EN_INV,4,2    ## @MLX4_MPT_PD_FLAG_EN_INV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_mr_hw_change_pd           ; -- Begin function mlx4_mr_hw_change_pd
	.p2align	2
_mlx4_mr_hw_change_pd:                  ; @mlx4_mr_hw_change_pd
	.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	x20, x1
	mov	x21, x0
	ldr	w0, [x1]
	bl	_be32_to_cpu
Lloh0:
	adrp	x22, _MLX4_MPT_PD_MASK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MLX4_MPT_PD_MASK@GOTPAGEOFF]
	ldr	w8, [x22]
	bic	w23, w0, w8
	mov	x0, x21
	bl	_mlx4_is_mfunc
Lloh2:
	adrp	x8, _MLX4_MPT_PD_VF_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MLX4_MPT_PD_VF_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	x0, #0
	mov	w9, #-1
	csinv	w8, w9, w8, eq
	and	w8, w23, w8
	ldr	w9, [x22]
	and	w9, w9, w19
	orr	w8, w8, w9
Lloh5:
	adrp	x9, _MLX4_MPT_PD_FLAG_EN_INV@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MLX4_MPT_PD_FLAG_EN_INV@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w0, w8, w9
	bl	_cpu_to_be32
	str	w0, [x20]
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_MPT_PD_MASK,4,2           ; @MLX4_MPT_PD_MASK
	.comm	_MLX4_MPT_PD_VF_MASK,4,2        ; @MLX4_MPT_PD_VF_MASK
	.comm	_MLX4_MPT_PD_FLAG_EN_INV,4,2    ; @MLX4_MPT_PD_FLAG_EN_INV
.subsections_via_symbols
